ROS2.9.6的电信光纤+2M ADSL的负载看看哪里错了
三块网ether1 连内网,ether2光纤 ether3ADSL,内网IP为192.168.0.1光纤为IP:218.11.11.12网关是218.11.11.11,DNS为221.228.255.1 218.2.135.1
1、配置光纤线路 在/ip address中为光纤线路配置IP地址,子网掩码。
CODE
/ip address add address 218.11.11.12 mask 24 interface ether2
2、配置ADSL线路
CODE
/interface pppoe-client
配置ADSL拨号信息。
CODE
/interface pppoe-client add name pppoe-line1 service CHN-telecom/ user mailtrh999@169rh999 password kkjjh interface ether3 use-peer-dns yes mtu 1492 mru 1492
3、配置IP伪装
CODE
/ip firewall src-nat add action masquerade
/ip firewall mangle add protocol tcp tcp-options syn-only tcp-mss 1448
4、配置路由
CODE
/ip route add dst 0.0.0.0/0 gat 218.11.11.11,222.191.208.1 (注:218.11.11.11,222为光纤的网关,222.191.208.1则为ADSL的网关)
/ip route add dst 61.139.88.105/32 get 222.191.208.1(注:ADSL连通后PING通网关的没加这条。)
5、配置自动切换脚本
CODE
/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 gateway 218.11.11.11,222.191.208.1" owner="admin" policy=reboot,read,write,policy,test
/system script add name="downf" source="/ip route set gateway 222.191.208.1 owner="admin" policy=reboot,read,write,policy,test
/system script add name="upadsl" source="/ip route set gateway 218.11.11.11,222.191.208.1" owner="admin" policy=reboot,read,write,policy,test
6、配置NETWATCH用于监视网络的通断情况。
CODE
/tool netwatch add host=222.191.208.1 timeout=1s interval=5s up-script=upadsl down-script=downadsl (注:61.157.88.105是监视ADSL是否通的IP,也可以是ADSL的网关。)
/tool netwatch add host=222.191.208.1 timeout=1s interval=5s up-script=upf down-script=downf
晚上光纤断网后能PING通外网IP,就是上不了网,不过通过IP可以访问别人的ROS,是不是DNS上出了什么总是,传奇还可以玩,在线等 use-peer-dns yes
你配置了DNS了木有?
页:
[1]