最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

雙線路策略路由和腳本備份切換

 更新時(shí)間:2007年09月19日 10:22:36   作者:  
電信和網(wǎng)通的雙線路策略路由.并且在其中一條線路斷掉后自動切換為單線路,線路恢復(fù)后,恢復(fù)使用策略路由.
電信網(wǎng)關(guān) 190.168.1.10
網(wǎng)通網(wǎng)關(guān) 192.168.1.9

1 先設(shè)置用電信線路上網(wǎng).

2.添加網(wǎng)通獨(dú)立的路由表.
CODE / ip policy-routing table test1
add dst-address=0.0.0.0/0 gateway=192.168.1.9 preferred-source=0.0.0.0 comment="" disabled=no
3 在rule里添加策略路由規(guī)則
CODE / ip policy-routing rule
add src-address=0.0.0.0/0 dst-address=59.80.0.0/14 flow="" interface=all action=lookup table=test1 \
   comment="" disabled=no
..
..
此處省略
記得把main移動到最后
4、配置自動切換腳本
CODE / system script
add name="test1down" source="/ ip policy-routing table test1
\nset \[/ ip policy-routing table test1 find \
   dst-address=0.0.0.0\] gateway 190.168.1.10
\n" policy=ftp,reboot,read,write,policy,test
add name="test1up" source="/ ip policy-routing table test1
\nset \[/ ip policy-routing table test1 find \
   dst-address=0.0.0.0\] gateway 192.168.1.9
\n" policy=ftp,reboot,read,write,policy,test
add name="maindown" source="/ ip policy-routing table main
\nset \[/ ip policy-routing table main find \
   dst-address=0.0.0.0\] gateway 192.168.1.9" policy=ftp,reboot,read,write,policy,test
add name="mainup" source="/ ip policy-routing table main
\nset \[/ ip policy-routing table main find \
   dst-address=0.0.0.0\] gateway 190.168.1.10" policy=ftp,reboot,read,write,policy,test

5 配置NETWATCH用于監(jiān)視網(wǎng)絡(luò)的通斷情況
CODE / tool netwatch
add host=190.168.1.10 timeout=1s interval=20s up-script=mainup down-script=maindown comment="" disabled=no
add host=192.168.1.9 timeout=1s interval=20s up-script=test1up down-script=test1down comment="" disabled=no 文章錄入:csh    責(zé)任編輯:csh 

相關(guān)文章

最新評論

丰台区| 嘉祥县| 桐柏县| 福清市| 昆山市| 张家口市| 兰溪市| 唐海县| 锡林郭勒盟| 玉林市| 县级市| 渝北区| 光山县| 固安县| 民丰县| 格尔木市| 石景山区| 武定县| 张家川| 郁南县| 阜城县| 宝清县| 屏南县| 浦城县| 长阳| 五指山市| 姚安县| 内黄县| 南川市| 白山市| 韶山市| 铜山县| 江津市| 环江| 天峨县| 沙湾县| 惠东县| 南阳市| 神池县| 金塔县| 太白县|