Configuring HSRP - Description

Global Knowledge Training LLC. L5-1. L5. Configuring HSRP ... Console and vty access: username: ccna, password: cisco. • enable secret: sanfran ...
1MB taille 132 téléchargements 409 vues
L5 Configuring HSRP

© Global Knowledge Training LLC

L5-1

Lab 5: Configuring HSRP

Objectives In this lab you will examine the hot standby router protocol (HSRP). First you will configure PxR2 similar to PxR1, so they are both possible default gateway candidates. You will then configure HSRP on both routers and examine its behavior. The objectives for this lab are: • Configure PxR2 as a possible default gateway candidate. • Configure PxR1 and PxR2 for HSRP. • Explore HSRP and verify its behavior. • Reconfigure pod devices for subsequent labs. Important

Substitute your pod number for x and the router number for y in all instructions and commands.

The passwords configured on the devices at this point are: • Console and vty access: username: ccna, password: cisco • enable secret: sanfran

L5-2

© Global Knowledge Training LLC

Lab 5: Configuring HSRP

Lab Topology The following diagram illustrates the logical topology used in this lab, along with the IP addresses configured.

Command List The following table lists the commands used in this lab, in alphabetical order.

Cisco IOS Commands Used In This Lab Command

Description

#configure terminal

Enters global configuration mode.

#copy running-config startupconfig

Saves the running configuration (in RAM) into the startup configuration (in NVRAM).

>enable

Enters the EXEC privileged mode.

(config-subif)#encapsulation dot1q vlan [native]

Configures trunking on a router interface and associates the vlan number with the subinterface.

(config)#end

Terminates configuration mode.

#exit

Exit the current mode and go up one level.

(config)#interface type number

Enters interface configuration mode.

(config)#[no] interface type number.subinterface

Enters configuration mode for the subinterface. With the no keyword deletes the subinterface.

© Global Knowledge Training LLC

L5-3

Lab 5: Configuring HSRP (config-if)#[no] ip address address mask

Assigns interface IP address and subnet mask. With the no keyword removes the address from the interface.

(config)#ip default-gateway address

Configures the specified IP address as the default gateway for the switch.

(config)#[no] ip route 0.0.0.0 0.0.0.0 address

Specifies a default static route via the specified IP address. With the no keyword removes the static default route.

(config-router)#network address wildcard-mask area area

Specifies which interfaces run OSPF and in which area.

#ping [address]

Sends an echo request to the specified address. With no parameters specified, enters extended ping.

(config)#[no] router ospf process-id

Configures an OSPF routing process. With the no parameter, deletes the OSPF routing process.

(config-router)#router-id id

Specifies the router ID for OSPF; the router id is in an IPv4-address format.

#show standby

Displays HSRP information.

(config-if)#[no] shutdown

Disables the specified interface. With the no parameter, enables the interface.

(config-subif)#[no] standby group ip address

Activates HSRP on the interface, in the specified group. The address is the address of the HSRP virtual router that is created. With the no parameter, deactivates HSRP.

(config-if-range)#[no] switchport access vlan vlan

Sets VLAN assignment of an interface. With the no parameter, the VLAN goes back to the default (VLAN 1).

(config-if)#[no] switchport mode mode

Sets trunking mode of an interface. With the no parameter, the interface returns to the default mode (dynamic auto).

(config-if)#[no] switchport trunk allowed vlan vlan-list

Sets VLAN allowed list on an trunk interface. With the no parameter, the list is removed.

#traceroute address

Executes a trace to the target address.

Windows Commands Used In This Lab

L5-4

Command

Description

ping address

Causes an ICMP echo message to be sent to the destination, which should cause an ICMP echo reply message to be returned.

ping -t

Causes continuous ICMP echo messages to be sent to the destination, which should cause ICMP echo reply messages to be returned.

tracert address

Displays the path of routers that a test packet traverses on the way to a destination address.

© Global Knowledge Training LLC

Lab 5: Configuring HSRP

Procedure In this lab you will examine the hot standby router protocol (HSRP). First you will configure PxR2 similar to PxR1, so they are both possible default gateway candidates. You will then configure HSRP on both routers and examine its behavior. Note

