2-8
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
access-list (IP standard)
access-list (IP standard)
Use the standard version of the access-list global configuration command to configure a standard IP
access control list (ACL). Use the no form of this command to remove a standard IP ACL.
access-list access-list-number {deny | permit | remark} {source source-wildcard | host source |
any}
no access-list access-list-number
This command is available on physical interfaces only if your switch is running the enhanced software
image (EI).
Syntax Description
Defaults The default standard ACL is always terminated by an implicit deny statement for all packets.
Command Modes Global configuration
Command History
access-list-number Number of an ACL. The range is 1 to 99 and1300 to 1999.
deny Deny access if conditions are matched.
permit Permit access if conditions are matched.
remark ACL entry comment up to 100 characters.
source source-wildcard |
host source | any
Define a source IP address and wildcard.
The source is the source address of the network or host from which the
packet is being sent, specified in one of these ways:
• The 32-bit quantity in dotted-decimal format. The source-wildcard
applies wildcard bits to the source.
• The keyword host, followed by the 32-bit quantity in dotted-decimal
format, as an abbreviation for source and source-wildcard of source
0.0.0.0.
• The keyword any as an abbreviation for source and source-wildcard
of 0.0.0.0 255.255.255.255. You do not need to enter a
source-wildcard.
Release Modification
12.1(6)EA2 This command was introduced.