Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

HSRP

Dear,

i have two routers Main and Backup

- Main Router Internal Interface: 192.168.250.1

- Backup Router Internal Interface: 192.168.250.3

I want to use the HSRP between them in which, if the line connected to main dropped, the other router should take the responsibility and the work run smoothly

Note: the two routers are connected to two different lines, one for Main and other for backup

6 REPLIES
Hall of Fame Super Silver

Re: HSRP

Hello Mahmud,

this can be done with a typical configuration like the following:

int f0/0

ip address 192.168.250.2 255.255.255.0

standby 10 ip 192.168.250.1

standby 10 priority 105

standby 10 preempt

standby 10 track ser0

R2:

int f0/0

ip address 192.168.250.3 255.255.255.0

standby 10 ip 192.168.250.1

standby 10 preempt

standby 10 track ser0

key points:

HSRP uses one ip address for the VIP that is the gateway for the clients

the preempt command is needed on both devices

the track command allows to reduce the HSRP priority if the monitored wan link fails:

if this happens R1 priority becomes 105-10= 95 and R2 (def. priority is 100) takes the active role.

if the wan link is restored R1 takes again the active role

Hope to help

Giuseppe

Community Member

Re: HSRP

Giuseppe is mostly correct, the only thing I noticed is that he reused 192.168.250.1 as your VIP (standby IP in the configs). For HSRP, you cannot use the physical IP address as the VIP also. I would recommend making the VIP 192.168.250.2 where R1 physical IP is 192.168.250.1 and R2 physical IP is 192.168.250.3. Or, if you feel like changing the physical IP of R1, it is more typical to see the VIP be .1, R1 IP be .2, and R2 IP be .3.

HTH

Ryan

Hall of Fame Super Gold

Re: HSRP

Ryan

Giuseppe did not really reuse 192.168.250.1. The original post specified that the physical interfaces were .1 and .3. In his example Giuseppe changed the physical addressing to .2 and .3 and used .1 as the VIP. This is a logical thing to do in the example but does not quite follow the specification of the original post.

HTH

Rick

Community Member

Re: HSRP

Indeed, I stand corrected. Good catch, sorry Guiseppe :)

Community Member

Re: HSRP

Thanx alot Giuseppe,

also, how can I use the "track" command to check if the line is working or dropped ( using only fastethernet interfaces connected to that line not ATM nor Serial) in conjunction with the HSRP in which if the line is drooped, stand-by router will takeover

can I use track command with IP Address which will be the next hop address instead of the interface name?

Hall of Fame Super Silver

Re: HSRP

Hello Mahmoud,

>> as in your other thread let's go on on this one

you can use HSRP with object tracking if you want to track ip reachability

see

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750e_3560e/software/release/12.2_35_se2/configuration/guide/swhsrp.html

Hope to help

Giuseppe

123
Views
0
Helpful
6
Replies
CreatePlease to create content