This lab requires that the previous lab was completed correctly. If you have any doubts, reset to this lab, as described in “Lab 0: Introduction, and Connecting to and Using the Remote Lab Environment”.

Prepare pod devices Currently PxR1 has a trunk to PxSW and is the default gateway for all pod devices. For HSRP to work, both PxR1 and PxR2 must be configured such that they are possible default gateways for PxSW, PC1 and PC2. To accomplish this, you will first re-configure PxR2’s link to PxSW as a trunk and configure PxR2 to run OSPF with PxR1 and the core router (similar to PxR1’s configuration). 1.

Connect to PxSW and enter configuration mode. On the switch’s FastEthernet 0/2 interface remove the access VLAN 3x configuration and configure trunking; this is the interface connected to PxR2. Allow only the pod VLANs 1, 1x, and 2x on the trunk (remember x is your pod number).

PxSW#conf t PxSW(config)#interface fastethernet 0/2 PxSW(config-if)#no switchport access vlan 3x PxSW(config-if)#switchport mode trunk PxSW(config-if)#switchport trunk allowed vlan 1,1x,2x PxSW(config-if)#end

2.

Connect to PxR2 and enter configuration mode. Configure PxR2’s GigabitEthernet 0/0 as a trunk port. First remove the IP address on the interface.

PxR2#configure terminal PxR2(config)#interface gi 0/0 PxR2(config-if)#no ip address

© Global Knowledge Training LLC

L5-5

Lab 5: Configuring HSRP

3.

Create subinterfaces for each of the VLANs; use a subinterface number equal to the VLAN number, specify IEEE 802.1q encapsulation (tagging), and assign the appropriate IP address to the subinterface as detailed in the following table (x = your pod number). Subinterface

VLAN number

Address/ Mask

PxR2 Gi0/0.1

1 (native VLAN)

10.10.x.2 255.255.255.0

PxR2 Gi0/0.1x

1x

10.1.x.2 255.255.255.0

PxR2 Gi0/0.2x

2x

10.2.x.2 255.255.255.0

PxR2(config-if)#interface gi 0/0.1 PxR2(config-subif)#encapsulation dot1q 1 native PxR2(config-subif)#ip address 10.10.x.2 255.255.255.0 PxR2(config-subif)#interface gi 0/0.1x PxR2(config-subif)#encapsulation dot1q 1x PxR2(config-subif)#ip address 10.1.x.2 255.255.255.0 PxR2(config-subif)#interface gi 0/0.2x PxR2(config-subif)#encapsulation dot1q 2x PxR2(config-subif)#ip address 10.2.x.2 255.255.255.0 PxR2(config-subif)#end

4.

On PxR2, enable the GigabitEthernet 0/1 interface connection to the core. Configure this interface with address 192.168.xx.2/24. Remove the default route via PxR1.

PxR2(config)#interface Gi0/1 PxR2(config-if)#no shutdown PxR2(config-if)#ip address 192.168.xx.2 255.255.255.0 PxR2(config-if)#exit PxR2(config)#no ip route 0.0.0.0 0.0.0.0 10.3.x.1

5.

On PxR2 create an OSPF process, using OSPF process ID of 1 and manually configure the router ID to 1.1.x.2, where x is your pod number.

PxR2(config)#router ospf 1 PxR2(config-router)#router-id 1.1.x.2

6.

On PxR2 configure all of the GigabitEthernet 0/0 subinterfaces and the GigabitEthernet 0/1 interface in OSPF area 0.

PxR2(config-router)#network PxR2(config-router)#network PxR2(config-router)#network PxR2(config-router)#network

L5-6

10.10.x.0 0.0.0.255 area 0 10.1.x.0 0.0.0.255 area 0 10.2.x.0 0.0.0.255 area 0 192.168.xx.0 0.0.0.255 area 0

© Global Knowledge Training LLC

Lab 5: Configuring HSRP

Configure HSRP In this section you will configure HSRP on PxR1 and PxR2, for all current pod VLANs: 1, 1x, and 2x. 7.

