05-13-2024 08:37 AM
Hi,
I would like to create a PBR and apply it to an interface. I have created the route policy below and also a localized policy. I added the route policy to the localized policy and finally included the localized policy in a device template. However, according to Cisco's website, I should also add my route policy directly to an interface.
When I opened a feature template for an interface, I couldn't find any field where I could enter the route policy. Can you please advise me on how to apply my route policy to an interface, (similar to how we apply a route map to an Interface)?
Solved! Go to Solution.
05-13-2024 02:18 PM - edited 05-13-2024 02:20 PM
Hi,
Policy based routing (PBR) and route-policy are two different things. PBR is related to data plane, route-policy is related to control plane.
PBR is to redirect traffic while you override routing table. Routing table shows next-hop_A, you send traffic to next-hop_B via PBR.
Route policy is used with routing protocols (e.g OSPF/BGP) which manipulates routes (change attributes, deny - filter route etc.).
Whatever you have in picture is route policy which is created and added to localized policy and then localized policy is attached to device template (as you described too).
If you want to do traditional PBR, you need to do it via CLI add-on template. As in traditional routes OS, you need to have route-map (with match&set commands) and this route-map is attached to interface using "ip policy route-map [RM name]" command.
ePBR which is mentioned also is different - advanced version of PBR where you may redirect traffic towards next hop within different VRF (as shown below in usage example):
05-13-2024 10:35 AM
the screenshot is not clear - but i suggest different method check below guides (Hope that help you)
check some ePBR steps :
You can also do policy to manipulate path :
05-13-2024 02:18 PM - edited 05-13-2024 02:20 PM
Hi,
Policy based routing (PBR) and route-policy are two different things. PBR is related to data plane, route-policy is related to control plane.
PBR is to redirect traffic while you override routing table. Routing table shows next-hop_A, you send traffic to next-hop_B via PBR.
Route policy is used with routing protocols (e.g OSPF/BGP) which manipulates routes (change attributes, deny - filter route etc.).
Whatever you have in picture is route policy which is created and added to localized policy and then localized policy is attached to device template (as you described too).
If you want to do traditional PBR, you need to do it via CLI add-on template. As in traditional routes OS, you need to have route-map (with match&set commands) and this route-map is attached to interface using "ip policy route-map [RM name]" command.
ePBR which is mentioned also is different - advanced version of PBR where you may redirect traffic towards next hop within different VRF (as shown below in usage example):
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