07-14-2015 10:38 PM
I have to convert IOS configuration to IOSXR.
How to convert below configuration to route-policy of IOSXR
I couldn't find to match interface option on configuration guide.
route-map Bound_for_Customers deny 10
match interface gigabitethernet 1/15 gigabitethernet 1/16
Please advise me.
Thank you.
07-15-2015 12:32 AM
You can match the destination networks for the two interfaces instead.
So it for example you have
interface GigabitEthernet1/15
ip address 198.51.100.1 255.255.255.0
!
interface GigabitEthernet1/16
ip address 203.0.113.1 255.255.255.0
then the equivalent XR route policy would be something like
route-policy Bound_for_Customers if destination in (198.51.100.0/24, 203.0.113.0/24) then drop endif end-policy
07-16-2015 09:51 AM
is it ok if I add one note to that?
the sample RPL from you mark is sane and sound, but the default "ticket" is drop.
so you would want to add an:
else
pass
endiff
to the rpl after the drop statement.
otherwise everything will get dropped since there is no pass or set ticket handed out.
xander
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