海 纳 百 川 有 容 乃 大 ,
壁 立 千 仞 无 谷 则 刚 。
双ADSL教程
上一篇 /
下一篇 2008-01-10 23:18:51
/ 个人分类:网络
双ADSL教程
4xQk*s|0M1远景无限博客5f-z&Bx`u1g6K(H M ?
1、配置ADSL1线路
E~Xx!j!`
{x1在/ip address中为ADSL1配置IP地址,子网掩码。
"zc+Y0M!B*E1/ip address add address ***.***.***.*** mask 24 inte***ce ether1
5k,G g[1CB u$B12、配置ADSL2线路
6w-r,YJ/r3HOw1在/ip address中为ADSL2配置IP地址,子网掩码。 远景无限博客L~w+bZ/j(D8R1~
/ip address add address ***.***.***.*** mask 24 inte***ce ether2远景无限博客KOB4U'@:c
3、配置IP伪装 远景无限博客`2?.`d~m
/ip firewall src-nat add action masquerade
Y*^
CIt:m`~&~ l1/ip firewall mangle add protocol tcp tcp-options syn-only tcp-mss 1448
svC$YqJ ]w8T14、配置路由
`fI io+U1/ip route add dst 0.0.0.0/0 gateway ***.***.***.1,***.***.***.2 (注:***.***.***.1为ADSL1的网关,***.***.***.2则为ADSL2的网关)
^9Ni%\V*C&gI15、配置自动切换脚本
!}L9K:p*g#v'ud1/system script. add name="downadsl1" source="/ip route set[/ip route find dst 0.0.0.0] gateway ***.***.***.1" wner="admin" policy=reboot,read,write,policy,test
N)l;?0Hv1/system script. add name="upadsl2" source="/ip route set[/ip route find dst 0.0.0.0] gateway ***.***.***.1,***.***.***.2" wner="admin" policy=reboot,read,write,policy,test
U.F
X$w;N7UR1/system script. add name="downadsl2" source="/ip route set[/ip route find dst 0.0.0.0] gateway ***.***.***.1 wner="admin" policy=reboot,read,write,policy,test
8\H7M'fEzG1/system script. add name="upadsl1" source="/ip route set[/ip route find dst 0.0.0.0] gateway ***.***.***.1,***.***.***.2" wner="admin" policy=reboot,read,write,policy,test远景无限博客$^:B$m)gT!JG
6、配置NETWATCH用于监视网络的通断情况。
-{,g8A.A6\I0vH1/tool netwatch add host=***.***.***.1 timeout=1s interval=5s up-script=upadsl down-script=downadsl 远景无限博客HaO9{2SE8x
/tool netwatch add host=***.***.***.2 timeout=1s interval=5s up-script=upf down-script=downf
i1I9s m5llj7d/]1
导入论坛
引用链接
收藏
分享给好友
管理
举报
TAG: