annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
cancel
768
Visites
0
Compliment
4
Réponses

IOS XR — Redirect next hop for 1 address only

axelhauguel
Level 1
Level 1

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
  statistics per-entry
  10 permit ip 104.234.204.135/32 any
  20 permit ip 45.154.96.235/32 any 

 

 

We create policy who match TO_GPE ACL

route-map TO_GPE permit 10
  match ip address TO_GPE
  set ip next-hop 100.64.81.6  

 

We apply policy to VLAN

 

interface Vlan100
  ip policy route-map TO_GPE

 

Anyone can help me?

 

Thank you

1 SOLUTION APPROUVÉE

Solutions approuvées

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

Voir la solution dans l'envoi d'origine

4 RÉPONSES 4

balaji.bandi
Hall of Fame
Hall of Fame

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 :

https://community.cisco.com/t5/service-providers-knowledge-base/asr9000-xr-abf-acl-based-forwarding/ta-p/3153403

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

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

Try applying as below :

interface Bundle-Ether2.80
ip policy route-map TO_GPE

Or if you have latest you can test using ABF

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help