HSRP Lab 1

 Default Gateway is main door of each department in a college.. and main gate of college..

HSRP Complete Lab

                







IP Addressing

ISP Router (R3)

InterfaceIP
G0/0203.0.113.1/30

Edge Router (R1)

InterfaceIP
G0/0203.0.113.2/30
G0/110.10.10.1/30

Default Route

ip route 0.0.0.0 0.0.0.0 203.0.113.1

Distribution Switch 1

SVI VLAN10
192.168.10.2/24

HSRP

Virtual IP
192.168.10.1

Priority

120

Active


Distribution Switch 2

SVI VLAN10
192.168.10.3/24

HSRP

Virtual IP
192.168.10.1

Priority

100

Standby


PCs

PC1

IP
192.168.10.10

Gateway
192.168.10.1

PC2

IP
192.168.10.20

Gateway
192.168.10.1

HSRP Configuration

Distribution Switch 1


interface vlan 10

ip address 192.168.10.2 255.255.255.0

standby 10 ip 192.168.10.1

standby 10 priority 120

standby 10 preempt

Distribution Switch 2

interface vlan 10

ip address 192.168.10.3 255.255.255.0

standby 10 ip 192.168.10.1

standby 10 priority 100

standby 10 preempt

Routing

Distribution switches need a default route toward the edge router.

ip routing

Example:

ip route 0.0.0.0 0.0.0.0 10.10.10.1

The edge router needs routes back to the internal network if you're not using a routing protocol. For example:

ip route 192.168.10.0 255.255.255.0 <Distribution-Switch-IP-on-10.10.10.0/30>

Traffic Flow

PC1

Virtual Gateway
192.168.10.1



HSRP Active Switch



Edge Router



ISP Router



Internet


TEST

On PC

ping
203.0.113.1 -n 100 ( heavy traffic )

If Distribution Switch 1 fails:

Distribution Switch 2

becomes

Active

The virtual IP 192.168.10.1 remains the same, so PC1 and PC2 continue using the same default gateway without any changes.

Comments

Popular posts from this blog

🖧 VLAN (Virtual Local Area Network)

🌐 NAT (Network Address Translation)

🛰️ OSPF (Open Shortest Path First)