Nexus VRF route confusion

Here is something that confuses more than a couple people on the Nexus platform.

You might think that because the IOS/XE command to create a default route in your management VRF is:

ip route  vrf management

That the command:

ip route mgmt0 vrf management

would do the same on the Nexus platform, but you would be wrong.
It does not create a default route in VRF management  it creates a route which has it’s next hop in VRF management but the route itself would go into the default VRF (or whichever VRF you are in when you enter the command).  This is useful for MPLS L3-VPN route leaking.

The correct command syntax on the Nexus is:

n7k-i2(config-if)# vrf context management
n7k-i2(config-vrf)# ip route
n7k-i2(config-vrf)# end


This entry was posted in network, Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s