0

We have Cisco nexus 9396PX and we run PBR on it. We want to send all traffic trough this route but it sends those traffic which is not learned in another routing protocol like BGP.

In IOS we can use "set ip next-hop default" but in this type of device this command is not available.

Do you have any experience about this case?

1
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Nov 19, 2022 at 22:57

2 Answers 2

0

ip route 0.0.0.0/0 <gateway> should work. If it doesn't please add the running config to your question, so we can pinpoint the problem. Make sure you add enough context so we can understand the intentions.

Note that longer-prefix routes generally take precedence over the default route. If you don't want that you'd need to remove those routes.

PBR is a special form of routing where you route by source address or protocol/L4 port instead of the normal destination address.

1
  • I need to route based on Source but in this device I cannot route all traffic from specific IP source and route those Ranges which is not in routing table only. (like default gateway) Aug 30, 2022 at 9:00
0

Here is the documentation on the Nexus 9000 series for IP Routing, and specifically for Policy Based Routing.

https://www.cisco.com/c/en/us/td/docs/dcn/nx-os/nexus9000/103x/unicast-routing-configuration/cisco-nexus-9000-series-nx-os-unicast-routing-configuration-guide-release-103x/m_configuring_policy-based_routing_101x.html

Some of the commands are slightly different from IOS but mostly similar. Make sure your switch is updated before you try to use the commands, if the NX-OS release is too old, it may not support the features you need. You may also have to enable the feature for ip routing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.