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-04-2024 03:46 PM
Hello
quite understand you wish symmetric routing but as i have stated traffic engineering with PBR would mostly probably not provide this - so unless you can elaborate on your existing network topology regards what routing processes / traffic engineering/egress paths etc you are currently utilising then supplying an alternative solution would be inappropriate.
01-04-2024 06:02 PM
Attached the network diagram.
01-04-2024 10:21 PM
I run lab and test your topology,
the R1 use local PBR and send traffic via F1/1 (RIB is use f0/0)
the R1 success use Local PBR and send traffic the return is not via f1/1 it via f0/0
the return traffic is control by R2 not by R1.
@paul driver remember the issue of NAT days ago, check the Echo request (no response found) so as I mention that issue because of routing.
thanks all
MHM
01-05-2024 06:36 AM
How to apply local PBR on IOSXR? Please provide the command you have used in your lab.
01-05-2024 12:14 AM
Hello @MHM Cisco World
What you have posted would produce that result, I am on about a more complex network or in the diagram the OP has posted in that the rtr has dual paths into the internet.
Where ever that destination is within the internet, it possible the receiving rtr prefers to route via a different path back to the OPs rtr, So when the OPs rtr is PBR'd via its alternate path or in your case PBR'd via rtr2 , the request is forwarded to the "another" rtr on the internet as such when that rtr responds it may have a more preferred path to reach back to the source network.
In your case it will be to rtr1 other than r2 or in the OPs case via its primary interface where I believe uRPF is enabled in either scenario this is where asymmetric routing could possibly be produced, plus the OPs rtr will drop traffic because of strict uRPF being enabled.
07-26-2024 01:49 AM
Was a solution ever found for IOS XR ? or is it not possible to change the next hop for traffic localy generated on a IOX XR router ?
i have a GRE tunnel where the tunnel destination address should take another path than it would when looking into the FIB
07-26-2024 01:01 PM
There is no solution. There is no way to apply Policy Based Routing to the locally generated packets on ASR routers.
07-26-2024 01:48 AM
Was a solution ever found for IOS XR ? or is it not possible to change the next hop for traffic localy generated on a IOX XR router ?
i have a GRE tunnel where the tunnel destination address should take another path than it would when looking into the FIB
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