cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1191
Views
15
Helpful
7
Replies

ip local policy route-map on Nexus 9000

h.oliabak
Level 1
Level 1

Do you know if there is an N9K NX-OS equivalent for ip local policy route-map with IOS(-XE)?

 

N9K01(config)# feature pbr
N9K01(config)# ip local ?
                    ^
% Invalid command at '^' marker.

Thank you,

7 Replies 7

Try

Ipv4 local policy-route

No such command on N9K

pman
Spotlight
Spotlight

Hi,

 

feature pbr
ip access-list pbr-sample_1
permit tcp host 10.1.1.1 host 192.168.2.1 eq 80
ip access-list pbr-sample_2
permit tcp host 10.1.1.2 host 192.168.2.2 eq 80
!
route-map pbr-sample permit 10
match ip address pbr-sample_1
set ip next-hop 192.168.1.1
route-map pbr-sample permit 20
match ip address pbr-sample_2
set ip next-hop 192.168.1.2
!
route-map pbr-sample pbr-statistics

interface ethernet 1/2
ip policy route-map pbr-sample

 

https://www.cisco.com/c/en/us/td/docs/dcn/nx-os/nexus9000/101x/configuration/unicast/cisco-n9000-nx-os-unicast-routing-configuration-guide-101x/m-configuring-pbr.html#reference_18C70B4A831D4713B449A1F1DC16FCF3

Thank you pman for the reply. But this is not the solution I was looking for. Your solution PBRs the passing traffic through NX-OS with e1/2 as the ingress interface. However, I am asking if you can PBR the locally generated traffic on NX-OS.

 

Thank you!

why we need local PBR ? to make Router/SW local generate packet take specific path.
I think config management interface with VRF and config static route do the same purpose and hence that why this commend is missing from Nexus.

Yeah, seems we can achieve through different solutions for my IP SLAs to just exit a particular interface. But it was much simpler to treat PBR in NX-OS for locally generated traffic like IOS-XE.