Use Wildcards For Routing Policy Sets - Cisco ASR 9000 Series Routing Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Use Wildcards For Routing Policy Sets

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/RSP0/CPU0:router(config)# prefix-set pfx_set1
RP/0/RSP0/CPU0:router(config-pfx)# 1.2.3.4/32
RP/0/RSP0/CPU0:router(config-pfx)# end-set
RP/0/RSP0/CPU0:router(config)# prefix-set pfx_set2
RP/0/RSP0/CPU0:router(config-pfx)# 2.2.2.2/32
RP/0/RSP0/CPU0:router(config-pfx)# end-set
2 Configure a route policy with wildcards to refer to the prefix sets.
RP/0/RSP0/CPU0:router(config)# route-policy WILDCARD_PREFIX_SET
RP/0/RSP0/CPU0:router(config-rpl)# if destination in prefix-set* then pass else drop
endif
RP/0/RSP0/CPU0:router(config-rpl)# end-policy
This route policy configuration accepts routes with the prefixes mentioned in the two prefix sets, and drops
all other non-matching routes.
3 Commit your configuration.
RP/0/RSP0/CPU0:router(config)# commit
This completes the configuration of routing policy with wildcards for prefix sets. For detailed information on
prefix sets, see
Use Wildcards for AS-Path Sets
Use the following example to configure a routing policy with wildcards for AS-path sets.
1 Configure the required AS-path sets in the global configuration mode.
RP/0/RSP0/CPU0:router(config)# as-path-set AS_SET1
RP/0/RSP0/CPU0:router(config-as)# ios-regex '_22$',
RP/0/RSP0/CPU0:router(config-as)# ios-regex '_25$'
RP/0/RSP0/CPU0:router(config-as)# end-set
RP/0/RSP0/CPU0:router(config)# as-path-set AS_SET2
RP/0/RSP0/CPU0:router(config-as)# ios-regex '_42$',
RP/0/RSP0/CPU0:router(config-as)# ios-regex '_47$'
RP/0/RSP0/CPU0:router(config-as)# end-set
2 Configure a route policy with wildcards to refer to the AS-path sets.
RP/0/RSP0/CPU0:router(config)# route-policy WILDCARD_AS_SET
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
624
apply filter-bogons
set origin igp
set community (2:333)
set local-preference $lpref
prepend as-path $as $prependcnt
prefix-set, on page
550.
Implementing Routing Policy

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents