华为防火墙设置上网

interface dialer0 /进入dialer端口


link-protocol ppp
  ppp chap user 2222
  ppp chap password cipher 123456
  ppp pap local-user 2222 password cipher 123456
ppp ipcp dns admit-any
  alias Dialer0
  ip address ppp-negotiate
  dialer user 2222
dialer bundle 1


interface GigabitEthernet0/0/5   /绑定dial0到WAN口
  pppoe-client dial-bundle-number 1 


ip address-set test-address type object     /建立地址组
address 0 range 192.168.1.1 192.168.11.254


policy interzone trust untrust outbound   /策略允许

  policy 0

  action permit
  policy source address-set test-address


nat-policy interzone trust untrust outbound / 地址转换


  policy 0
  action source-nat
  policy source 192.168.1.0 0.0.0.255
  easy-ip Dialer0

你可能感兴趣的:(华为防火墙设置上网)