海 纳 百 川 有 容 乃 大 , 壁 立 千 仞 无 谷 则 刚 。

双ADSL教程

上一篇 / 下一篇  2008-01-10 23:18:51 / 个人分类:网络

双ADSL教程远景无限博客d#`l2BS w*sd
远景无限博客 {9Z+k4}N
1、配置ADSL1线路
bAJ9L?n^OUw0在/ip address中为ADSL1配置IP地址,子网掩码。
,~ Q O7p#q+I0/ip address add address ***.***.***.*** mask 24 inte***ce ether1远景无限博客7e)~&l1KW+V!Z
2、配置ADSL2线路
:tS4m,_ p0]%IR0在/ip address中为ADSL2配置IP地址,子网掩码。
v})MW:\u"Z\0/ip address add address ***.***.***.*** mask 24 inte***ce ether2
M k`g1a&j\bm9u03、配置IP伪装 远景无限博客c f}g1R4e _
/ip firewall src-nat add action masquerade 远景无限博客 xh.Y]m*M~6ldCl
/ip firewall mangle add protocol tcp tcp-options syn-only tcp-mss 1448 远景无限博客"v tAdRr
4、配置路由 远景无限博客P+UM K:J aHZ6E
/ip route add dst 0.0.0.0/0 gateway ***.***.***.1,***.***.***.2 (注:***.***.***.1为ADSL1的网关,***.***.***.2则为ADSL2的网关) 远景无限博客t c1HL c,r'[6_
5、配置自动切换脚本远景无限博客xA gaG"R
/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远景无限博客 U:~7n&Ek
/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
C[yh)n-`3B^7M n5m0/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\s ?LL.d1@0/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
M5K'O }3a,zcXr06、配置NETWATCH用于监视网络的通断情况。
`$slh1{#w _0/tool netwatch add host=***.***.***.1 timeout=1s interval=5s up-script=upadsl down-script=downadsl 远景无限博客G6e;Ma C7q+J
/tool netwatch add host=***.***.***.2 timeout=1s interval=5s up-script=upf down-script=downf

|)fR-i&Y)Ds0

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-12-04  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 2543
  • 日志数: 23
  • 建立时间: 2007-05-31
  • 更新时间: 2008-08-03

RSS订阅

Open Toolbar