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