Configure ACLs.
Configure IPv4 ACLs (GUI)
Define and apply IPv4 ACL rules for traffic management and security.
Procedure
| 1. | Choose . |
|
| 2. | Click Add. |
|
| 3. | In the Add ACL Setup dialog box, enter the details for these parameters.
|
|
| 4. | Click Add. |
|
| 5. | Add the rest of the rules and click Apply to Device. |
Configure IPv4 ACLs
Follow the procedure given below to use IP ACLs on the switch:
Procedure
| 1. | Create an ACL by specifying an access list number or name and the access conditions. |
|
| 2. | Apply the ACL to interfaces or terminal lines. . |
Create a numbered standard ACL (GUI)
Define and apply a numbered standard ACL using the device’s web interface using GUI.
Procedure
| 1. | Choose . |
|
| 2. | On the ACL page, click Add. |
|
| 3. | In the Add ACL Setup window, enter the details for these parameters.
|
|
| 4. | Click Add. |
|
| 5. | Click Save & Apply to Device. |
Create a numbered standard ACL (CLI)
Follow the procedure given below to create a numbered standard ACL using commands:
Procedure
| 1. | Enable the privileged EXEC mode and enter your password if prompted. Example:
|
|
| 2. | Enter the global configuration mode. Example:
|
|
| 3. | Define a standard IPv4 access list by using a source address and wildcard. Example:
The access-list-number is a decimal number from 1 to 99 or 1300 to 1999. Enter deny or permit to specify whether to deny or permit access if conditions are matched. The source is the source address of the network or host from which the packet is being sent. Specify the source as:
The source-wildcard applies wildcard bits to the source address.
|
|
| 4. | Return to privileged EXEC mode. Example:
|
|
| 5. | Verify your entries. Example:
|
|
| 6. | (Optional) Save your entries in the configuration file. Example:
|
Create a numbered extended ACL (GUI)
Set up a numbered extended ACL to control network traffic based on source, destination, and protocol using the GUI.
Procedure
| 1. | Choose . |
|
| 2. | On the ACL page, click Add. |
|
| 3. | In the Add ACL Setup window, enter the details for these parameters.
|
|
| 4. | Click Add. |
|
| 5. | Click Save & Apply to Device. |
Create a numbered extended ACL (CLI)
Follow the procedure given below to create a numbered extended ACL using commands:
Procedure
| 1. | Enters global configuration mode. Example:
|
|
| 2. | Defines an extended IPv4 access list and the access conditions. Example:
The access-list-number is a decimal number from 100 to 199 or 2000 to 2699. Enter deny or permit to specify whether to deny or permit the packet if conditions are matched. For protocol , enter the name or number of an P protocol: ahp , eigrp , esp , gre , icmp , igmp , igrp , ip , ipinip , nos , ospf , pcp , pim , tcp , or udp , or an integer in the range 0 to 255 representing an IP protocol number. To match any Internet protocol (including ICMP, TCP, and UDP), use the keyword ip .
The source is the number of the network or host from which the packet is sent. The source-wildcard applies wildcard bits to the source. The destination is the network or host number to which the packet is sent. The destination-wildcard applies wildcard bits to the destination. Source, source-wildcard, destination, and destination-wildcard can be specified as:
The other keywords are optional and have these meanings:
|
|
| 3. | Define an extended TCP access list and the access conditions. Example:
The parameters are the same as those described for an extended IPv4 ACL, with these exceptions: Enter an operator and port to compare source (if positioned after source source-wildcard ) or destination (if positioned after destination destination-wildcard ) port. Possible operators include eq (equal), gt (greater than), lt (less than), neq (not equal), and range (inclusive range). Operators require a port number (range requires two port numbers separated by a space). Enter the port number as a decimal number (from 0 to 65535) or the name of a TCP port. Use only TCP port numbers or names when filtering TCP. The other optional keywords have these meanings:
|
|
| 4. | Define an extended UDP access list and the access conditions. Example:
The UDP parameters are the same as those described for TCP except that the [operator [port]] port number or name must be a UDP port number or name, and the flag not valid for UDP. |
|
| 5. | Define an extended ICMP access list and the access conditions. Example:
The ICMP parameters are the same as those described for most IP protocols in an extended IPv4 ACL, with the addition of the ICMP message type and code parameters. These optional keywords have these meanings:
|
|
| 6. | (Optional) Define an extended IGMP access list and the access conditions. Example:
The IGMP parameters are the same as those described for most IP protocols in an extended IPv4 ACL, with this optional parameter. igmp-type: To match IGMP message type, enter a number from 0 to 15, or enter the message name: dvmrp , host-query , host-report , pim , or trace . |
|
| 7. | Return to privileged EXEC mode. Example:
|
|
| 8. | (Optional) Save your entries in the configuration file. Example:
|
Create named standard ACLs (GUI)
Use this procedure to set up and apply ACLs for network security management within the device’s GUI.
Procedure
| 1. | Click . |
|
| 2. | Click Add to create a new ACL setup. |
|
| 3. | In the Add ACL Setup window, enter these parameters:
|
|
| 4. | Click Add to add the rule. |
|
| 5. | Click Save & Apply to Device. |
Create named standard ACLs (CLI)
Define and apply named standard ACLs to permit or deny traffic from specified IPv4 source addresses using commands.
Procedure
| 1. | Enter the privileged EXEC mode. Example:
|
|
| 2. | Enter the global configuration mode. Example:
|
|
| 3. | Define a standard IPv4 access list using a name, and enter the access-list configuration mode. Example:
The name can be a number from 1 to 99. |
|
| 4. | Specify one or more conditions denied or permitted to decide if the packet is forwarded or dropped in access-list configuration mode. Use one of the these:
Example:
or
|
|
| 5. | Returns to privileged EXEC mode. Example:
|
|
| 6. | Verify your entries. Example:
|
|
| 7. | (Optional) Save your entries in the configuration file. Example:
|
Create extended named ACLs (GUI)
Follow these steps to filter traffic based on granular criteria, such as source/destination, protocol, or DSCP using the GUI.
Procedure
| 1. | Choose . |
|
| 2. | Click Add. |
|
| 3. | In the Add ACL Setup window, enter these parameters.
|
|
| 4. | Click Add. |
|
| 5. | Add the rest of the rules and click Apply to Device. |
Create extended named ACLs (CLI)
Use this procedure to create extended named access control lists (ACLs) using CLI commands.
Procedure
| 1. | Enable the privileged EXEC mode and enter your password if prompted. Example:
|
|
| 2. | Enter the global configuration mode. Example:
|
|
| 3. | Define an extended IPv4 access list using a name, and enter the access-list configuration mode. Example:
The name can be a number from 100 to 199. |
|
| 4. | Specify the conditions allowed or denied in access-list configuration mode { deny | permit } protocol { source [ source-wildcard ] | host source | any } { destination [ destination-wildcard ] | host destination | any } [ precedence precedence ] [ tostos ] [ log ] [ time-range time-range-name ] Example:
Use the log keyword to get access list logging messages, including violations.
|
|
| 5. | Return to the privileged EXEC mode. Example:
|
|
| 6. | Verifiy your entries. Example:
|
|
| 7. | (Optional) Save your entries in the configuration file. Example:
|
When you create extended ACLs, an implicit deny statement is added by default at the end of the ACL. If no match occurs before reaching the end, all traffic is denied. For standard ACLs, omitting the mask from an IP host address access list specification causes the system to use 0.0.0.0 as the mask.
New entries are always placed at the end of the ACL after you create it. You cannot add ACL entries at specific positions within an ACL. However, you can remove entries from a named ACL using the no permit and no deny access-list configuration mode commands.
Being able to selectively remove lines from a named ACL is one reason you might use named ACLs instead of numbered ACLs.
What to do next
After you create a named ACL, apply it to interfaces or to VLANs .
Apply an IPv4 ACL to an interface (GUI)
Use this procedure when you need to restrict or permit traffic through a device interface based on IPv4 ACL rules using the GUI.
Procedure
| 1. | Choose . |
|
| 2. | Click Associating Interfaces. |
|
| 3. | Choose the interface from the Available Interfaces list to view its ACL details on the right-hand side. You can change the ACL details, if required. |
|
| 4. | Click Save & Apply to Device. |
Apply an IPv4 ACL to an interface (CLI)
Restrict or permit packets on an interface by associating an ACL using commands.
This section describes how to apply IPv4 ACLs to network interfaces.
Beginning in privileged EXEC mode, follow the procedure given below to control access to an interface:
Procedure
| 1. | Enter the global configuration mode. Example:
|
|
| 2. | Identify a specific interface for configuration, and enter the interface configuration mode. Example:
The interface is a layer 2 interface (port ACL) , or a layer 3 interface (router ACL). |
|
| 3. | Control access to the specified interface. Example:
|
|
| 4. | Return to the privileged EXEC mode. Example:
|
|
| 5. | Display the access list configuration. Example:
|
|
| 6. | (Optional) Save your entries in the configuration file. Example:
|
Apply ACL to policy profile (GUI)
Use this procedure to apply an ACL to a policy profile using the GUI.
Procedure
| 1. | Choose . |
|
| 2. | On the Policy Profile page, click Add. |
|
| 3. | In the Add Policy Profile window, click Access Policies tab. |
|
| 4. | In the WLAN ACL area, select the IPv4 ACL from the IPv4 ACL drop-down list. |
|
| 5. | Click Apply to Device. |
Apply ACL to policy profile (CLI)
Use these steps to attach a preconfigured IPv4 ACL to a specific WLAN policy profile using commands.
Procedure
| 1. | Enter the global configuration mode. Example:
|
|
| 2. | Configure a WLAN policy profile and enter the wireless policy configuration mode. Example:
|
|
| 3. | Configure an IPv4 ACL. Example:
|
|
| 4. | Return to the privileged EXEC mode. Example:
Alternatively, you can also press Ctrl-Z to exit global configuration mode. |