Configuring IP Based ACLs with CLI Commands
The following table summarizes the equivalent CLI commands for configuring IP Based ACLs.
Table
CLI Command | Description | |
|
| |
ip | To define an IPv4 access list and to | |
no ip | place the device in IPv4 access list | |
configuration mode, use the ipv4 | ||
| ||
| ||
| configuration mode. To remove the | |
| access list, use the no form of this | |
| command. | |
|
| |
permit {any protocol} {any{source | To set conditions to allow a packet to | |
{any{destination | pass a named IP access list, use the | |
number] [fragments] | permit command in access list | |
configuration mode. | ||
| ||
| ||
|
| |
| ||
| ||
number] |
| |
| ||
destination |
| |
|
| |
| ||
{any{destination |
| |
number |
| |
|
| |
deny | To set conditions to allow a packet to | |
{any{destination | pass a named IP access list, use the | |
number] [fragments] | deny command in access list | |
configuration mode. | ||
| ||
{any{destination |
| |
code} [dscp number |
| |
| ||
{any{destination |
| |
|
| |
| ||
port} {any{ destination |
| |
[dscp number |
| |
| ||
port} {any{destination |
| |
[dscp number |
| |
|
|