05-23-2022 07:41 PM
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,
05-23-2022 10:23 PM
Try
Ipv4 local policy-route
05-24-2022 08:20 PM
No such command on N9K
05-25-2022 11:44 AM - edited 05-25-2022 11:45 AM
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
05-25-2022 11:52 AM
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!
05-25-2022 12:29 PM
05-25-2022 12:41 PM
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.
05-25-2022 12:55 PM
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.
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