Route-map vs Route policy language - IOS to XR configuration
Description IOS Config IOS-XR config Notes
ip access-list standard TEST ipv4 access-list TEST permit 1.1.1.1 10 permit ip host 9.9.9.9 any IOS XR does not have the ip access-list strd/Ext (IOS) ! ! concept of standard vs ipv4 access-list [name] (XR) ip access-list extended TEST2 ipv4 access-list TEST2 extended, only named acl nut permit ip host 1.1.1.1 host 2.2.2.2 permit ipv4 host 1.1.1.1 host 2.2.2.2 you can still use [0-9] ip prefix-list ADVERTISE permit 1.1.1.1/32 prefix-set ADVERTISE ip prefix-list (IOS) 1.1.1.1/32 prefix-set (XR) end-set ip as-path access-list 1 permit _65000$ as-path-set TEST ip as-path access-list (IOS) ip as-path access-list 1 permit _65000_ originates-from '65000' as-path-set (XR) dfa-regex '_65000_' end-set ip community-list 1 permit 100:65000 community-set TEST ip community-list (IOS) 100:65000 community-set (XR) end-set route-map TEST permit 10 route-policy TEST Basic Route-map (IOS) Basic Route-policy (XR) route-map TEST permit 10 route-policy TEST match ip address prefix-list ADVERTISE if destination in ADVERTISE then pass match prefix-list (set) + permit endif end-policy
route-map TEST deny 10 route-policy TEST
match ip address prefix-list ADVERTISE if destination in ADVERTISE then drop match prefix-list (set) + deny endif end-policy
route-map TEST permit 10 route-policy TEST
match ip address prefix-list ADVERTISE if destination in ADVERTISE then Set Weight set weight 1000 set weight 1000 endif end-policy route-map TEST permit 10 route-policy TEST match ip address prefix-list ADVERTISE if destination in ADVERTISE then set local preferance set local-preference 200 set local-preference 200 endif end-policy route-map TEST permit 10 route-policy TEST match ip address prefix-list ADVERTISE if destination in ADVERTISE then In IOS-XR the "3" after "65000" as-path prepend set as-path prepend 65000 65000 65000 prepend as-path 65000 3 means prepend three times. endif Does not mean as-path will be end-policy 65000 3 route-map TEST permit 10 route-policy TEST match ip address prefix-list ADVERTISE if destination in ADVERTISE then set MED set metric 100 set med 100 endif end-policy route-map EIGRP_INTO_BGP permit 10 description match EIGRP networks route-policy EIGRP_INTO_BGP match ip address prefix-list EIGRP_SUBNETS if destination in EIGRP_SUBNETS then redistribution policy pass endif end-policy