02-01-2012 01:48 AM - edited 03-04-2019 03:05 PM
I have enquries for the interface tracking to the WAN connection. Below is the case scenario.
I have 2 routers (router A and router B) that running HSRP with OSPF connect to remote side router (router C and router D) seperately. If the interface for router C or router D go down, either router A or router B will become Primary router by using the tracking interface feature. Gig0/0 is the connection to WAN and gig1/0 is the connection to LAN. Not sure whether the configuration below is correct. Please feel free to input any comment. Thank you.
Router A
interface GigabitEthernet0/0
ip address 172.16.9.10 255.255.255.248
no ip redirects no ip unreachables
no ip proxy-arp
interface GigabitEthernet1/0
ip address 171.16.6.5 255.255.255.0
no ip redirects
standby 1 ip 171.16.6.100
standby 1 priority 105
standby 1 preempt
standby 1 track GigabitEthernet0/0
Router B
interface GigabitEthernet0/0
ip address 172.16.9.11 255.255.255.248
no ip redirects
no ip unreachables
no ip proxy-arp
interface GigabitEthernet1/0
ip address 171.16.6.6 255.255.255.0
no ip redirects
standby 1 ip
standby 1 preempt
standby 1 track GigabitEthernet0/0
02-01-2012 04:26 AM
Hi
Your config is ok except for;
Router B
interface GigabitEthernet1/0
standby 1 ip 171.16.6.100
However the config may not meet your requirements as the tracking only monitors the physical router interface, so if there is a switch etc between router A/B and the WAN, this would effectivly mask the WAN or router C/D going down. It is dificult to say though without knowing the topology!
HTH
MIke
02-01-2012 04:42 AM
Hi,
Yes the idea here should work.
You have missed 1 important part of the config on Router B, I have highlighted this in the configs below
Router A will be the gateway on 171.16.6.100 until its G0/0 goes down.
Router B will take over.
Because you are using the PREEMPT command Router A will take over as soon as G0/0 recovers.
So the Router B will not hold the address until its G0/0 goes down. To me I dont see any point in tracking G0/0 on Router B as it should never be active untill RouterA has a failure
Router A
!
interface GigabitEthernet1/0
ip address 171.16.6.5 255.255.255.0
no ip redirects
standby 1 ip 171.16.6.100
standby 1 priority 105
standby 1 preempt
standby 1 track GigabitEthernet0/0
!
Router B
!
interface GigabitEthernet1/0
ip address 171.16.6.6 255.255.255.0
no ip redirects
standby 1 ip 171.16.6.100
standby 1 preempt
standby 1 track GigabitEthernet0/0
!
Use the "show standby brief" command to verify that the HSRP is
in active & standby mode on both routers A & B
Router A should be active
Router B should be in standby
A good link for HSRP is:-
http://www.cisco.com/en/US/docs/ios/ipapp/configuration/guide/ipapp_hsrp_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1071202
HTH
Alex
Please rate useful posts
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