le 25-08-2023 08:37 AM
Hi all,
I would like to redirect next hop for 1 address only, before when I have NX-OS, I have used policy based routing and it working very good, but unable to reproduce the same on IOS XR.
Before on NXOS
We enable Policy Based Routing
feature pbr |
We create IP list triggered
ip access-list TO_GPE |
We create policy who match TO_GPE ACL
route-map TO_GPE permit 10 |
We apply policy to VLAN
interface Vlan100 |
Anyone can help me?
Thank you
Résolu ! Accéder à la solution.
le 25-08-2023 09:10 AM
Hi,
Thank you for answer.
I not found how associate policy based routing to a sub-interface like :
On NXOS
interface Vlan100
ip policy route-map TO_GPE
On IOS XR :
interface Bundle-Ether2.80
description "RESTRICTED"
ipv4 address X.X.X.X/X
flow datalinkframesection monitor sflow-mon1 sampler SF-SAMP-MAP ingress
encapsulation dot1q 80
Can you know how to do it?
Thank you
25-08-2023 09:06 AM - modifié 25-08-2023 10:08 AM
what IOS XR Code :
try below example should work : (just tweaked your example )
ip access-list ACL_TO_GPE
permit ip 104.234.204.135/32 any
permit ip 45.154.96.235/32 any
route-map TO_GPE permit 10
match ip address ACL_TO_GPE
set ip next-hop 100.64.81.6
interface x/x.x
ip policy route-map TO_GPE
check PBR example for IOS XR :
le 25-08-2023 09:10 AM
Hi,
Thank you for answer.
I not found how associate policy based routing to a sub-interface like :
On NXOS
interface Vlan100
ip policy route-map TO_GPE
On IOS XR :
interface Bundle-Ether2.80
description "RESTRICTED"
ipv4 address X.X.X.X/X
flow datalinkframesection monitor sflow-mon1 sampler SF-SAMP-MAP ingress
encapsulation dot1q 80
Can you know how to do it?
Thank you
le 25-08-2023 10:09 AM
Good with :
ipv4 access-list XXX-in
10 permit ipv4 any any nexthop1 ipv4 X.X.X.X
100 permit ipv4 any any
And apply ACL to port
le 25-08-2023 10:17 AM
Try applying as below :
interface Bundle-Ether2.80
ip policy route-map TO_GPE
Or if you have latest you can test using ABF
Découvrez et enregistrez vos notes préférées. Revenez pour trouver les réponses d'experts, des guides étape par étape, des sujets récents et bien plus encore.
Êtes-vous nouveau ici? Commencez par ces conseils. Comment utiliser la communauté Guide pour les nouveaux membres
Parcourez les liens directs de la Communauté et profitez de contenus personnalisés en français