3.10.12 ACL Ports Configuration
Use this command to configure the Access Control List (ACL) parameters of each switch port. Select the policy to apply to the port and whether forwarding is permitted or denied. Specify which rate limiter to apply on the port and which port frames are redirected on. Specify the mirror, logging, shut down operation, and the port state.
Command Syntax:
access-list policy <policy_id>
access-list action { permit | deny }
access-list rate-limiter <rate_limiter_id>
access-list { redirect } interface { <port_type> <port_type_id> | <port_type> [ <port_type_list> ] }
access-list mirror
access-list logging
access-list shutdown
access-list port-state
Argument | Description | |
Parameter |
| The allowed values are 0 through 63. The default value is 0. |
| Select whether forwarding is permitted or denied. The default value is ‘Permit’. | |
| The allowed values are Disabled or the values 1 through 16. The default value is ‘Disabled’. | |
| GigabitEthernet or 2.5GigabitEthernet | |
| Port ID in the format of switch-no/port-no | |
| List of Port ID, for example, 1/1,3-5;2/2-4,6 | |
Default | N.A | |
Mode | Port List Interface mode | |
Usage | Set the port ACL parameters. To revert to the default, use the ‘no’ version of the command. | |
Example | Example 1: On port 2 set the policy ID1 with denied forwarding.
Example 2: Restore the default access-list policy ID.
|