Connect to PxR1 and enter configuration mode. On each of the PxR1 and PxR2 GigabitEthernet 0/0 subinterfaces, activate HSRP. Use group number 2 and the addresses shown in the following table (where x = your pod number). These addresses are the addresses of the HSRP virtual router for each VLAN. Either PxR1 or PxR2 will be the active router implementing the HSRP virtual router; the other router will be a standby router. Subinterface

HSRP Address

Gi0/0.1

10.10.x.100

Gi0/0.1x

10.1.x.100

Gi0/0.2x

10.2.x.100

PxRy(config)#interface gi 0/0.1 PxRy(config-subif)#standby 2 ip 10.10.x.100 PxRy(config-subif)#exit PxRy(config)#interface gi 0/0.1x PxRy(config-subif)#standby 2 ip 10.1.x.100 PxRy(config-subif)#exit PxRy(config)#interface gi 0/0.2x PxRy(config-subif)#standby 2 ip 10.2.x.100 PxRy(config-subif)#end

Important

Be sure to configure HSRP on both routers!

Verify HSRP 8.

Examine the HSRP information on both routers.

PxR1#show standby GigabitEthernet0/0.1 - Group 2 State is Active 2 state changes, last state change 00:02:53 Virtual IP address is 10.10.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.688 secs Preemption disabled Active router is local Standby router is 10.10.x.2, priority 100 (expires in 10.448 sec) Priority 100 (default 100) Group name is "hsrp-Gi0/0.1-2" (default) GigabitEthernet0/0.1x - Group 2

© Global Knowledge Training LLC

L5-7

Lab 5: Configuring HSRP State is Active 2 state changes, last state change 00:02:31 Virtual IP address is 10.1.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 Hello time 3 sec, hold time 10 sec Next hello sent in 0.416 secs Preemption disabled Active router is local Standby router is 10.1.x.2, priority 100 (expires Priority 100 (default 100) Group name is "hsrp-Gi0/0.1x-2" (default) GigabitEthernet0/0.2x - Group 2 State is Active 2 state changes, last state change 00:02:17 Virtual IP address is 10.2.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 Hello time 3 sec, hold time 10 sec Next hello sent in 1.312 secs Preemption disabled Active router is local Standby router is 10.2.x.2, priority 100 (expires Priority 100 (default 100) Group name is "hsrp-Gi0/0.2x-2" (default)

default)

in 10.096 sec)

default)

in 7.424 sec)

PxR2#show standby GigabitEthernet0/0.1 - Group 2 State is Standby 1 state change, last state change 00:01:49 Virtual IP address is 10.10.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.176 secs Preemption disabled Active router is 10.10.x.1, priority 100 (expires in 11.472 sec) Standby router is local Priority 100 (default 100) Group name is "hsrp-Gi0/0.1-2" (default) GigabitEthernet0/0.1x - Group 2 State is Standby 1 state change, last state change 00:01:39 Virtual IP address is 10.1.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 0.080 secs Preemption disabled Active router is 10.1.x.1, priority 100 (expires in 7.200 sec) Standby router is local Priority 100 (default 100) Group name is "hsrp-Gi0/0.1x-2" (default) GigabitEthernet0/0.2x - Group 2 State is Standby 1 state change, last state change 00:01:30 Virtual IP address is 10.2.x.100 Active virtual MAC address is 0000.0c07.ac02

L5-8

© Global Knowledge Training LLC

Lab 5: Configuring HSRP Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.472 secs Preemption disabled Active router is 10.2.x.1, priority 100 (expires in 9.984 sec) Standby router is local Priority 100 (default 100) Group name is "hsrp-Gi0/0.2x-2" (default) PxR2#

9.

Which router is the HSRP active router for your VLANs? In the sample output in the previous step, PxR1 is the active router for all VLANs, and PxR2 is the standby router. Your results may be opposite. The active router is selected as the router with highest priority; the sample output indicates that both routers are using the default priority of 100. In the case of a tie, the tie breaker is the IP address; the higher one wins. However, if one router claims the active role before the other router is configured, by default the second router configured will not preempt the active router (as shown in the sample display), even if it has a higher priority. In this case, PxR1 was configured first and it claimed the active role.

