思科如何配置IP SLA路由联动(3)
思科如何配置IP SLA路由联动
学习啦在线学习网 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
R871#sh run
学习啦在线学习网 Building configuration…
Current configuration : 2905 bytes
学习啦在线学习网 Last configuration change at 16:06:20 bjt Wed Nov 11 2009
NVRAM config last updated at 10:37:12 bjt Wed Nov 11 2009
version 12.4
no service pad
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
学习啦在线学习网 service password-encryption
service sequence-numbers
hostname R871
boot-start-marker
boot system flash:/c870-advsecurityk9-mz.124-15.T9.bin
学习啦在线学习网 boot-end-marker
学习啦在线学习网 logging buffered 4096
学习啦在线学习网 no logging console
enable secret 5 class="main">
思科如何配置IP SLA路由联动(3)
no aaa new-model
学习啦在线学习网 clock timezone bjt 8
dot11 syslog
ip cef
no ip domain lookup
archive
log config
hidekeys
interface FastEthernet0
学习啦在线学习网 interface FastEthernet1
shutdown
interface FastEthernet2
学习啦在线学习网 switchport access vlan 5
学习啦在线学习网 interface FastEthernet3
学习啦在线学习网 switchport access vlan 5
interface Dot11Radio0
no ip address
shutdown
speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
学习啦在线学习网 station-role root
interface Vlan1
ip address 192.168.64.254 255.255.255.0
学习啦在线学习网 interface Vlan5
ip address 192.168.65.254 255.255.255.0
ip forward-protocol nd
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
ip route 192.168.67.0 255.255.255.0 192.168.66.254
ip route 192.168.68.0 255.255.255.0 192.168.66.254
学习啦在线学习网 ip route 193.168.1.254 255.255.255.255 192.168.66.254
ip route 193.168.2.254 255.255.255.255 192.168.66.254
ip http server
no ip http secure-server
ip sla 64
icmp-echo 192.168.64.2
学习啦在线学习网 ip sla schedule 64 life forever start-time now
学习啦在线学习网 配置SAA检查连通性。并跟踪这结果。很精巧的实现思路。
ip sla 65
学习啦在线学习网 icmp-echo 192.168.65.2
ip sla schedule 65 life forever start-time now
配置SAA检查连通性。并跟踪这结果。很精巧的实现思路。
track 64 rtr 64 reachability
track 65 rtr 65 reachability
定义访问控制列表,permit选项为需要重定向的数据包
学习啦在线学习网 access-list 168 deny ip 192.168.68.0 0.0.0.255 192.168.64.0 0.0.0.255
access-list 168 deny ip 192.168.68.0 0.0.0.255 192.168.65.0 0.0.0.255
access-list 168 permit ip 192.168.68.0 0.0.0.255 any
定义策略路由
route-map test permit 10
match ip address 168
学习啦在线学习网 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
应用策略路由