16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
permit (access-list configuration)
204
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
permit (access-list configuration)
To configure conditions for a named or numbered IP access control list (ACL), use the permit command
in access-list configuration mode. To remove a permit condition from the IP ACL, use the no form of the
command.
Use these commands with standard IP ACLs:
permit {source source-wildcard | host source | any}
no permit {source source-wildcard | host source | any}
Use these commands with extended IP ACLs:
permit protocol {source source-wildcard | host source | any} [operator port] {destination
destination-wildcard | host source | any} [operator port]
no permit protocol {source source-wildcard | host source | any} [operator port] {destination
destination-wildcard | host source | any} [operator port]
Syntax Description
source source-wildcard |
host source | any
Defines 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.
protocol
Name of an IP protocol.
protocol can be ip, tcp, or udp.
destination
destination-wildcard | host
source | any
Defines a destination IP address and wildcard.
The destination is the destination address of the network or host to which
the packet is being sent, specified in one of these ways:
•
The 32-bit quantity in dotted-decimal format. The
destination-wildcard applies wildcard bits to the destination.
•
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 destination and
destination-wildcard of 0.0.0.0 255.255.255.255. You do not need to
enter a destination-wildcard.