Lab Objective:
The focus of this lab is to understand Cisco IOS IP SLA Operations and FHRP implementation and configuration in Cisco IOS routers. Additional technologies include EOT and preemption.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no interface fastethernet 0/0 Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab. |
Task 1
Configure hostnames, IP addressing on all routers as illustrated in the network topology. Next, configure the following Loopback 0 interfaces on R2 R2: Loopback 0 – IP Address 2.2.2.2/32
Task 2
Enable EIGRP on the WAN interfaces of all routers as illustrated in the topology. Advertise the FastEthernet 0/0 and Loopback 0 subnet as External routes. Verify your EIGRP configuration.
Task 3
Configure HSRP on the LAN segment between R1 and R4. Use a VIP of 150.1.1.254. Configure R1 with a priority of 200 and R4 with a priority of 150. Verify your HSRP configuration.
Task 4
Configure Cisco IOS IP SLA Operations so that when R1 loses the route to the 2.2.2.2/32 prefix, it reduces its HSRP priority such that R4 becomes primary gateway for the HSRP group. This solution should be configured as follows:
- R1 should open an HTTP (port 80) session to the IP address 2.2.2.2/32 only every 5 seconds
- The connection should be sourced from Serial 0/0
- The IP SLA Operation should have a timeout of 10 seconds
- R1 should wait for 6 secs after a failed Operation to lower the configured HSRP priority
- R1 should wait for 10 secs after the 2.2.2.2/32 prefix is reachable again to become active
- Do NOT use HSRP-specific commands to influence preemption timers
- Use any Cisco IP SLA Operation number and Cisco EOT number of your choice
Verify your configuration using the appropriate commands. Test your solution by disabling the link between R1 and R2 and verify IP SLA and HSRP operation and functionality.
Task 5
Configure VRRP on the LAN segment between R2 and R3. Use a VIP of 150.2.2.254. Configure R2 with a priority of 200 and R3 with a priority of 150. Verify your VRRP configuration.
Task 6
Configure VRRP on R2 so that when the Serial 0/0 interface goes down, the priority will then be lowered so that R4 can become master router. Verify and test your VRRP configuration.
Lab Validation
Task 1
Please refer to previous labs for basic IPv4, IPv6 addressing and hostname configuration. This will not be included in this section to avoid being redundant.
Task 2
Please refer to previous labs for basic EIGRP configuration. Following this, verify your EIGRP
configuration using the show ip eigrp neighbors command:
| R1#show ip eigrp neighbors IP-EIGRP neighbors for process 254 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 10.0.0.2 Se0/0 14 00:00:47 4 200 0 6 |
| R2#show ip eigrp neighbors IP-EIGRP neighbors for process 254 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 10.0.0.1 Se0/0 11 00:00:49 3 200 0 3 |
| R3#show ip eigrp neighbors IP-EIGRP neighbors for process 254 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 10.0.0.14 Se1/2 14 00:00:20 9 1140 0 5 |
| R4#show ip eigrp neighbors IP-EIGRP neighbors for process 254 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 10.0.0.13 Se0/0 10 00:00:22 13 200 0 3 |
Next, verify that all routing information is correct using the show ip route command:
| R1#show ip route eigrp 2.0.0.0/32 is subnetted, 1 subnets D 2.2.2.2 [90/2297856] via 10.0.0.2, 00:03:43, Serial0/0 150.2.0.0/24 is subnetted, 1 subnets D EX 150.2.2.0 [170/2172416] via 10.0.0.2, 00:03:41, Serial0/0 |
| R2#show ip route eigrp 150.1.0.0/24 is subnetted, 1 subnets D EX 150.1.1.0 [170/2172416] via 10.0.0.1, 00:03:52, Serial0/0 |
| R3#show ip route eigrp 150.1.0.0/24 is subnetted, 1 subnets D EX 150.1.1.0 [170/20514560] via 10.0.0.14, 00:03:20, Serial1/2 |
| R4#show ip route eigrp 150.2.0.0/24 is subnetted, 1 subnets D EX 150.2.2.0 [170/2172416] via 10.0.0.13, 00:03:25, Serial0/0 |
Task 3
| R1(config)#interface fastethernet 0/0 R1(config-if)#standby 1 ip 150.1.1.254 R1(config-if)#standby 1 priority 200 R1(config-if)#exit |
| R4(config)#interface fastethernet 0/0 R4(config-if)#standby 1 ip 150.1.1.254 R4(config-if)#standby 1 priority 150 R4(config-if)#exit |
Verify HSRP using the show standby <group> [brief] command on the two routers. You should keep in mind that, by default, preemption is not enabled for HSRP:
| R1#show stand brief P indicates configured to preempt. | Interface Grp Prio P State Active Standby Virtual IP Fa0/0 1 200 Active local 150.1.1.4 150.1.1.254 |
| R4#show stand brief P indicates configured to preempt. | Interface Grp Prio P State Active Standby Virtual IP Fa0/0 1 150 Standby 150.1.1.1 local 150.1.1.254 |
Task 4
The requirements of this task are three-fold. First, you need to configure the Cisco IOS IP SLA Operation to ping the 2.2.2.2/32 address every 2 seconds. It is important to remember that the default timeout value is 5 seconds (5000 milliseconds). Therefore, you specify a frequency of 2 seconds, you first need to lower the timeout value to a value less than 5000 milliseconds otherwise Cisco IOS software will print out the following error message on the device console:
| R1(config-sla-monitor-echo)#frequency 2 %Illegal Value: Cannot set Frequency to be less than Timeout |
This first part of this task, i.e. the IP SLA Operation configuration, is completed as follows:
| R1(config)#ip sla monitor 1 R1(config-sla-monitor)#$ipaddr 2.2.2.2 dest-port 80 source-ipaddr 10.0.0.1 R1(config-sla-monitor-tcp)#timeout 10 R1(config-sla-monitor-tcp)#frequency 5 R1(config-sla-monitor-tcp)#exit R1(config)#ip sla monitor schedule 1 start-time now life forever R1(config)#exit |
Because R2 is a Cisco IOS device, you must enable RTR | IP SLA Responder on this device:
| R2(config)#ip sla monitor responder type tcpConnect ipaddress 2.2.2.2 port 80 |
Verify the operation statistics using the show ip sla monitor statistics command:
| R1#show ip sla monitor statistics 1 Round trip time (RTT) Index 1 Latest RTT: 8 ms Latest operation start time: 21:39:36.295 CST Tue May 31 2011 Latest operation return code: OK Number of successes: 22 Number of failures: 0 Operation time to live: Forever |
Verify the responder state using the show ip sla monitor responder command:
| R2#show ip sla monitor responder IP SLA Monitor Responder is: Enabled Number of control message received: 29 Number of errors: 0 Recent sources: 10.0.0.1 [12:02:07.595 UTC Sun May 15 2011] 10.0.0.1 [12:02:02.595 UTC Sun May 15 2011] 10.0.0.1 [12:01:57.595 UTC Sun May 15 2011] 10.0.0.1 [12:01:52.595 UTC Sun May 15 2011] 10.0.0.1 [12:01:47.595 UTC Sun May 15 2011] Recent error sources: tcpConnect Responder: |
The second part of this task requires that you configure Enhanced Object Tracking or EOT. Here is where you specify the up and down delay values. Complete this task as follows:
| R1(config)#track 1 rtr 1 reachability R1(config-track)#delay down 6 R1(config-track)#delay up 10 R1(config-track)#exit |
Verify your configuration using the show track <object number> command:
| R1#show track 1 Track 1 Response Time Reporter 1 reachability Reachability is Up 7 changes, last change 00:05:00 Delay up 10 secs, down 6 secs Latest operation return code: OK Latest RTT (millisecs) 8 |
The final requirement of this configuration is to configure HSRP so that preemption is enabled and that the priority of R1 is lowered enough to allow R4 to become active gateway. This last task is completed as follows:
| R1(config)#interface fastethernet 0/0 R1(config-if)#standby 1 preempt R1(config-if)#standby 1 track 1 decrement 51 R1(config-if)#exit |
| R4(config)#interface fastethernet 0/0 R4(config-if)#standby 1 preempt R4(config-if)#exit |
Verify your configuration using the show standby command on both routers:
| R1#show standby fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Active 2 state changes, last state change 00:28:58 Virtual IP address is 150.1.1.254 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.456 secs Preemption enabled Active router is local Standby router is 150.1.1.4, priority 150 (expires in 7.152 sec) Priority 200 (configured 200) Track object 1 state Up decrement 51 IP redundancy name is “hsrp-Fa0/0-1” (default) |
| R4#show standby fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Standby 1 state change, last state change 00:29:12 Virtual IP address is 150.1.1.254 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 0.000 secs Preemption enabled Active router is 150.1.1.1, priority 200 (expires in 8.288 sec) Standby router is local Priority 150 (configured 150) IP redundancy name is “hsrp-Fa0/0-1” (default) |
Finally, test your solution by enabling logging and shutting down the R1-R2 link:
| R1(config)#logging consol debugging R1(config)#interface serial 0/0 R1(config-if)#shutdown R1(config-if)# R1(config-if)# R1(config-if)# Jun 1 02:46:51.175: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 254: Neighbor 10.0.0.2 (Serial0/0) is down: interface down Jun 1 02:46:53.151: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down Jun 1 02:46:54.151: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down Jun 1 02:47:13.495: %TRACKING-5-STATE: 1 rtr 1 reachability Up->Down Jun 1 02:47:15.551: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Active -> Speak Jun 1 02:47:25.551: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Speak -> Standby |
Next, check the HSRP gateway states using the show standby command on both routers:
| R1#show standby fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Standby 16 state changes, last state change 00:00:31 Virtual IP address is 150.1.1.254 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.808 secs Preemption enabled Active router is 150.1.1.4, priority 150 (expires in 7.808 sec) Standby router is local Priority 149 (configured 200) Track object 1 state Down decrement 51 IP redundancy name is “hsrp-Fa0/0-1” (default) |
| R4#show standby fastethernet 0/0 1 FastEthernet0/0 – Group 1 State is Active 14 state changes, last state change 00:00:49 Virtual IP address is 150.1.1.254 Active virtual MAC address is 0000.0c07.ac01 Local virtual MAC address is 0000.0c07.ac01 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.076 secs Preemption enabled Active router is local Standby router is 150.1.1.1, priority 149 (expires in 9.072 sec) Priority 150 (configured 150) IP redundancy name is “hsrp-Fa0/0-1” (default) |
Finally, verify your configuration in the reverse direction by bringing up the Serial 0/0 interface:
| R1(config)#logging console debugging R1(config)#interface serial 0/0 R1(config-if)#no shutdown R1(config-if)# R1(config-if)# R1(config-if)# Jun 1 02:49:50.243: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up Jun 1 02:49:51.163: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 254: Neighbor 10.0.0.2 (Serial0/0) is up: new adjacency Jun 1 02:49:51.243: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up Jun 1 02:50:02.495: %TRACKING-5-STATE: 1 rtr 1 reachability Down->Up Jun 1 02:50:03.551: %HSRP-5-STATECHANGE: FastEthernet0/0 Grp 1 state Standby -> Active |
Task 5
| R2(config)#interface fastethernet 0/0 R2(config-if)#vrrp 1 ip 150.2.2.254 R2(config-if)#vrrp 1 priority 200 R2(config-if)#exit |
| R3(config)#interface fastethernet 0/0 R3(config-if)#vrrp 1 ip 150.2.2.254 R3(config-if)#vrrp 1 priority 150 R3(config-if)#exit |
Verify VRRP configuration using the show vrrp command on both routers:
| R2#show vrrp interface fastethernet 0/0 group 1 FastEthernet0/0 – Group 1 State is Master Virtual IP address is 150.2.2.254 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 200 Master Router is 150.2.2.2 (local), priority is 200 Master Advertisement interval is 1.000 sec Master Down interval is 3.218 sec |
| R3#show vrrp interface fastethernet 0/0 group 1 FastEthernet0/0 – Group 1 State is Backup Virtual IP address is 150.2.2.254 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 150 Master Router is 150.2.2.2, priority is 200 Master Advertisement interval is 1.000 sec Master Down interval is 3.414 sec (expires in 3.190 sec) |
Task 6
To complete this task, you need to configure EOT to track Serial0/0s line protocol. This tracked object should then be referenced under the VRRP interface configuration. By default, VRRP preemption is enabled and no explicit configuration is required. The only other thing required is that the priority be decremented sufficiently to allow R3 to become virtual router master:
| R2(config)#track 1 interface serial 0/0 line-protocol R2(config-track)#exit R2(config)#interface fastethernet 0/0 R2(config-if)#vrrp 1 track 1 decrement 51 R2(config-if)#exit |
Next, verify your configuration using the show vrrp command:
| R2#show vrrp interface fastethernet 0/0 group 1 FastEthernet0/0 – Group 1 State is Master Virtual IP address is 150.2.2.254 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 200 Track object 1 state Up decrement 51 Master Router is 150.2.2.2 (local), priority is 200 Master Advertisement interval is 1.000 sec Master Down interval is 3.218 sec |
Next, test your configuration by enabling logging and shutting down the Serial0/0 interface:
| R2(config)#logging console debugging R2(config)#interface serial 0/0 R2(config-if)#shutdown R2(config-if)# *May 15 12:36:47.011: %TRACKING-5-STATE: 1 interface Se0/0 line-protocol Up->Down *May 15 12:36:47.039: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 254: Neighbor 10.0.0.1 (Serial0/0) is down: interface down *May 15 12:36:49.011: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down *May 15 12:36:50.011: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down *May 15 12:36:50.183: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Master -> Backup |
Use the show vrrp command again to verify the VRRP states on both routers:
| R2#show vrrp interface fastethernet 0/0 group 1 FastEthernet0/0 – Group 1 State is Backup Virtual IP address is 150.2.2.254 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 149 (cfgd 200) Track object 1 state Down decrement 51 Master Router is 150.2.2.3, priority is 150 Master Advertisement interval is 1.000 sec Master Down interval is 3.218 sec (expires in 3.026 sec) |
| R3#show vrrp interface fastethernet 0/0 group 1 FastEthernet0/0 – Group 1 State is Master Virtual IP address is 150.2.2.254 Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1.000 sec Preemption enabled Priority is 150 Master Router is 150.2.2.3 (local), priority is 150 Master Advertisement interval is 1.000 sec Master Down interval is 3.414 sec |
Finally, test your configuration in the reverse order by bringing up the Serial0/0 interface:
| R2(config)#interface serial 0/0 R2(config-if)#no shutdown R2(config-if)# R2(config-if)# *May 15 12:38:42.939: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up *May 15 12:38:42.939: %TRACKING-5-STATE: 1 interface Se0/0 line-protocol Down->Up *May 15 12:38:43.939: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up *May 15 12:38:44.731: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 254: Neighbor 10.0.0.1 (Serial0/0) is up: new adjacency *May 15 12:38:45.327: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup -> Master |
Final Router Configurations
R1
|
R1#term len 0 Current configuration : 1293 bytes R1# |
R2
|
R2#term len 0 Current configuration : 1154 bytes R2# |
R3
|
R3#term len 0 Current configuration : 1254 bytes R3# |
R4
|
R4#term len 0 Current configuration : 940 bytes R4# |
