|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
一条电信固定IP10M光纤,一条电信10M拔号光纤
1、配置光纤线路
在/ip address中为光纤线路配置IP地址,子网掩码。
/ip address add address 61.139.77.77 mask 24 interface ether2 (为固定IP地址)
2、配置ADSL线路
/interface pppoe-client 配置ADSL拨号信息。
/interface pppoe-client add name pppoe-line1 service CHN-telecom/ user rh999@169 password kkjjh interface ether1 use-peer-dns yes mtu 1942 mru 1942
3、配置IP伪装
/ip firewall src-nat add action masquerade
/ip firewall mangle add protocol tcp tcp-options syn-only tcp-mss 1448
4、配置路由
/ip route add dst 0.0.0.0/0 gat 61.139.77.1,218.88.32.1 (注:61.139.77.1为光纤的网关,218.88.32.1则为ADSL的网关)
5、配置自动切换脚本
/system script add name="downadsl" source="/in pppoe-client dis [/in pppoe-client find name pppoe-lin owner="admin" policy=reboot,read,write,policy,test
/system script add name="upf" source="
/ip route set[/ip route find dst 0.0.0.0] gateway 61.139.73.1,218.88.32.1" owner="admin" policy=reboot,read,write,policy,test
/system script add name="downf" source="/ip route set[/ip route find dst 0.0.0.0] gateway 218.88.32.1 owner="admin" policy=reboot,read,write,policy,test
/system script add name="upadsl" source="/ip route set[/ip route find dst 0.0.0.0] gateway 61.139.73.1,218.88.32.1" owner="admin" policy=reboot,read,write,policy,test
6、配置NETWATCH用于监视网络的通断情况。
/tool netwatch add host=61.157.88.105 timeout=1s interval=5s up-script=upadsl down-script=downadsl
(注:61.157.88.105是监视ADSL是否通的IP,也可以是ADSL的网关。)
/tool netwatch add host=61.139.73.1 timeout=1s interval=5s up-script=upf down-script=downf |
|