Add a rule for a standard IPv4 ACL
If you already added a standard IPv4 ACL, you can add a rule to the ACL. You can also add a standard IPv4 ACL and a rule together, as one task. The following procedure describes both options.
To add a rule for an existing or new standard IPv4 ACL:
- Open a web browser and log in to the device UI using your login details and device admin password.
The Dashboard page displays.
- Select Security > ACL > IP ACL > IP ACL/Rules.
The IP ACL/Rules page displays.
The IP ACL Configuration section displays the total number of IPv4 ACLs, IPv6 ACLs, and MAC ACLs that are configured on the switch and the maximum number of ACLs that can be configured.
- Click the Add New button.
The Add IP ACL/Rule pop-up window displays.
- Select the Add Rule to existing ACL or Add new ACL and Rule button.
The window adjusts.
- Click the Standard IP ACL button.
This button is selected by default.
- Click the Add button.
The window closes, and the Standard ACL Rule Configuration (1-99) section displays.
- Do one of the following:
- Add a rule to an existing standard IP ACL: From the ACL ID/Name menu, select the ACL.
- Add a rule to a new standard IP ACL:
- From the ACL ID/Name menu, select Add ACL.
The ACL Name field displays.
- In the ACL Name field, type a number in the range from 1 to 99 for a standard IP ACL.
- From the ACL ID/Name menu, select Add ACL.
- In the Sequence Number field, enter a number in the range from 1 to 2147483647 to identify the rule.
An IP ACL can contain up to 50 rules.
- Select an Action radio button to set the action that must be taken if a packet matches the rule’s criteria, and configure options that are available with your selection:
- Permit: Forwards packets that meet the ACL criteria. You can configure an egress queue and you can let the switch mirror or redirect traffic to a specific interface. See the steps further down in this procedure.
- Deny: Drops packets that meet the ACL criteria. You can enable logging. See the step further down in this procedure.
Note: In the following steps, configure the criteria that you need for the rule. You do not need to configure all criteria. - Optionally, if you select the Permit Action radio button, select a hardware egress queue ID from the Egress Queue menu.
This queue is used to handle all packets matching this IP ACL rule. The range for the queue ID is from 0 to 7.
- Optionally, if you select the Deny Action radio button, click the Logging toggle to enable logging for the ACL rule:
- The toggle is gray and positioned to the left: Logging is disabled for this ACL rule. This is the default setting.
- The toggle is purple and positioned to the right: Logging is enabled for this ACL rule (subject to resource availability on the switch).
- From the Match Every menu, select if all packets must match the IP ACL rule:
- Disable: Not all packets need to match the ACL rule. You can configure the source IP address and mask. See the step further down in this procedure.
- Enable: Each packet must match the ACL rule. You cannot configure the source IP address and mask.
- Optionally, if you select the Permit Action radio button, select an Interface radio button to let the switch mirror or redirect traffic to a specific interface:
- Mirror: From the menu, select the egress interface to which the matching traffic stream must be copied, in addition to being forwarded normally by the switch.
A mirror interface and a redirect interface are mutually exclusive.
- Redirect: From the menu, select the egress interface to which the matching traffic stream must be redirected, bypassing any forwarding decision normally performed by the switch.
A redirect interface and a mirror interface are mutually exclusive.
- Mirror: From the menu, select the egress interface to which the matching traffic stream must be copied, in addition to being forwarded normally by the switch.
- If you select Disable from the Match Every menu, configure the source IP address and mask:
- In the Source IP Address field, type the IP address that must be compared against the packet’s source IP address.
- In the Source IP Mask field, type the IP mask that must be compared against the packet’s source IP mask.
- Click one of the following buttons:
- Save: To save your settings, click the Save button.
The rule is added to the IP ACL.
Each ACL displays the following information:
- Rules: The number of rules for the IP ACL.
- Type: The type of IP ACL (Standard IP ACL, Extended IP ACL, or Named IP ACL).
- Clear: To clear the settings so that you can specify other settings before you save them, click the Clear button.
- Back: To cancel the settings and return to the initial IP ACL/Rules page with the IP ACL/Rule Table section, click the Back button.
- Save: To save your settings, click the Save button.