Module 9: HSRP Configuration Study Notes
Module 9: HSRP Configuration
Introduction to HSRP
- HSRP: Hot Standby Router Protocol, designed to provide redundancy for IP network routing.
- Objective: Configure a redundant gateway using HSRP.
Equipment Needed
- Routers: Two 2901 routers.
- Switches: Two 2960 switches.
- PCs: Three PCs.
- Cables: Straight-through cables.
Network Configuration Overview
- Networks:
- First Network: 192.168.10.0/24
- Default Gateway: 192.168.10.1 (Router 1)
- Second Network: 172.16.0.0/24
- Default Gateway: 172.16.0.1 (Router 2)
- IP Address Assignments:
- PC1: 192.168.10.2
- PC2: 192.168.10.3
- PC3: 172.16.0.3
Physical Setup
- Connect routers and switches:
- Ports used can vary (e.g., G0/0, G0/1).
- For example: Connect Router 1 G0/0 to Switch 1, Router 2 G0/0 to Switch 2.
PC Configuration Steps
- Assign IP addresses to PCs according to the network structure (e.g., PC1: 192.168.10.2).
- Configure default gateways:
- For PCs in the 192.168.10.0 network, set the default gateway to 192.168.10.3 (the virtual HSRP gateway).
- For PCs in the 172.16.0.0 network, set the default gateway to 172.16.0.2.
Router Configuration
Router 1 Configuration
- Enter configuration mode:
-
enable
- config t - Disable IP domain lookup:
-
no ip domain lookup - Set hostname:
-
hostname Router1 - Configure interface G0/0:
-
interface G0/0
- ip address 192.168.10.1 255.255.255.0
- standby 1 ip 192.168.10.3
- standby 1 priority 150
- standby 1 preempt
- no shutdown - Configure interface G0/1 (for the second network):
-
interface G0/1
- ip address 172.16.0.100 255.255.255.0
- no shutdown
Router 2 Configuration
- Enter configuration mode:
-
enable
- config t - Disable IP domain lookup:
-
no ip domain lookup - Set hostname:
-
hostname Router2 - Configure interface G0/0:
-
interface G0/0
- ip address 192.168.10.2 255.255.255.0
- standby 1 ip 192.168.10.3
- (default priority is 100) - Configure interface G0/1 (for the second network):
-
interface G0/1
- ip address 172.16.0.101 255.255.255.0
- no shutdown
Testing HSRP Functionality
PC Testing
- From PC1, ping the virtual IP address:
-
ping 192.168.10.3 - Verify connectivity through both routers:
- Use the command
tracert 172.16.0.101 to observe routing paths.
Simulating Link Failure
- Disconnect the link from Router 1 to observe automatic failover to Router 2:
- Router 2 should take over as the active router after detecting the failure.
- Re-ping PC2 after the link is disabled:
-
ping 172.16.0.101 - Trace route again to verify new routing path:
-
tracert 172.16.0.101
Conclusion
- HSRP allows for seamless failover between routers, ensuring continuous network availability.
- HSRP configuration is crucial for maintaining network redundancy.
- Suggested additional protocols for consideration include GLBP (Gateway Load Balancing Protocol) which utilizes both routers to balance traffic load.