10. Connect to your PC1, PC2, and PxSW. Change the default gateway on PC1 and PC2 and PxSW to the appropriate HSRP address, as shown in the following chart (x = your pod number). Device/ Interface

Default Gateway

PC1

10.1.x.100

PC2

10.2.x.100

PxSW

10.10.x.100

PxSW#conf t PxSW(config)#ip default-gateway 10.10.x.100 PxSW(config)#end

Important

Remember that on the PCs you must close both the “Internet Protocol Version 4 (TCP/IPv4) Properties” window and the “Ethernet Properties” window for the address change to take effect.

Important

The PC’s desktop includes an indication of the PC’s IP address and default gateway. This information is refreshed every few minutes, so will not change immediately. To confirm that the address has been configured correctly, use the ipconfig /all PC command.

© Global Knowledge Training LLC

L5-9

Lab 5: Configuring HSRP Note

The following examples of setting the PC's addresses are for Pod 6; use the appropriate addresses for your pod.

11. From PC1, PC2 and PxSW, ping the TFTP server (172.16.1.1); all pings should be successful. PxSW#ping 172.16.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:

L5-10

© Global Knowledge Training LLC

Lab 5: Configuring HSRP !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms PxSW#

Here is PC1 pinging the TFTP server:

Here is PC2 pinging the TFTP server:

12. From PC1, PC2 and PxSW, trace to the TFTP server (172.16.1.1). Notice the address of the router that the packets go through. PxSW#traceroute 172.16.1.1 Type escape sequence to abort. Tracing the route to 172.16.1.1 1 10.10.x.1 1007 msec 0 msec 0 msec 2 192.168.xx.3 8 msec 0 msec 0 msec 3 172.16.1.1 8 msec 0 msec 0 msec PxSW#

© Global Knowledge Training LLC

L5-11

Lab 5: Configuring HSRP

Here is PC1 tracing the TFTP server (on the example Pod 6):

Here is PC1 tracing the TFTP server (on the example Pod 6):

In each case, the packets go via the currently active router’s address (which is PxR1 in the examples). 13. On PC 1, use the ping -t command to do a continuous ping of the TFTP server.

14. Leave the pings running, and on the router that is currently the active HSRP router, shut down the GigabitEthernet 0/0 interface. (In the example, PxR1 is the currently active router.) PxR1#conf t PxR1(config)#interface gi 0/0 PxR1(config-if)#shutdown

L5-12

© Global Knowledge Training LLC

Lab 5: Configuring HSRP

15. After the router’s GigabitEthernet 0/0 goes down, look at PC1’s output. What happens?

You should a brief interruption in the stream of pings, after which they again become successful. 16. From PxSW trace to the TFTP server (172.16.1.1). Notice the address of the router that the packets go through. PxSW#trace 172.16.1.1 Type escape sequence to abort. Tracing the route to 172.16.1.1 1 10.10.x.2 0 msec 0 msec 0 msec 2 192.168.xx.3 8 msec 0 msec 0 msec 3 172.16.1.1 0 msec 8 msec 0 msec PxSW#

The packets now go via the other router’s address (PxR2 in this example). 17. Examine the HSRP information on both routers. PxR1#show standby GigabitEthernet0/0.1 - Group 2 State is Init (interface down) 3 state changes, last state change 00:26:30 Virtual IP address is 10.10.x.100 Active virtual MAC address is unknown Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Preemption disabled Active router is unknown Standby router is unknown Priority 100 (default 100) Group name is "hsrp-Gi0/0.1-2" (default) GigabitEthernet0/0.1x - Group 2 State is Init (interface down)

© Global Knowledge Training LLC

L5-13

