文件名称:CGO
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.99kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
多条ADSL 相同网关 ROS 的解决办法:
脚本如下: 由于时间比较赶,没有对语句进行简化。
:if ([/in pppoe-c get [find name=ADSL-WAN2] running]=true) do {
:set NewID2 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN2] pref-src]
:set OldIP2 [/ip route get [find comment=2] gateway]
:if ($NewID2 != $OldIP2 ) do {
/ip address set [find comment=2] address=$NewID2 network=$NewID2 broadcast=$NewID2
/ip route set [find comment=2] gateway=$NewID2}
}
:if ([/in pppoe-c get [find name=ADSL-WAN3] running]=true) do {
:set NewID3 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN3] pref-src]
:set OldIP3 [/ip route get [find comment=3] gateway]
:if ($NewID3 != $OldIP3 ) do {
/ip address set [find comment=3] address=$NewID3 network=$NewID3 broadcast=$NewID3
/ip route set [find comment=3] gateway=$NewID3}
-多条ADSL 相同网关 ROS 的图文解决办法:
脚本如下: 由于时间比较赶,没有对语句进行简化。
:if ([/in pppoe-c get [find name=ADSL-WAN2] running]=true) do {
:set NewID2 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN2] pref-src]
:set OldIP2 [/ip route get [find comment=2] gateway]
:if ($NewID2 != $OldIP2 ) do {
/ip address set [find comment=2] address=$NewID2 network=$NewID2 broadcast=$NewID2
/ip route set [find comment=2] gateway=$NewID2}
}
:if ([/in pppoe-c get [find name=ADSL-WAN3] running]=true) do {
:set NewID3 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN3] pref-src]
:set OldIP3 [/ip route get [find comment=3] gateway]
:if ($NewID3 != $OldIP3 ) do {
/ip address set [find comment=3] address=$NewID3 network=$NewID3 broadcast=$NewID3
/ip route set [find comment=3] gateway=$NewID3}
脚本如下: 由于时间比较赶,没有对语句进行简化。
:if ([/in pppoe-c get [find name=ADSL-WAN2] running]=true) do {
:set NewID2 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN2] pref-src]
:set OldIP2 [/ip route get [find comment=2] gateway]
:if ($NewID2 != $OldIP2 ) do {
/ip address set [find comment=2] address=$NewID2 network=$NewID2 broadcast=$NewID2
/ip route set [find comment=2] gateway=$NewID2}
}
:if ([/in pppoe-c get [find name=ADSL-WAN3] running]=true) do {
:set NewID3 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN3] pref-src]
:set OldIP3 [/ip route get [find comment=3] gateway]
:if ($NewID3 != $OldIP3 ) do {
/ip address set [find comment=3] address=$NewID3 network=$NewID3 broadcast=$NewID3
/ip route set [find comment=3] gateway=$NewID3}
-多条ADSL 相同网关 ROS 的图文解决办法:
脚本如下: 由于时间比较赶,没有对语句进行简化。
:if ([/in pppoe-c get [find name=ADSL-WAN2] running]=true) do {
:set NewID2 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN2] pref-src]
:set OldIP2 [/ip route get [find comment=2] gateway]
:if ($NewID2 != $OldIP2 ) do {
/ip address set [find comment=2] address=$NewID2 network=$NewID2 broadcast=$NewID2
/ip route set [find comment=2] gateway=$NewID2}
}
:if ([/in pppoe-c get [find name=ADSL-WAN3] running]=true) do {
:set NewID3 [/ip route get [/ip route find dst-address=59.41.154.1/32 interface=ADSL-WAN3] pref-src]
:set OldIP3 [/ip route get [find comment=3] gateway]
:if ($NewID3 != $OldIP3 ) do {
/ip address set [find comment=3] address=$NewID3 network=$NewID3 broadcast=$NewID3
/ip route set [find comment=3] gateway=$NewID3}
相关搜索: ros
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CGO.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.