03-08-2020 01:03 AM
Hi all
I wonder if IOS XR route-policy has match statement for interfaces like route-map in regular IOS.
route-map TEST permit 10
match interface loopback0
IOS XR:
route-policy TEST
if interface LOOPBACK0
pass
I know that we can match based on the IP address, however, I want to match based on the interface in order to keep RPL integrity when the interface IP address has changed.
Regards
Seek
Solved! Go to Solution.
03-08-2020 02:58 PM
What does match interface do? Match the next-hop or source or destination?
We do not have the ability to match interface in XR, you would need to match the next-hop, source, or destination IP address or subnet.
Sam
03-08-2020 02:58 PM
What does match interface do? Match the next-hop or source or destination?
We do not have the ability to match interface in XR, you would need to match the next-hop, source, or destination IP address or subnet.
Sam
03-09-2020 05:24 AM
11-08-2021 07:50 PM
Hi All -
Exactly for the scenario mentioned by @Elvin Arias, I need to enable NAT from multiple "inside" interfaces to multiple "outside" interfaces on IOS-XR/ASR9K. With IOS/ASR1K I use "match interface" within route-maps applied to the NAT statements to successfully achieve this.
Does anyone happen to know the IOS-XR equivalent to this IOS example?
route-map NAT_TEN0/0/0_MAP permit 10
match ip address NAT_ACL
match interface TenGigabitEthernet0/0/0
!
route-map NAT_TEN0/0/1_MAP permit 10
match ip address NAT_ACL
match interface TenGigabitEthernet0/0/1
!
ip nat inside source route-map NAT_TEN0/0/0_MAP pool POOL_TEN0/0/0 overload
ip nat inside source route-map NAT_TEN0/0/1_MAP pool POOL_TEN0/0/1 overload
!
int te0/0/0
ip nat outside
!
int te0/0/1
ip nat outside
!
int te0/1/0
ip nat inside
I tried to lab this in ViRL / Cisco Modeling Labs, but XRv does not seem to support NAT, presumably due to the lack of ISM/VSM module. Although I'd love for someone to tell me I'm wrong here!
Thanks,
Mark Walters
11-09-2021 04:33 AM
Hi Mark,
on the ASR9k we will need a VSM/ISM card to process the nat translations it will not work without it.
on the newer line cards there is a feature called map-t that can be used if you have the 3rd generation tomahawk or higher
thanks
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