Lab 5: Configuring HSRP 3 state changes, last state change 00:26:30 Virtual IP address is 10.1.x.100 Active virtual MAC address is unknown Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Preemption disabled Active router is unknown Standby router is unknown Priority 100 (default 100) Group name is "hsrp-Gi0/0.1x-2" (default) GigabitEthernet0/0.2x - Group 2 State is Init (interface down) 3 state changes, last state change 00:26:30 Virtual IP address is 10.2.x.100 Active virtual MAC address is unknown Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Preemption disabled Active router is unknown Standby router is unknown Priority 100 (default 100) Group name is "hsrp-Gi0/0.2x-2" (default) PxR1# PxR2#show standby GigabitEthernet0/0.1 - Group 2 State is Active 2 state changes, last state change 00:27:11 Virtual IP address is 10.10.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.680 secs Preemption disabled Active router is local Standby router is unknown Priority 100 (default 100) Group name is "hsrp-Gi0/0.1-2" (default) GigabitEthernet0/0.1x - Group 2 State is Active 2 state changes, last state change 00:27:11 Virtual IP address is 10.1.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.344 secs Preemption disabled Active router is local Standby router is unknown Priority 100 (default 100) Group name is "hsrp-Gi0/0.1x-2" (default) GigabitEthernet0/0.2x - Group 2 State is Active 2 state changes, last state change 00:27:11 Virtual IP address is 10.2.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec

L5-14

© Global Knowledge Training LLC

Lab 5: Configuring HSRP Next hello sent in 2.096 secs Preemption disabled Active router is local Standby router is unknown Priority 100 (default 100) Group name is "hsrp-Gi0/0.2x-2" (default) PxR2#

18. Which router is the HSRP active router for your VLANs? Notice that now PxR2 is the active router for all VLANs in the example output. 19. Enable the GigabitEthernet 0/0 interface that you shutdown earlier. PxR2#conf t PxR2(config)#interface gi 0/0 PxR2(config-if)#no shutdown

20. After the router’s GigabitEthernet 0/0 comes up, look at PC1’s output. Do you see any missed pings?

You should not see any interruption of the stream of pings. 21. From PxSW trace to the TFTP server (172.16.1.1). Notice the address of the router that the packets go through. PxSW#trace 172.16.1.1 Type escape sequence to abort. Tracing the route to 172.16.1.1 1 10.10.x.2 0 msec 8 msec 0 msec 2 192.168.xx.3 9 msec 0 msec 0 msec 3 172.16.1.1 8 msec 0 msec 0 msec PxSW#

The packets still go via the same address, PxR2 in this example. 22. Examine the HSRP information on both routers. PxR1#show standby GigabitEthernet0/0.1 State is Standby 4 state changes, Virtual IP address Active virtual MAC

- Group 2 last state change 00:02:44 is 10.10.x.100 address is 0000.0c07.ac02

© Global Knowledge Training LLC

L5-15

Lab 5: Configuring HSRP Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.416 secs Preemption disabled Active router is 10.10.x.2, priority 100 (expires in 8.144 sec) Standby router is local Priority 100 (default 100) Group name is "hsrp-Gi0/0.1-2" (default) GigabitEthernet0/0.1x - Group 2 State is Standby 4 state changes, last state change 00:02:45 Virtual IP address is 10.1.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.224 secs Preemption disabled Active router is 10.1.x.2, priority 100 (expires in 10.912 sec) Standby router is local Priority 100 (default 100) Group name is "hsrp-Gi0/0.1x-2" (default) GigabitEthernet0/0.2x - Group 2 State is Standby 4 state changes, last state change 00:02:44 Virtual IP address is 10.2.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.280 secs Preemption disabled Active router is 10.2.x.2, priority 100 (expires in 9.024 sec) Standby router is local Priority 100 (default 100) Group name is "hsrp-Gi0/0.2x-2" (default) PxR1# PxR2#show standby GigabitEthernet0/0.1 - Group 2 State is Active 2 state changes, last state change 00:33:12 Virtual IP address is 10.10.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.400 secs Preemption disabled Active router is local Standby router is 10.10.x.1, priority 100 (expires in 9.568 sec) Priority 100 (default 100) Group name is "hsrp-Gi0/0.1-2" (default) GigabitEthernet0/0.1x - Group 2 State is Active 2 state changes, last state change 00:33:12 Virtual IP address is 10.1.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 2.016 secs

L5-16

© Global Knowledge Training LLC

