思科如何配置IP SLA路由聯動(4)
思科如何配置IP SLA路由聯動
interface FastEthernet4
ip address 192.168.66.2 255.255.255.0
ip policy route-map test
duplex auto
speed auto
control-plane
alias exec rt show ip route
alias exec sc show cdp nei
alias exec sv show ver
alias exec st show clo
alias exec ct config t
alias exec sr sh run
alias exec si show interface
alias exec cc clear counter
alias exec cl clear log
alias exec sl show log
alias exec sns show ntp status
alias exec cac clear access-list counters
alias exec sa show access-list
line con 0
no modem enable
line aux 0
line vty 0 4
password 7 01100F175804
login
scheduler max-task-time 5000
ntp source FastEthernet0
ntp server 132.163.4.103
end
其實這是客戶需要才試出來的,我對ip sla的功能也不是很熟悉,只實現到靜態(tài)路由的自動備份和切換功能!
直接用靜態(tài)路由配合route-map和IP SLA就能實現
默認一個子網通過route-map 1,優(yōu)先走線路1,同時在route-map 1中調用IP SLA,監(jiān)測線路1的下一條是否可達,如果可達,走線路1,不可達,走常規(guī)路由,也就是走靜態(tài)路由,兩條靜態(tài)路由也要開啟track調用IP SLA.
同理,第二個子網通過route-map 2,優(yōu)先走線路二,同時在route-map 2中調用IP LSA,監(jiān)測線路2的下一條是否可達,可達走線路2,不可達,走靜態(tài)路由,靜態(tài)路由也通過track調用IP SLA,監(jiān)測下一跳。
看過文章“思科如何配置IP SLA路由聯動"的人還看了: