interface FastEthernet0/0
address 192.168.1.11 255.255.255.0
duplex full
!
ip sla 1 创建服务条目
icmp-echo 2.2.2.2 source-ip 192.168.1.11 类型为icmp-echo
frequency 10 间隔为10s
ip sla schedule 1 life forever start-time now 创建条目设置开始时间和有效时间
ip sla 2
icmp-echo 3.3.3.3 source-ip 192.168.1.11
frequency 10
ip sla schedule 2 life forever start-time now
!
track 1 rtr 1 reachability 和track条目和响应条目关联,track关心可达性
!
track 2 rtr 2 reachability
!
ip route 0.0.0.0 0.0.0.0 192.168.1.12 track 1
ip route 0.0.0.0 0.0.0.0 192.168.1.13 5 track 2
ip route 2.2.2.2 255.255.255.255 192.168.1.12
ip route 3.3.3.3 255.255.255.255 192.168.1.13
阅读(1399) | 评论(0) | 转发(1) |