测试环境为AR1220E-S:
G0口为LAN1: 192.168.1.1/24
G1口为LAN2:192.168.2.1/24
G7口为ADSL1拨号上网
G8口为ADSL2拨号上网
G9口为固定ip上网
设置目标:
1. 可以三线上网
2. 有特别需求可以走指定线路上网
目标一: 三线上网
设置ACL
在acl中将所有内网网段加入进来:
acl name ac_lan 2000
rule 5 permit source 192.168.1.0 0.0.0.255
rule 10 permit source 192.168.2.0 0.0.0.255
设置ADSL1
创建pppoeb拨号,将G7口转为三层口
interface Dialer1
link-protocol ppp
ppp chap user [Adsl_account_1]
ppp chap password cipher [password]
ppp pap local-user [Adsl_account_1] password cipher [password]
ppp ipcp dns admit-any
ppp ipcp dns request
mtu 1480 # 修改mtu为1480
tcp adjust-mss 1200 # 修改mss为1200
ip address ppp-negotiate
dialer user arweb
dialer bundle 1
dialer number 1 autodial # 自动重拨
dialer-group 1
nat outbound 2000
zone wan
interface GigabitEthernet0/0/7
undo portswitch
pppoe-client dia