华赛USG基本配置命令

<USG> system-view
[USG] dialer-rule 1 ip permit


[USG] interface Dialer 1


[USG-Dialer1] dialer-group 1

[USG-Dialer1] ip address ppp-negotiate


[USG-Dialer1] ppp ipcp dns admit-any


[USG-Dialer1] ppp pap local-user adsluser password cipher Admin@123
[USG-Dialer1] ppp chap user adsluser
[USG-Dialer1] ppp chap password cipher Admin@123

[USG-Dialer1] dialer user admin


[USG-Dialer1] dialer bundle 1
[USG-Dialer1] quit

[USG] interface Virtual-Ethernet 1
[USG-Virtual-Ethernet1] quit


[USG] interface Atm 2/0/0
[USG-Atm2/0/0] pvc 0/35
[USG-Atm2/0/0-0/35] encapsulation llc


[USG-Atm2/0/0-0/35] map bridge virtual-ethernet 1
[USG-Atm2/0/0-0/35] quit
[USG-Atm2/0/0] quit


[USG] interface Virtual-Ethernet 1
[USG-Virtual-Ethernet1] pppoe-client dial-bundle-number 1
[USG-Virtual-Ethernet1] quit

[USG] VLAN 1
[USG-vlan-1] port Ethernet 1/0/0 to 1/0/7


[USG] interface Vlanif 1
[USG-Vlanif1] ip address 192.168.0.1 24
[USG-Vlanif1] quit


[USG] dhcp enable
[USG] interface Vlanif 1
[USG-Vlanif1] dhcp select interface


[USG-Vlanif1] dhcp server dns-list unnumbered interface Dialer 1
[USG-Vlanif1] quit


[USG] firewall zone trust
[USG-zone-trust] add interface Vlanif 1
[USG-zone-trust] quit


[USG] firewall zone untrust
[USG-zone-untrust] add interface Dialer 1
[USG-zone-untrust] quit


[USG] firewall packet-filter default permit all

[USG] ip route-static 0.0.0.0 0.0.0.0 Dialer 1


[USG] nat-policy interzone trust untrust outbound
[USG-nat-policy-interzone-trust-untrust-outbound] policy 1
[USG-nat-policy-interzone-trust-untrust-outbound-1] action source-nat
[USG-nat-policy-interzone-trust-untrust-outbound-1] policy source 192.168.0.0 0.0.0.255
[USG-nat-policy-interzone-trust-untrust-outbound-1] easy-ip Dialer 1
[USG-nat-policy-interzone-trust-untrust-outbound-1] quit
[USG-nat-policy-interzone-trust-untrust-outbound] quit


display interface dialer

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值