|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
/interface pppoe-client
add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 comment="" \
dial-on-demand=no disabled=no interface=Wan1 max-mru=1480 max-mtu=1480 \
mrru=disabled name=Wan1.PPPoE password=*** profile=default \
service-name="" use-peer-dns=no user=07959110397**
add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 comment="" \
dial-on-demand=no disabled=no interface=Wan2 max-mru=1480 max-mtu=1480 \
mrru=disabled name=Wan2.PPPoE password=*** profile=default \
service-name="" use-peer-dns=no user=07952763138**
/ip address
add address=192.168.16.241/16 broadcast=192.168.255.255 comment="" disabled=\
no interface=Lan network=192.168.0.0
add address=220.176.168.3/32 broadcast=220.176.168.3 comment=1 disabled=no \
interface=Wan2.PPPoE network=220.176.168.3
add address=220.176.168.22/32 broadcast=220.176.168.22 comment=2 disabled=no \
interface=Wan1.PPPoE network=220.176.168.22
/ip firewall mangle
add action=mark-connection chain=prerouting comment="" connection-state=new \
disabled=no in-interface=Lan new-connection-mark=odd nth=2,1 passthrough=\
yes
add action=mark-connection chain=prerouting comment="" connection-state=new \
disabled=no in-interface=Lan new-connection-mark=even passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=odd \
disabled=no new-routing-mark=odd passthrough=no
add action=mark-routing chain=prerouting comment="" connection-mark=even \
disabled=no new-routing-mark=even passthrough=no
/ip firewall nat
add action=src-nat chain=srcnat comment="" connection-mark=odd disabled=no \
to-addresses=220.176.168.3
add action=src-nat chain=srcnat comment="" connection-mark=even disabled=no \
to-addresses=220.176.168.22
/ip route
add comment=even disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
220.176.168.3 scope=255 target-scope=10
add comment=odd disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
220.176.168.22 routing-mark=odd scope=255 target-scope=10
add comment=even disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
220.176.168.3 routing-mark=even scope=255 target-scope=10
按照配置说明配的 不理解怎么就不通 PPPoE 网关是相同的 |
|