cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1011
Views
0
Helpful
8
Replies

Router HSRP Active/Standby question

Wilson Kwok
Level 1
Level 1

Hello,

Can I use following command to setup HSRP Active/Standby mode for both router ?

Router A:

ip address 10.10.228.202 255.255.255.248

standby 3 ip 10.10.228.201

standby 3 preempt

Router B:

ip address 10.10.228.203 255.255.255.248

standby 3 ip 10.10.228.201

standby 3 preempt

standby 3 track 1 decrement 10

standby 3 track 2 decrement 10

Thanks

8 Replies 8

Sandeep Choudhary
VIP Alumni
VIP Alumni

Hi Wilson,

Basic HSRP Config:

RA(config)#interface ethernetxx

RA(config-if)#ip address 10.10.228.202

RA(config-if)#standby 3 ip 10.10.228.201

RA(config-if)#standby 3 priority 200

RA(config-if)#standby 3 preempt <-- Add this to force RA to return to active state after failure

RA(config-if)#standby 3 track 1 decrement 10


RB(config)#interface ethernetxx

RB(config-if)#ip address 10.10.228.203

RB(config-if)#standby 1 ip 10.10.228.201

RB(config-if)#standby 3 track 1 decrement 10

Here is the example:

http://www.pearsonitcertification.com/articles/article.aspx?p=2141271

Regards

Wilson,

we don't know what objects you're tracking, so it's a little bit difficult to answer the question.

You use the default priorities on both routers (100), so, as long as track objects 1 and 2 are up, Router B will be the active router, because it has the higher IP address.

If track object 1 or 2 goes down, Router B's priority will be reduced to 90 (or 80 if both are down at the same time),  so Router A will become active, because preemption is enabled.

If the track object(s) change to up, Router B will take over again, because it also has preemtion enabled.

Correction:

Preemption only comes into play when the local priority is higher than the priority of the current active router. In your examle, the priorities on RA and RB have the same values. The IP addresses serve as a tie breaker only in the initial phase, the preemption feature doesn't consider the IP addresses later on.

Consequence: Router A continues beeing the active router.

HTH

Rolf

Hello,

The config files was gave by my colleague and we can't go into this rwo routers. Those both routers has 3 interface g0/0, g0/1 and s0/0 that connecting to IPLC frame-relay, how can I know what interface it tracking ?

Is it mean this settings is router B is active and router A is standby router, right ?

Thanks

Rolf Fischer
Level 9
Level 9

If the track objects are both up when HSRP initializes, router B will be active (higher IP address) and router B the standby router.
If one of the track objects go down, router A will take over and even if the track objects change to up again, router A will still be the active router (now both have the same priority, so there is no preemtion). If you want to let router B take over again in such an event, you should change the priority on one of the routers, e.g. on router A to 95 or on router B to 105.


Sent from Cisco Technical Support Android App

OK, thanks.

Wilson Kwok
Level 1
Level 1

Hi all,

If want to setup active/active mode, how to do that ?

Thanks

Hi,

the only way I know is MHSRP (Multigroup HSRP); you configure 2 different standby-groups with 2 different vIPs, one active and the other one standby on the first router and vice versa on the second. The 2 different vIPs are used as the default-gateways for two different groups of hosts.

Document: Load Sharing with HSRP

HTH

Rolf

lmediavilla
Level 1
Level 1

You can setup and active active using GLBP, most cisco gear supports it, you can also setup the "load" between both wan links if you want

Here is the official docuentation. It is not more difficult than HSRP


http://www.cisco.com/en/US/docs/ios-xml/ios/ipapp_fhrp/configuration/12-4t/fhp-glbp.html#GUID-A2D19870-5191-4181-B02F-D4810F9789E3

kind regards

Review Cisco Networking for a $25 gift card