Use Wildcards For Routing Policy Sets - Cisco NCS 6000 Series Configuration Manual

Ios xr release 6.4.x
Hide thumbs Also See for NCS 6000 Series:
Table of Contents

Advertisement

Implementing Routing Policy
end-policy
!
route-policy in-101
end-policy
!
route-policy filter-bogons
drop
else
pass
end-policy
!
route-policy common-inbound
end-policy
!
route-policy set-lpref-prepend($lpref,$as,$prependcnt)
end-policy

Use Wildcards For Routing Policy Sets

This section describes examples of configuring routing policy sets with wildcards.
Use Wildcards for Prefix Sets
Use the following example to configure a routing policy with wildcards for prefix sets.
1. Configure the required prefix sets in the global configuration mode.
RP/0/RP0/CPU0:router(config)# prefix-set pfx_set1
RP/0/RP0/CPU0:router(config-pfx)# 1.2.3.4/32
RP/0/RP0/CPU0:router(config-pfx)# end-set
RP/0/RP0/CPU0:router(config)# prefix-set pfx_set2
RP/0/RP0/CPU0:router(config-pfx)# 2.2.2.2/32
RP/0/RP0/CPU0:router(config-pfx)# end-set
2. Configure a route policy with wildcards to refer to the prefix sets.
RP/0/RP0/CPU0:router(config)# route-policy WILDCARD_PREFIX_SET
RP/0/RP0/CPU0:router(config-rpl)# if destination in prefix-set* then pass else drop endif
RP/0/RP0/CPU0:router(config-rpl)# end-policy
set med 444
set local-preference 200
set community (no-export) additive
endif
apply common-inbound
if community matches-any ([101..200]:201) then
apply set-lpref-prepend(100,101,2)
set community (2:1234) additive
else
set local-preference 125
endif
if destination in bogon then
endif
apply filter-bogons
set origin igp
set community (2:333)
set local-preference $lpref
prepend as-path $as $prependcnt
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
Use Wildcards For Routing Policy Sets
459

Advertisement

Table of Contents
loading

Table of Contents