EasyManuals Logo

Cisco A9K-SIP-700 Routing Configuration Guide

Cisco A9K-SIP-700
702 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #655 background imageLoading...
Page #655 background image
RP/0/RSP0/CPU0:router(config-rpl)# if as-path in as-path-set* then pass else drop endif
RP/0/RSP0/CPU0:router(config-rpl)# end-policy
This route policy configuration accepts routes with AS-path attributes as mentioned in the two AS-path
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 AS-path sets. For detailed information
on AS-path sets, see as-path-set, on page 545.
Use Wildcards for Community Sets
Use the following example to configure a routing policy with wildcards for community sets.
1
Configure the required community sets in the global configuration mode.
RP/0/RSP0/CPU0:router(config)# community-set CSET1
RP/0/RSP0/CPU0:router(config-comm)# 12:24,
RP/0/RSP0/CPU0:router(config-comm)# 12:36,
RP/0/RSP0/CPU0:router(config-comm)# 12:72
RP/0/RSP0/CPU0:router(config-comm)# end-set
RP/0/RSP0/CPU0:router(config)# community-set CSET2
RP/0/RSP0/CPU0:router(config-comm)# 24:12,
RP/0/RSP0/CPU0:router(config-comm)# 24:42,
RP/0/RSP0/CPU0:router(config-comm)# 24:64
RP/0/RSP0/CPU0:router(config-comm)# end-set
2
Configure a route policy with wildcards to refer to the community sets.
RP/0/RSP0/CPU0:router(config)# route-policy WILDCARD_COMMUNITY_SET
RP/0/RSP0/CPU0:router(config-rpl)# if community matches-any community-set* then pass else
drop endif
RP/0/RSP0/CPU0:router(config-rpl)# end-policy
This route policy configuration accepts routes with community set values as mentioned in the two
community 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 community sets. For detailed information
on community path sets, see community-set, on page 546.
Use Wildcards for Extended Community Sets
Use the following example to configure a routing policy with wildcards for extended community sets.
1
Configure the extended community sets in the global configuration mode.
RP/0/RSP0/CPU0:router(config)# extcommunity-set rt RT_SET1
RP/0/RSP0/CPU0:router(config-ext)# 1.2.3.4:555,
RP/0/RSP0/CPU0:router(config-ext)# 1234:555
RP/0/RSP0/CPU0:router(config-ext)# end-set
RP/0/RSP0/CPU0:router(config)# extcommunity-set rt RT_SET2
RP/0/RSP0/CPU0:router(config-ext)# 1.1.1.1:777,
RP/0/RSP0/CPU0:router(config-ext)# 1111:777
RP/0/RSP0/CPU0:router(config-ext)# end-set
2
Configure a route policy with wildcards to refer to the extended community sets.
RP/0/RSP0/CPU0:router(config)# route-policy WILDCARD_EXT_COMMUNITY_SET
RP/0/RSP0/CPU0:router(config-rpl)# if extcommunity rt matches-any extcommunity-set* then
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
625
Implementing Routing Policy
Use Wildcards For Routing Policy Sets

Table of Contents

Other manuals for Cisco A9K-SIP-700

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco A9K-SIP-700 and is the answer not in the manual?

Cisco A9K-SIP-700 Specifications

General IconGeneral
BrandCisco
ModelA9K-SIP-700
CategoryNetwork Router
LanguageEnglish

Related product manuals