Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hsrp not failing-over 1

Status
Not open for further replies.

eliyzfr600

Technical User
Dec 3, 2006
13
MX
all,

i have a problem with one of my hsrp setups, i have two internet routers with different internet providers each (hsrp), however my "active" hsrp router does not fail-over when it looses BGP adjacency. It fails over when an up/down or down/down state is detected, but not when only the bgp adj is detected (and up/up state in wan int), the logs indicates bgp neighbor hold time expired.

Has anyone had this problem before?

I was thinking of using EEM or the Object tracking feature to detect the carrier loss.

My router log:
Jul 1 09:57:10.031: %BGP-5-ADJCHANGE: neighbor 67.52.xxx.xxx Down BGP Notification sent
Jul 1 09:57:10.031: %BGP-3-NOTIFICATION: sent to neighbor 67.52.xxx.xxx 4/0 (hold time expired) 0 bytes
 
It won't do it unless you implement object tracking.. HSRP by default will only swapover if the active hsrp group member is lost.
 
thanks,

i was not sure if that was the only way to make it work, does anyone know any good links that could help me with the correct options for object tracking?
 
i have set up the following script but hsrp is not failing over when i loose BGP adjacency. I get my 0.0.0.0 route via bgp however when the route is lost or my BGP neighbor is not reachable hsrp does not failover.

My edge router config

track 11 ip route 0.0.0.0 0.0.0.0 reachability
!
interface FastEthernet0/0
desc => Internet (inside)
ip address 10.1.151.66 255.255.255.240
no ip redirects
no ip unreachables
no ip proxy-arp
no ip mroute-cache
duplex full
speed 100
no cdp enable
standby 10 ip 10.1.151.67
standby 10 priority 105
standby 10 preempt
standby 10 track 11 decrement 25

Has anyone dealt with this in the past?
 
Does your other hsrp member have 'preempt' enabled? It will only take over if you have that command.
 
Yes, the other side has preemt configured...the problem appears to be hsrp not detecting the "BGP Adjacency" loss. Else hsrp works perfectly. Due to the WAN facing int not changing to a up/down or down/down state, hsrp does not react.
 
Depending on your topology (directly connected neighbors or not...), you mat need to configure BGP with the keywords ebgp-multihop, update-source or even next-hop-self.

Burt
 
When neighbor goes down.. if you do a 'show ip route 0.0.0.0' the route does not exist correct?? Is the router picking the route up via OSPF, iBGP, or another protocol?


BuckWeet
 
BuckWeet,

yes, as soon as my bgp adj drops i loose my 0.0.0.0 route. my router is getting this route via eBGP, but i can not get my hsrp to detect when i loose my 0.0.0.0 route and failover

 
Try using this:

ip route 0.0.0.0 0.0.0.0 10.0.0.1 track 1
ip route 0.0.0.0 0.0.0.0 10.0.90.2 254

track 1 rtr 123 reachability

sla monitor 123
type echo protocol ipIcmpEcho 10.0.0.2 interface outside
num-packets 3
frequency 10
sla monitor schedule 123 life forever start-time now


 
I would say you have to trackk the neighbour address reachability than tracking any other means. When the neighbor goes which means it is not reachable. so if you try to track by the neighbor reachability when the neighbor goes down you will know and then it will start to kickin the backup.

cheers

Raj
 
Or you could run iBGP between your routers and not worry about tracking the BGP adjacencies. If an adjacency goes down on one router, it will forward traffic to the other router. You still would want HSRP to handle cases where an actual router goes down.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top