|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
请看图,用虚拟机做的~~~静态IP模拟ADSL,如果可以了就实施了。。。。不是很明白。。。。因为我断了其中一根时,会有一段时间是断线的(即剩下两条线路不能马上起作用,要等一会。。。要加脚本?)
- /ip address add address=192.168.100.1/255.255.255.0 interface=LAN comment=lan
- /ip dns set primary-dns=202.96.134.133 secondary-dns=202.96.128.68 allow-remote-requests=yes
- /ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
- /ip address add address=10.0.0.1/255.255.255.0 interface=ADSL1 comment="1"
- /ip route add gateway=10.0.0.8 routing-mark=1 comment="1"
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,0 action=mark-connection new-connection-mark=1 passthrough=yes disabled=no
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=1 action=mark-routing new-routing-mark=1 passthrough=no disabled=no
- /ip firewall nat add chain=srcnat connection-mark=1 action=src-nat to-addresses=10.0.0.1 to-ports=0-65535 comment="1" disabled=no
- /ip address add address=20.0.0.1/255.255.255.0 interface=ADSL2 comment="2"
- /ip route add gateway=20.0.0.8 routing-mark=2 comment="2"
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,1 action=mark-connection new-connection-mark=2 passthrough=yes disabled=no
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=2 action=mark-routing new-routing-mark=2 passthrough=no disabled=no
- /ip firewall nat add chain=srcnat connection-mark=2 action=src-nat to-addresses=20.0.0.1 to-ports=0-65535 comment="2" disabled=no
- /ip address add address=30.0.0.1/255.255.255.0 interface=ADSL3 comment="3"
- /ip route add gateway=30.0.0.8 routing-mark=3 comment="3"
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-state=new nth=2,1,2 action=mark-connection new-connection-mark=3 passthrough=yes disabled=no
- /ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=3 action=mark-routing new-routing-mark=3 passthrough=no disabled=no
- /ip firewall nat add chain=srcnat connection-mark=3 action=src-nat to-addresses=30.0.0.1 to-ports=0-65535 comment="3" disabled=no
复制代码 |
|