03-25-2021 06:43 AM
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
03-25-2021 07:21 AM
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
03-25-2021 07:32 AM
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
03-25-2021 08:02 AM
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:
HTH
03-25-2021 08:57 AM
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.
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