Command Reference Protocol-independent Configuration Commands
6.2 ip as-path access-list
Use this command to configure an autonomous system (AS) path filter using a regular expression. Use
the no form of this command to remove the AS path filter using a regular expression.
ip as-path access-list path-list-num { permit | deny } regular-expression
no ip as-path access-list path-list-num [ { permit | deny } regular-expression ]
Specifies the AS-path access-list number. The range is from 1 to
500.
Permits advertisement based on matching conditions.
Denies advertisement based on matching conditions.
Regular expression that defines the AS-path filter. The expression
length range is from 1 to 255 characters.
By default, no AS path filter using a regular expression is configured.
Global configuration mode
The following example configures an AS path filter matching the path which contains AS number 123
only.
Ruijie(config)# ip as-path access-list 105 deny ^123$