Add a rule for an IPv6 ACL
If you already added an IPv6 ACL, you can add a rule to the ACL. You can also add an IPv6 ACL and a rule together, as one task. The following procedure describes both options.
To add a rule for an existing or new IPv6 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 > IPv6 ACL/Rules.
The IPv6 ACL/Rules page displays.
The IPv6 ACL Configuration section displays the total number of IPv6 ACLs, IPv4 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 IPv6 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 Add button.
The window closes, and the IPv6 ACL Rule Configuration section displays.
- Do one of the following:
- Add a rule to an existing IPv6 ACL: From the ACL ID/Name menu, select the ACL.
- Add a rule to a new IPv6 ACL:
- From the ACL ID/Name menu, select Add ACL.
The ACL Name field displays.
- In the ACL Name field, type a name.
This is the IPv6 ACL name string, which includes up to 31 alphanumeric characters only. The name must start with an alphabetic character.
- From the ACL ID/Name menu, select Add ACL.
- In the Sequence Number field, type a number in the range from 1 to 2147483647 to identify the rule.
An IPv6 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 IPv6 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:
- 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).
- 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.
- From the Match Every menu, select if all packets must match the IPv6 ACL rule:
- False: Not all packets need to match the ACL rule. You can configure other match criteria on the page.
- True: Each packet must match the ACL rule. You cannot configure other match criteria on the page.
If you select True, go to 22.
- From the Protocol Type menu, select a protocol that a packet’s IP protocol must be matched against:
IPv6, ICMPv6, TCP, UDP, or Other.
The protocol selection determines the options that are available on the page.
If you select Other, type a protocol number from 0 to 255 in the Other Protocol Type field. Then, continue with 21.
- In the Src (source) section, select to set an individual IPv6 source address and prefix length or a source IPv6 host address:
You can select the IP Address radio button or the Host radio button:
- IP Address: In the IPv6 Address field, type a source IPv6 address. In the Prefix Length field, type a prefix length, type a relevant wildcard mask, or leave the field empty, which means any.
The IPv6 address and prefix length are compared to a packet’s source IPv6 address and prefix length.
- Host: In the IP Address field, type a source host name.
The host name (or the IPv6 address associated with the name) is compared to a packet’s source host name (or the IPv6 address associated with the name).
- IP Address: In the IPv6 Address field, type a source IPv6 address. In the Prefix Length field, type a prefix length, type a relevant wildcard mask, or leave the field empty, which means any.
- If you select TCP or UDP from the Protocol Type menu, in the Src L4 (source Layer 4) section, select to set an individual port number or a range of port numbers:
You can select the Port radio button or the Range radio button:
- Port: Select one of the following protocols from the menu:
- The source IP TCP port protocols are domain, echo, ftp, ftpdata, www-http, smtp, telnet, pop2, pop3, and bgp. A selected protocol translates into its equivalent port number.
- The source IP UDP port protocols are domain, echo, snmp, ntp, rip, time, who, and tftp. A selected protocol translates into its equivalent port number.
- Select Other to type a port number from 0 to 65535 in the rightmost field. The matching condition is always Equal (see the middle field).
The source port is compared to a packet’s source port.
- Range: Define a range by selecting a protocol from the Start Port menu and a protocol from the End Port menu:
- The source IP TCP port protocols are domain, echo, ftp, ftpdata, www-http, smtp, telnet, pop2, pop3, and bgp. A selected protocol translates into its equivalent port number.
- The source IP UDP port protocols are domain, echo, snmp, ntp, rip, time, who, and tftp. A selected protocol translates into its equivalent port number.
- Select Other to type a port number from 0 to 65535 in the rightmost field.
The source port range is compared to a packet’s source port range.
- Port: Select one of the following protocols from the menu:
- In the Dst (destination) section, select to set an individual IPv6 destination address and prefix length or a destination IPv6 host address:
You can select the IP Address radio button or the Host radio button:
- IP Address: In the IPv6 Address field, type a destination IPv6 address. In the Prefix Length field, type a prefix length, type a relevant wildcard mask, or leave the field empty, which means any.
The IPv6 address and prefix length are compared to a packet’s destination IPv6 address and prefix length.
- Host: In the IP Address field, type a destination host name.
The host name (or the IPv6 address associated with the name) is compared to a packet’s destination name (or the IPv6 address associated with the name).
- IP Address: In the IPv6 Address field, type a destination IPv6 address. In the Prefix Length field, type a prefix length, type a relevant wildcard mask, or leave the field empty, which means any.
- If you select TCP or UDP from the Protocol Type menu, in the Dst L4 (destination Layer 4) section, select to set an individual port number or a range of port numbers:
You can select the Port radio button or the Range radio button:
- Port: Select one of the following protocols from the menu:
- The destination IP TCP port protocols are domain, echo, ftp, ftpdata, www-http, smtp, telnet, pop2, pop3, and bgp. A selected protocol translates into its equivalent port number.
- The destination IP UDP port protocols are domain, echo, snmp, ntp, rip, time, who, and tftp. A selected protocol translates into its equivalent port number.
- Select Other to type a port number from 0 to 65535 in the rightmost field. The matching condition is always Equal (see the middle field).
The destination port is compared to a packet’s destination port.
- Range: Define a range by selecting a protocol from the Start Port menu and a protocol from the End Port menu:
- The destination IP TCP port protocols are domain, echo, ftp, ftpdata, www-http, smtp, telnet, pop2, pop3, and bgp. A selected protocol translates into its equivalent port number.
- The destination IP UDP port protocols are domain, echo, snmp, ntp, rip, time, who, and tftp. A selected protocol translates into its equivalent port number.
- Select Other to type a port number from 0 to 65535 in the rightmost field.
The destination port range is compared to a packet’s destination port range.
- Port: Select one of the following protocols from the menu:
- If you select ICMPv6 from the Protocol Type menu, select either the Type or Message radio button:
- If you select the Type radio button, type a code in the left field. To set a range of codes, type a code in the left field and another code in the Code field (the right field).
The range is from 0 to 255. If you leave the field empty, it means any ICMPv6 type.
The ICMPv6 type is compared to a packet’s ICMPv6 type.
- If you select the Message radio button, from the menu, select the type of the ICMPv6 message:
destination-unreachable, echo-reply, echo-request, header, hop-limit, mld-query, mld-reduction, mld-report, next-header, no-admin, no-route, packet-too-big, port-unreachable, router-solicitation, router-advertisement, router-renumbering, unreachable, time-exceeded, nd-na, or nd-ns.
Specifying a type of message implies that both the ICMPv6 type and ICMPv6 code are specified. That is, the ICMPv6 message is decoded into the corresponding ICMPv6 type and ICMPv6 code within the ICMPv6 type and compared to a packet’s type of the ICMPv6 message.
- If you select the Type radio button, type a code in the left field. To set a range of codes, type a code in the left field and another code in the Code field (the right field).
- Optionally, click the Fragments toggle to allow initial fragments (that is, the fragment bit is asserted) or prevent initial fragments from being used:
- The toggle is gray and positioned to the left: Initial fragments are not allowed. This is the default setting.
- The toggle is purple and positioned to the right: Initial fragments are allowed.
This option is not valid for rules that match L4 information such as a TCP port number, because that information is carried in the initial packet.
- Optionally, click the Routing toggle to allow the routing extension header to be considered or ignored:
- The toggle is gray and positioned to the left: The routing extension header in an incoming packet is ignored. This is the default setting.
- The toggle is purple and positioned to the right: The routing extension header in an incoming packet is considered.
- Optionally, select a keyword from the IPv6 DSCP Service menu to define that the IPv6 DiffServ Code Point (DSCP) field must be considered.
If you select Other, type a number from 0 to 63 in the Other IPv6 DSCP Service field.
The IPv6 DSCP field in a packet is defined as the high-order 6 bits of the service type octet in the IPv6 header. The IPv6 DSCP is compared to packet’s IPv6 DSCP field.
- Click one of the following buttons:
- Save: To save your settings, click the Save button.
The rule is added to the IPv6 ACL.
Each ACL displays the following information:- Rules: The number of rules configured for the IPv6 ACL.
- Type: The type of ACL, which is always IPv6 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.