cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
384
Views
5
Helpful
4
Replies

Is static source routing possible on Nexus 7ks for SVIs

Hello,

I was wondering if you can help with a configuration on a Nexus 7k regarding source static routing. I am trying to accomplish seperate static routes to the same destination, but different next hops depending on source. for instance:

(Src: Vlan A) ip route 10.0.0.0 255.255.255.0 192.168.0.1

(Src: Vlan B) ip route 10.0.0.0 255.255.255.0 192.168.22.1

Both vlans exist on the Nexus 7k.

Thanks for any assistance

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

Hi Mike,

(Src: Vlan A) ip route 10.0.0.0 255.255.255.0 192.168.0.1

(Src: Vlan B) ip route 10.0.0.0 255.255.255.0 192.168.22.1

In your scenario, you have 2 VLANs but they are both in the same subnet witch will not work due to 2 SVIs being in the same network segment. Try a different subnet for each VLAN.

 

vlan 10 10.10.10.0 255.255.255.0

vlan 20 10.10.20.0 255.255.255.0

 

HTH

Thank you for your response, but I think you misread my goal.. I will add IPs to the vlans to make clearer. I want each vlan to take a separate path for a common destination.

 

Vlan A: 10.61.0.0/16

Vlan B: 10.95.0.0/16

 

(Src: Vlan A) ip route 10.0.0.0 255.255.255.0 192.168.0.1

(Src: Vlan B) ip route 10.0.0.0 255.255.255.0 192.168.22.1

Ok, sorry I misread your first post. I see the same destination with 2 exit points.

Maybe PBR can do what you need to do. See link:

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/6_x/nx-os/unicast/configuration/guide/b-7k-Cisco-Nexus-7000-Series-NX-OS-Unicast-Routing-Configuration-Guide-Release-6x/n7k_unicast_config_pbr.html

HTH

 

Thank you so much Reza!

 

This may be the solution, and I will be able to test in my next change window. Once confirmed, I will update as solution accepted.

Review Cisco Networking for a $25 gift card