03-23-2009 01:19 AM - edited 03-04-2019 04:02 AM
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
03-23-2009 01:54 AM
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
03-23-2009 03:11 AM
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
03-23-2009 08:21 AM
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
03-24-2009 02:33 AM
Indeed, I stand corrected. Good catch, sorry Guiseppe :)
03-25-2009 04:50 AM
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?
03-25-2009 06:03 AM
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
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide