HSRP
Cisco developed the proprietary Hot Standby Router Protocol (HSRP) to
allow multiple routers or multilayer switches to masquerade as a single
gateway. This is accomplished by assigning a virtual IP and MAC address
to all routers participating in an HSRP group.
Routers within the same HSRP group must be assigned the same group
number, which can range from 0 to 255. However, most Cisco platforms
only support 16 configured HSRP groups.
HSRP routers are elected to specific roles:
• Active Router – router currently serving as the gateway.
• Standby Router – backup router to the Active Router.
• Listening Router – all other routers participating in HSRP.
Only one active and one standby router are allowed per HSRP group. Thus,
HSRP provides Layer-3 redundancy, but no inherent load balancing.
Hello packets are used to elect HSRP roles and to ensure all routers are
functional. If the current active router fails, the standby router will
immediately take over as active, and a new standby is elected. By default,
hello packets are sent every 3 seconds.
The role of an HSRP router is dictated by its priority. The priority can range
from 0 – 255, with a default of 100. A higher priority is preferred.
To achieve load balancing with this HSRP setup, half of the hosts in VLAN
100 must point to the first virtual address as their gateway. The
other half must use the other virtual address as their gateway.
PC2>save
Cisco developed the proprietary Hot Standby Router Protocol (HSRP) to
allow multiple routers or multilayer switches to masquerade as a single
gateway. This is accomplished by assigning a virtual IP and MAC address
to all routers participating in an HSRP group.
Routers within the same HSRP group must be assigned the same group
number, which can range from 0 to 255. However, most Cisco platforms
only support 16 configured HSRP groups.
HSRP routers are elected to specific roles:
• Active Router – router currently serving as the gateway.
• Standby Router – backup router to the Active Router.
• Listening Router – all other routers participating in HSRP.
Only one active and one standby router are allowed per HSRP group. Thus,
HSRP provides Layer-3 redundancy, but no inherent load balancing.
Hello packets are used to elect HSRP roles and to ensure all routers are
functional. If the current active router fails, the standby router will
immediately take over as active, and a new standby is elected. By default,
hello packets are sent every 3 seconds.
The role of an HSRP router is dictated by its priority. The priority can range
from 0 – 255, with a default of 100. A higher priority is preferred.
To achieve load balancing with this HSRP setup, half of the hosts in VLAN
100 must point to the first virtual address as their gateway. The
other half must use the other virtual address as their gateway.
LAB SESSION :
OBJECTIVE :Configuring HSRP With Load balance Using GNS3
TOPOLOGY:
![]() |
HSRP |
VIDEO TUTORIAL CLICK ON THE LINK
VIDEO TUTORIAL
SW1 CONFIGURATION
SW1(config)# interface FastEthernet1/1
SW1(config-if)# switchport mode trunk
SW1(config-if)exit
SW1(config)#interface Vlan50
SW1(config-if)#ip address 192.168.1.10 255.255.255.0
SW1(config-if)standby 1 ip 192.168.1.1
SW1(config-if)standby 1 priority 200
SW1(config-if)standby 1 preempt
SW1(config-if)standby 2 ip 192.168.1.2
SW1(config-if)standby 2 priority 100
SW1(config-if)standby 1 ip 192.168.1.1
SW1(config-if)standby 1 priority 200
SW1(config-if)standby 1 preempt
SW1(config-if)standby 2 ip 192.168.1.2
SW1(config-if)standby 2 priority 100
SW2 CONFIGURATION
SW2(config)#interface FastEthernet1/1
SW2(config-if)#switchport mode trunk
SW2(config-if)#exit
SW2(config)#interface Vlan50
SW2(config-if)# ip address 192.168.1.11 255.255.255.0
SW2(config-if)# standby 1 ip 192.168.1.1
SW2(config-if)# standby 1 priority 100
SW2(config-if)# standby 2 ip 192.168.1.2
SW1(config-if)# standby 2 priority 200
SW1(config-if)# standby 2 preempt
SW2(config-if)# ip address 192.168.1.11 255.255.255.0
SW2(config-if)# standby 1 ip 192.168.1.1
SW2(config-if)# standby 1 priority 100
SW2(config-if)# standby 2 ip 192.168.1.2
SW1(config-if)# standby 2 priority 200
SW1(config-if)# standby 2 preempt
PC CONFIGURATION
PC1>ip 192.168.1.101 255.255.255.0 192.168.1.1
PC1>save
PC2>ip 192.168.1.102 255.255.255.0 192.168.1.1
PC3>ip 192.168.1.103 255.255.255.0 192.168.1.2
PC3>save
PC3>ip 192.168.1.104 255.255.255.0 192.168.1.2
PC3>saveOutput To Verify the HSRP
SW 1
SW1#sh standby brief
P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Vl50 1 200 P Active local 192.168.1.11 192.168.1.1
Vl50 2 100 Standby 192.168.1.11 local 192.168.1.2
P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Vl50 1 200 P Active local 192.168.1.11 192.168.1.1
Vl50 2 100 Standby 192.168.1.11 local 192.168.1.2
SW2
SW2#show standby brief
P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Vl50 1 100 Standby 192.168.1.10 local 192.168.1.1
Vl50 2 200 P Active local 192.168.1.10 192.168.1.2
P indicates configured to preempt.
|
Interface Grp Prio P State Active Standby Virtual IP
Vl50 1 100 Standby 192.168.1.10 local 192.168.1.1
Vl50 2 200 P Active local 192.168.1.10 192.168.1.2
No comments:
Post a Comment