思科如何配置IP SLA路由联动(4)
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的功能也不是很熟悉,只实现到静态路由的自动备份和切换功能!
直接用静态路由配合route-map和IP SLA就能实现
默认一个子网通过route-map 1,优先走线路1,同时在route-map 1中调用IP SLA,监测线路1的下一条是否可达,如果可达,走线路1,不可达,走常规路由,也就是走静态路由,两条静态路由也要开启track调用IP SLA.
同理,第二个子网通过route-map 2,优先走线路二,同时在route-map 2中调用IP LSA,监测线路2的下一条是否可达,可达走线路2,不可达,走静态路由,静态路由也通过track调用IP SLA,监测下一跳。
看过文章“思科如何配置IP SLA路由联动"的人还看了: