ip sla配置+注解
作者:互联网
1)IP SlA/track
本地路由设备到下一台三层交换机之间串接一台透明设备,当对端shutdown状态,本地设备仍处于UP,这时将导致所谓的“黑洞”现象,
我们可以通过SLA来做网络端到端的可用性监测,从而解决这个问题。
R871(config)#ip sla 64
R871(config-ip-sla)# icmp-echo 192.168.64.2
R871(config)#ip sla schedule 64 life forever start-time now
R871(config)#ip sla 65
R871(config-ip-sla)# icmp-echo 192.168.65.2
R871(config)#ip sla schedule 65 life forever start-time now
---采用icmp协议来监视,即发出icmp echo包来探测对端的可达性,192.168.64.2/65.2为对端IP地址
2)定义SLA监视组
R871(config)#track 64 rtr 64 reachability…………………….定义跟踪组
R871(config)#track 65 rtr 65 reachability
3)定义icmp失效时效
scheduler max-task-time 5000
4)定义需要指定源路由的ip地址
access-list 68 permit 192.168.68.0 0.0.0.255
5)配置路由策略
route-map test permit 10
match ip address 68
set ip next-hop verify-availability 192.168.65.2 10 track 65
set ip next-hop verify-availability 192.168.64.2 64 track 64
exit
6)接口应用路由策略
interface FastEthernet4
ip address 192.168.66.2 255.255.255.0
ip policy route-map test
exit
7)缺省路由应用track
ip route 0.0.0.0 0.0.0.0 192.168.64.2 10 track 64
ip route 0.0.0.0 0.0.0.0 192.168.65.2 100 track 65
标签:track,0.0,192.168,ip,注解,config,sla 来源: https://www.cnblogs.com/surplus/p/15441196.html