Lab 5: Configuring HSRP Preemption disabled Active router is local Standby router is 10.1.x.1, priority 100 (expires in 8.880 sec) Priority 100 (default 100) Group name is "hsrp-Gi0/0.1x-2" (default) GigabitEthernet0/0.2x - Group 2 State is Active 2 state changes, last state change 00:33:12 Virtual IP address is 10.2.x.100 Active virtual MAC address is 0000.0c07.ac02 Local virtual MAC address is 0000.0c07.ac02 (v1 default) Hello time 3 sec, hold time 10 sec Next hello sent in 0.512 secs Preemption disabled Active router is local Standby router is 10.2.x.1, priority 100 (expires in 9.728 sec) Priority 100 (default 100) Group name is "hsrp-Gi0/0.2x-2" (default) PxR2#

23. Which router is the HSRP active router for your VLANs? Notice that PxR2 is still the active router. PxR1 did not preempt PxR2. 24. Stop the continuous pings on PC1, using C.

Reconfigure pod devices Important

The following steps are necessary to prepare the pod devices for subsequent labs. As an alternative to doing these steps, you can “reset to” the next lab you are going to do.

25. On the switch’s FastEthernet 0/2 interface, remove the trunk mode configuration and remove the allowed VLANs on the trunk. Configure the interface in access VLAN 3x. PxSW(config)#interface fastethernet 0/2 PxSW(config-if)#no switchport mode trunk PxSW(config-if)#no switchport trunk allowed vlan PxSW(config-if)#switchport access vlan 3x

26. Delete PxR2’s GigabitEthernet 0/0 subinterfaces and configure the GigabitEthernet 0/0 interface with an address 10.3.x.2/24. PxR2(config)#no interface Gi0/0.1 PxR2(config)#no interface Gi0/0.1x PxR2(config)#no interface Gi0/0.2x PxR2(config)#interface Gi0/0 PxR2(config-if)#ip address 10.3.x.2 255.255.255.0 PxR2(config-if)#exit

© Global Knowledge Training LLC

L5-17

Lab 5: Configuring HSRP

27. On PxR2, shutdown the GigabitEthernet 0/1 interface connection to the core and remove its IP address. Remove the OSPF 1 process and configure PxR2 with a default route to PxR1. PxR2(config)#interface Gi0/1 PxR2(config-if)#shutdown PxR2(config-if)#no ip address 192.168.xx.2 255.255.255.0 PxR2(config-if)#exit PxR2(config)#no router ospf 1 PxR2(config)#ip route 0.0.0.0 0.0.0.0 10.3.x.1

28. On PxR1 remove the HSRP configuration from the GigabitEthernet 0/0 subinterfaces. PxR1(config)#interface gi 0/0.1 PxR1(config-subif)#no standby 2 PxR1(config-subif)#interface gi PxR1(config-subif)#no standby 2 PxR1(config-subif)#interface gi PxR1(config-subif)#no standby 2 PxR1(config-subif)#end

ip 10.10.x.100 0/0.1x ip 10.1.x.100 0/0.2x ip 10.2.x.100

29. Change the default gateway on PC1 and PC2 and PxSW back to the appropriate address, as shown in the following chart (x = your pod number). Device/ Interface

Default Gateway

PC1

10.1.x.1

PC2

10.2.x.1

PxSW

10.10.x.1

PxSW#conf t PxSW(config)#ip default-gateway 10.10.x.1 PxSW(config)#end

L5-18

© Global Knowledge Training LLC

Lab 5: Configuring HSRP Note

The following examples of setting the PC’s addresses are for Pod 6; use the appropriate addresses for your pod.

© Global Knowledge Training LLC

L5-19

Lab 5: Configuring HSRP

Save the configurations 30. Save all of your pod device configurations to startup-config. PxSW#copy running-config startup-config PxR1#copy running-config startup-config PxR2#copy running-config startup-config

Lab Complete

L5-20

© Global Knowledge Training LLC

Lab 5: Configuring HSRP

Completed Configuration The resulting configurations for this lab are the same as the previous lab.

© Global Knowledge Training LLC

L5-21

Lab 5: Configuring HSRP

L5-22

© Global Knowledge Training LLC