Introducción
Este documento describe cómo configurar el seguimiento de la Static ruta usando el acuerdo del nivel del servicio del IP (SLA).
Gaurav contribuido Mahajan, ingeniero de Cisco TAC.
Prerrequisitos
Requisitos
Cisco recomienda que usted tiene conocimiento del Static Routing.
Componentes Utilizados
La información en este documento se basa en el Software Release 15.2(4)M4 de® del Cisco IOS
La información que contiene este documento se creó a partir de los dispositivos en un ambiente de laboratorio específico. Todos los dispositivos que se utilizan en este documento se pusieron en funcionamiento con una configuración verificada (predeterminada). Si la red está funcionando, asegúrese de haber comprendido el impacto que puede tener cualquier comando.
Configurar
Diagrama de la red
¿?
Configuraciones
Router de LAN
interface GigabitEthernet0/0 description towards R1 ip address 2.2.2.1 255.255.255.252 duplex auto speed autointerface GigabitEthernet0/1 description towards R2 ip address 3.3.3.1 255.255.255.252 duplex auto speed autoip route 0.0.0.0 0.0.0.0 2.2.2.2 track 1ip route 0.0.0.0 0.0.0.0 3.3.3.2 10
ip sla auto discoveryip sla 1 icmp-echo 20.20.20.1 source-ip 2.2.2.1ip sla schedule 1 life forever start-time nowtrack 1 ip sla 1 reachabilityip route 0.0.0.0 0.0.0.0 2.2.2.2 track 1
Below are the default parameters for IP SLA. Threshold (milliseconds): 5000 Operation timeout (milliseconds): 5000 Operation frequency (seconds): 60 One can change these parameters in the IP SLA configuration as per requirement.
LAN#show track Track 1 IP SLA 1 reachability Reachability is Up 4 changes, last change 00:06:58 Latest operation return code: OK Latest RTT (millisecs) 1 Tracked by: STATIC-IP-ROUTING 0
Cuando la pista 1 está encima de tráfico a Internet va del r1 del router primario.
LAN#show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP + - replicated route, % - next hop overrideGateway of last resort is 2.2.2.2 to network 0.0.0.0S* 0.0.0.0/0 [1/0] via 2.2.2.2 2.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 2.2.2.0/30 is directly connected, GigabitEthernet0/0L 2.2.2.1/32 is directly connected, GigabitEthernet0/0 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 3.3.3.0/30 is directly connected, GigabitEthernet0/1L 3.3.3.1/32 is directly connected, GigabitEthernet0/1 20.0.0.0/30 is subnetted, 1 subnetsS 20.20.20.0 [1/0] via 2.2.2.2
LAN#show ip sla configuration IP SLAs Infrastructure Engine-IIIEntry number: 1Owner: Tag: Operation timeout (milliseconds): 5000Type of operation to perform: icmp-echoTarget address/Source address: 20.20.20.1/2.2.2.1Type Of Service parameter: 0x0Request size (ARR data portion): 28Verify data: NoVrf Name: Schedule: Operation frequency (seconds): 60 (not considered if randomly scheduled) Next Scheduled Start Time: Start Time already passed Group Scheduled : FALSE Randomly Scheduled : FALSE Life (seconds): Forever Entry Ageout (seconds): never Recurring (Starting Everyday): FALSE Status of entry (SNMP RowStatus): ActiveThreshold (milliseconds): 5000Distribution Statistics: Number of statistic hours kept: 2 Number of statistic distribution buckets kept: 1 Statistic distribution interval (milliseconds): 20Enhanced History:History Statistics: Number of history Lives kept: 0 Number of history Buckets kept: 15 History Filter Type: None
LAN#show ip sla statistics IPSLAs Latest Operation StatisticsIPSLA operation id: 1 Latest RTT: 1 millisecondsLatest operation start time: 08:02:05 UTC Sat Aug 27 2016Latest operation return code: OKNumber of successes: 7Number of failures: 12Operation time to live: Forever
Verificación
Utilize esta sección para confirmar que su configuración funcione correctamente.
El ping y el traceroute va a Internet del router primario
LAN#ping 8.8.8.8Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msLAN#traceroute 8.8.8.8Type escape sequence to abort.Tracing the route to 8.8.8.8VRF info: (vrf in name/id, vrf out name/id) 1 2.2.2.2 0 msec 0 msec 0 msec
En caso de cualquier problema en el link principal derribará la pista 1.
%TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down
LAN#show track Track 1 IP SLA 1 reachability Reachability is Down 5 changes, last change 00:00:33 Latest operation return code: Timeout Tracked by: STATIC-IP-ROUTING 0
Cuando la pista 1 va abajo del tráfico va del r2 del router secundario
LAN#show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP + - replicated route, % - next hop overrideGateway of last resort is 3.3.3.2 to network 0.0.0.0S* 0.0.0.0/0 [10/0] via 3.3.3.2 2.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 2.2.2.0/30 is directly connected, GigabitEthernet0/0L 2.2.2.1/32 is directly connected, GigabitEthernet0/0 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 3.3.3.0/30 is directly connected, GigabitEthernet0/1L 3.3.3.1/32 is directly connected, GigabitEthernet0/1 20.0.0.0/30 is subnetted, 1 subnetsS 20.20.20.0 [1/0] via 2.2.2.2
LAN#show ip sla statistics IPSLAs Latest Operation StatisticsIPSLA operation id: 1 Latest RTT: NoConnection/Busy/TimeoutLatest operation start time: 08:05:05 UTC Sat Aug 27 2016Latest operation return code: TimeoutNumber of successes: 9Number of failures: 13Operation time to live: Forever
LAN#ping 8.8.8.8Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 msLAN#traceroute 8.8.8.8Type escape sequence to abort.Tracing the route to 8.8.8.8VRF info: (vrf in name/id, vrf out name/id) 1 3.3.3.2 0 msec 0 msec 0 msec
Troubleshooting
Actualmente, no hay información específica de troubleshooting disponible para esta configuración.