01-03-2024 04:56 PM - edited 01-04-2024 06:07 PM
How can I aply something like PBR but for the traffic originated from the router interface itself in a multi-homed setup? See the diagram attached.
I have 10.0.0.1/31 configured on TenGigE0/0/0/1. I would like ping replies to ping requests to that IP always returned via the same TenGigE0/0/0/1.
At that moment I receive pings from 192.18.1.1 and bgp table has TenGigE0/0/0/5 a best route. This is not a desired behavior since traffic should be returned via TenGigE0/0/0/1 where 10.0.0.0/31 is located.
Is there a way on IOS-XR to apply Policy Based Routing to locally generated packets?
01-03-2024 05:15 PM
Hello,
You cna try the command:
ip local policy route-map <name>
Then you can also run the debug ip policy to see if your traffic is hitting the local policy or not.
-David
01-03-2024 09:01 PM
There is no ip local policy route-map there.
RP/0/RSP0/CPU0:router19(config)#ip local policy route-map
^
% Invalid input detected at '^' marker.
RP/0/RSP0/CPU0:router19(config)#exit
RP/0/RSP0/CPU0:router19#show version
Wed Jan 3 22:08:07.767 MST
Cisco IOS XR Software, Version 7.4.1
01-03-2024 10:07 PM
https://xrdocs.io/ncs5500/tutorials/acl-based-forwarding-and-object-tracking-for-ncs5xx-and-ncs55xx/
Everything in ios xr is different than other ios.
Check link about ABF
MHM
01-04-2024 07:14 AM - edited 01-04-2024 07:35 AM
ABF is ingress mechanism only.
01-04-2024 07:32 AM
friend at least check the link
you never check it and answer directly
this same as your issue
https://community.cisco.com/t5/xr-os-and-platforms/local-policy-map-pbr-policy-based-routing-in-ios-xr/td-p/4416012
and see the solution
Make review next time
MHM
01-04-2024 07:39 AM
Nothing on that link is about locally generated traffic. ABF is for the TRANSIT INGRESS traffic. My question is about LOCALLY GENERATED EGRESS traffic.
01-04-2024 08:05 AM
OK, did you try config ABF and test
match the host <IP from which the ICMP is send> and set the next-hop as you want
try and share config and result
MHM
01-04-2024 08:18 AM
And apply that ABF where exactly? Again I'm still talking locally generated traffic.
Again, ABF is INGRESS and TRANSIT, I'm talking about EGRESS and LOCALLY generated.
01-04-2024 08:28 AM
ok what about ePBR?
did you try it
MHM
01-04-2024 08:58 AM
what is ePBR? Any doc about it and how to apply that to locally generated egress traffic?
01-04-2024 09:00 AM
01-04-2024 09:35 AM
Your link about INBOUND aka INGRESS. Again, my question is about LOCAL EGRESS.
01-04-2024 03:28 AM
Hello
Applying PBR doesn't necessary change the how the return traffic is routed meaning you most probably would encounter asymmetric routing unless PBR is applied on the other side of the connection as such you would break network connectivity especially if you have strict uRPF enabled.
If you wish to traffic engineer certain traffic then there are alternatives to PBR , depending on how your network is setup - can you elaborate a bit more on your present network topology?
01-04-2024 07:15 AM - edited 01-04-2024 07:19 AM
Quite the opposite - I expect symmetric routing. But we can ignore that part for a moment.
Question is still open: how to steer locally generated traffic on IOSXR, i.e. ICMP replies from the router itself.
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