Alcatel-Lucent 6850-48 Guía De Referencia
BGP Commands
OmniSwitch CLI Reference Guide
September 2009
page 44-97
ip bgp policy aspath-list
Creates or removes an AS path list.
ip bgp policy aspath-list name “regular_expression”
no ip bgp policy aspath-list name “regular_expression”
Syntax Definitions
name
AS path name, e.g., InboundAspath, ranging from 0 to 70 characters, or
a value of none. The AS path name is case sensitive.
a value of none. The AS path name is case sensitive.
regular_expression
Regular expression, e.g., “^100 200$” where 100 (followed by a space)
represents the beginning of the list and 200 represents the end. The
regular expression must be enclosed by quotation marks.
represents the beginning of the list and 200 represents the end. The
regular expression must be enclosed by quotation marks.
Defaults
No IP BGP peer policy AS path-list exists.
Platforms Supported
OmniSwitch 6850, 6855, 9000, 9000E
Usage Guidelines
• Use the no form of this command to remove an AS path list.
• To create an AS path list, use the ip bgp policy aspath-list command.
• A regular expression consists of a character string presented in the form of a pattern, e.g., ^100 200$.
Valid regular expression characters (metacharacters) are shown in the table below. See also “Configur-
ing BGP” in your Advanced Routing Guide for more information on using regular expressions in BGP
commands.
ing BGP” in your Advanced Routing Guide for more information on using regular expressions in BGP
commands.
Symbol
Description
^
Matches the beginning of the AS path list.
123
Matches the AS number 123.
.
Matches any single AS number.
?
Matches zero or one occurrence of the previous token, which must be an AS number, a dot, an
alternation or a range.
alternation or a range.
+
Matches one or more occurrences of the previous token, which must be an AS number, a dot,
an alternation or a range.
an alternation or a range.
*
Matches zero or more occurrences of the previous token, which must be an AS number, a dot,
an alternation or a range.
an alternation or a range.
(
Begins an alternation sequence of AS numbers. It matches any AS number listed in the alterna-
tion sequence.
tion sequence.