CISCO 路由器 线路切换 Failover

参照前面H3C的例子,在Cisco的设备上可以用SLA来实现。 H3C的NQA与CISCO的SLA几乎一模一样。

 

 

 

 

CISCO 路由器 线路切换 Failover_第1张图片

 

在R3和R4上分别配置SLA

!R3
ip sla 1 
icmp-echo 172.16.1.2
timeout 500
frequency 3
ip sla schedule 1 start-time now life forever
track 1 ip sla 1 reachability

ip sla 2
icmp-echo 172.16.2.2
timeout 500
frequency 3
ip sla schedule 2 start-time now life forever
track 2 ip sla 2 reachability
ip route 0.0.0.0 0.0.0.0 172.16.1.2 track 1 1
ip route 0.0.0.0 0.0.0.0 172.16.2.2 track 2 2


!R4
ip sla 1 
icmp-echo 172.16.1.1
timeout 500
frequency 3
ip sla schedule 1 start-time now life forever
track 1 ip sla 1 reachability

ip sla 2
icmp-echo 172.16.2.1
timeout 500
frequency 3
ip sla schedule 2 start-time now life forever
track 2 ip sla 2 reachability
ip route 0.0.0.0 0.0.0.0 172.16.1.1 track 1 1
ip route 0.0.0.0 0.0.0.0 172.16.2.1 track 2 2

你可能感兴趣的:(Cisco)