cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1492
Views
0
Helpful
2
Replies

Using interface standby track Commands

ssweehinlew
Level 1
Level 1

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

2 Replies 2

michael.h4
Level 1
Level 1

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

acampbell
VIP Alumni
VIP Alumni

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

Regards, Alex. Please rate useful posts.
Review Cisco Networking for a $25 gift card