cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
617
Views
0
Helpful
1
Replies

Nexus HSRP and default routes

griffijo
Level 1
Level 1

I have 2 data centers each with a Nexus 5672UP connected together via an 80Gbps port-channel (2X40).  Each data center has its own Internet connection.  I'm running hsrp between the two 5672's and I've configured hsrp so that the active router for all hsrp groups is located in data center 1.  This is verified, there are no active routers at data center 2.  I've done this because traditionally we only had 1 Internet circuit and there are a number of outside-to-inside ip mappings (mail, web severs, etc.)  configured through our ASA at data center 1.  I want all of our data center servers, whether located in data center 1 or data center 2, to default route via data center 1.  I've noticed some unexpected behavior.  I have 4 servers all in the same vlan, 2 at each data center (192.168.200.35/36 at data center 1 and 192.168.200.45/46 at data center 2).  They're all configured to use the same default gateway, 192.168.200.1 which is active at data center 1.  However, the servers located at data center 2 are using the default route that is preferred in data center 2, even though the default gateway (192.168.200.1) is active on the nexus at data center 1.  This is confusing me somewhat.  I had done this previously via a pair of catalyst 6500's and don't remember having this issue.  If I shutdown the SVI (interface vlan35) at data center 2 then this works appropriately.

DC-1-N5672#
interface Vlan35
no shutdown
no ip redirects
ip address 192.168.200.5/24
ip router eigrp 100
ip pim sparse-mode
ip pim dr-priority 50
hsrp version 2
hsrp 35
preempt
priority 110
timers msec 500 msec 1600
ip 192.168.200.1

DC-2-N5672#
interface Vlan35
delay 2
no ip redirects
ip address 192.168.200.6/24
ip router eigrp 100
ip pim sparse-mode
ip pim dr-priority 25
hsrp version 2
hsrp 35
preempt
priority 105
timers msec 500 msec 1600
ip 192.168.200.1

1 Reply 1

Reza Sharifi
Hall of Fame
Hall of Fame

If vPC is configured between the 2 5672 switches both active and stand-by switches can forward traffic.

from the nexus config guide:

vPC forwards traffic through both the active HSRP router and the standby HSRP router.

link for more info:

http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/5_x/nx-os/unicast/configuration/guide/l3_cli_nxos/l3_hsrp.html

HTH

Review Cisco Networking for a $25 gift card