Connectivity Guide
Parameters access-list-name — Enter the name of an IPv4 access list. A maximum of 140 characters.
Default Not congured
Command Mode CONFIGURATION
Usage Information None
Example
OS10(config)# ip access-list acl1
Supported Releases 10.2.0E or later
ip as-path access-list
Create an AS-path ACL lter for BGP routes using a regular expression.
Syntax
ip as-path access-list name {deny | permit} regexp-string
Parameters
• name — Enter an access list name.
• deny | permit — Reject or accept a matching route.
• regexp-string — Enter a regular expression string to match an AS-path route attribute.
Defaults Not congured
Command Mode CONFIGURATION
Usage Information
You can specify an access-list lter on inbound and outbound BGP routes. The ACL lter consists of regular
expressions. If a regular expression matches an AS path attribute in a BGP route, the route is rejected or accepted.
The AS path does not contain the local AS number. The no version of this command removes a single access list
entry if you specify deny and a regexp. Otherwise, the entire access list is removed.
The question mark (?) character is not supported in the regular expressions. All other special characters are
supported. When you are using backslash(\) or double quotes (”) in the regular expression, precede
these characters with
backslash(\). For example, enter \\ or \”.
Example
OS10(config)# ip as-path access-list abc deny 123
Supported Release 10.3.0E or later
ip community-list standard deny
Creates a standard community list for BGP to deny access.
Syntax
ip community-list standard name deny {aa:nn | no-advertise | local-AS | no-
export | internet}
Parameters
• name — Enter the name of the standard community list used to identify one more deny groups of
communities.
• aa:nn — Enter the community number in the format aa:nn, where aa is the number that identies the
autonomous system and
nn is a number the identies the community within the autonomous system.
•
no-advertise — BGP does to not advertise this route to any internal or external peer.
• local-AS — BGP does not advertise this route to external peers.
906 Access Control Lists