Вы находитесь на странице: 1из 3

Configuring HSRP(Hot Standby

Routing Protocol)

HSRP provides a consistent and reachable network layer


addres. By providing a constant address, even upon
failure, a form of redundancy can occur. The most common
deployment of HSRP is in LAN environments, where two
routers "share" a common host address between them.
This common address, called the hot standby address, is
used as the default gateway for all the local hosts on that
LAN segment. One router acts as the primary router and
actually receives traffic destined for the hot standby
address. The secondary router ignores this traffic until a
configured set of circumstances is reached that affects the
router's HSRP priority or standby priority. When the
secondary router's priority exceeds the primary, it starts
servicing requests for the hot standby address becoming
the primary router. From the workstation's point of view, it
has a single default gateway, pointing to the hot standby
address. preempt command enables the router to become
the primary if it has the highest priority in the group.
The priority command assigns a priority to the router. The
default priority is 100, and the router with the highest
priority becomes the primary router, or active router.

Configure routing protocol (RIP)


on R1, R2, and R3.

Configure HSRP group 1 on R2 & R3, using the virtual ip


address 12.0.0.50
R2

int Fa 0/0
Standby 1 ip 12.0.0.50
Standby 1 preempt
Standby 1 priority 200

R3

int Fa 0/0
Standby 1 ip 12.0.0.50
Standby 1 priority 100

R2#show standby brief

you can configure 20.1.1.1 as loopback on R1


R1 (config)# interface loopback 0

R1 (config)# ip address 20.1.1.1 255.0.0.0

PC Configuration

IP 12.0.0.3

DG 12.0.0.50

From PC1 :

tracert 20.1.1.1

You can see this ip is reached by R2(Active HSRP Router)


ip address 12.0.0.1

Shut down the interface Fa 0/0 on R2 and traceroute.

From PC1 : tracert 20.1.1.1

Traceroute command displays that the packet reaches


12.0.0.2 (standby router R3 becomes active) and then
reaches 20.1.1.1.

Вам также может понравиться