Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing Routing Policy on Cisco IOS XR Software
Information About Implementing Routing Policy on Cisco IOS XR Software
RC-357
Cisco IOS XR Routing Configuration Guide
OL-14356-01
as-path-set
An AS path set comprises operations for matching an AS path attribute. The only matching operation is
a regular expression match.
Named Set Form
The named set form uses the ios-regex keyword to indicate the type of regular expression and requires
single quotation marks around the regular expression.
The following is a sample definition of a named AS path set:
as-path-set aset1
ios-regex ’_42$’,
ios-regex ’_127$’
end-set
This AS path set comprises two elements. When used in a matching operation, this AS path set matches
any route whose AS path ends with either the autonomous system (AS) number 42 or 127.
To remove the named AS path set, use the no as-path-set aset1 command-line interface (CLI) command.
Inline Set Form
The inline set form is a parenthesized list of comma-separated expressions, as follows:
(ios-regex '_42$', ios-regex '_127$')
This set matches the same AS paths as the previously named set, but does not require the extra effort of
creating a named set separate from the policy that uses it.
community-set
A community-set holds community values for matching against the BGP community attribute. A
community is a 32-bit quantity. Integer community values must be split in half and expressed as two
unsigned decimal integers in the range from 0 to 65535, separated by a colon. Single 32-bit community
values are not allowed. The following is the named set form:
Named Set Form
community-set cset1
12:34,
12:56,
12:78,
internet
end-set
Inline Set Form
(12:34, 12:56, 12:78)
($as:34, $as:$tag1, 12:78, internet)
The inline form of a community-set also supports parameterization. Each 16-bit portion of the
community may be parameterized. See the “Parameterization” section on page RC-364 for more
information.
RPL provides symbolic names for the standard well-known community values: internet is 0:0, no-export
is 65535:65281, no-advertise is 65535:65282, and local-as is 65535:65283.