cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1423
Views
1
Helpful
22
Replies

Policy based routing, local traffic ASR IOS-XR

als95
Level 1
Level 1

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?

 

22 Replies 22

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

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

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

ABF is ingress mechanism only.

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

Nothing on that link is about locally generated traffic. ABF is for the TRANSIT INGRESS traffic. My question is about LOCALLY GENERATED EGRESS traffic. 

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

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.

 

ok what about ePBR?
did you try it
MHM

what is ePBR? Any doc about it and how to apply that to locally generated egress traffic? 

Your link about INBOUND aka INGRESS. Again, my question is about LOCAL EGRESS. 

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?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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. 

Review Cisco Networking for a $25 gift card