OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : ip as-path access-list
ip as-path access-list
Use this command to define a BGP Autonomous System (AS) path access list. A named community list is a filter based on regular expressions. If the regular expression matches the specified string representing the AS path of the route, then the permit or deny condition applies. Use this command to define the BGP access list globally; use the neighbor router configuration command to apply a specific access list.
Use the no parameter with this command to disable use of the access list.
Command Syntax
ip as-path access-list WORD (deny|permit) LINE
no ip as-path access-list WORD (deny|permit) LINE
Parameters
WORD
Access list name
deny
Reject packets
permit
Forward packets
LINE
An ordered list as a regular expression
Default
No default value is specified
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#ip as-path access-list mylist deny ^65535$
Last modified date: 10/16/2023