09-04-2025 01:38 AM
Hi i have this diagram
If prefix 192.168.10.0/24 have tag 50 gateway set Edge A
if prefix 192.168.10.0/24 have tag 100 gateway set Edge B
How can do this by vrf ????
09-04-2025 02:01 AM
check PBR with BGP example : by the way what device model and code running the router ?
https://www.cisco.com/c/en/us/td/docs/ios/12_2sr/12_2srb/feature/guide/srb2mvrf.html#wp1053956
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
09-04-2025 02:16 AM - edited 09-04-2025 02:28 AM
Hello admin@atrinnet.net
What is the protocol between Client Router and Edge Routers A and B ?
By route-map, no ?
route-map XXXX permit 10
match tag x
set vrf y
Apply route-map in ingress between client routeur and its Edge routeur.
09-04-2025 02:23 AM - edited 09-04-2025 02:32 AM
Hmm
Try this way
Route-map VRF-A permit 10
Match tag xx
Set vrf VRF-A
Set next-hop <IP> <<<- apologies use set interface not set next-hop' since set interface is not vrf aware (not check IP in vrf rib)
Do same for VRF-B
Note:- run this in lab before apply in real network' some router not accept set next-hop/interface
09-04-2025 03:16 AM
admin@atrinnet.net wrote:Hi i have this diagram
If prefix 192.168.10.0/24 have tag 50 gateway set Edge A
if prefix 192.168.10.0/24 have tag 100 gateway set Edge B
How can do this by vrf ????
Hello admin@atrinnet.net,
Use Policy-Based Routing (PBR) with route-maps to match the tag and direct traffic to the correct gateway within the appropriate VRF.
- Tag 50 → route-map → set VRF → forward via Edge A
- Tag 100 → route-map → set VRF → forward via Edge B
This allows the same prefix to be handled differently based on tag, using VRF separation and route-map logic.
Best regards,
Kyla Ellis
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