Add a rule for an IPv6 ACL
You can add a rule for an IPv6 ACL.
To add a rule for an IPv6 ACL:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select Security > ACL > Advanced > IPv6 Rules.
If no rules exists, the IPv6 ACL Rule Table shows the message No rules have been configured for this ACL. If one or more rule exists for the ACL, the rules display in the IPv6 ACL Rule Table.
- From the ACL Name menu, select the IPv6 ACL for which you want to add or a change a rule.
- Click the Add button.
The page that displays lets you configure the IPv6 rule.
- Configure the following options for the rule:
-
Sequence Number: Enter a whole number in the range of 1 to 2147483647. This number is used to identify the rule. An IPv6 ACL can contain up to 1023 rules.
-
Action: Select the ACL forwarding action by selecting one of the following radio buttons:
-
Permit: Forward packets that meet the ACL criteria.
-
Deny: Drop packets that meet the ACL criteria.
-
-
Egress Queue: If you select the Permit radio button, select the hardware egress queue identifier that is used to handle all packets matching this IPv6 ACL rule. The range of queue IDs is from 0 to 6 .
-
Logging: If you select the Deny radio button, you can enable logging for the ACL by selecting the Enable radio button. (Logging is subject to resource availability in the device.)
If the access list trap flag is also enabled, periodic traps are generated, indicating the number of times this rule was evoked during the report interval. A fixed five-minute report interval is used for the switch. A trap is not issued if the ACL rule hit count is zero for the current interval.
-
Interface: If you select the Permit radio button, use either a mirror interface or a redirect interface:
-
Select the Mirror Interface radio button and use the menu to specify the egress interface to which the matching traffic stream is copied, in addition to being forwarded normally by the device.
-
Select the Redirect Interface radio button and use the menu to specify the egress interface to which the matching traffic stream is forced, bypassing any forwarding decision normally performed by the device.
-
-
Match Every: Select whether all packet must match the selected IPv6 ACL rule:
-
Disable: Not all packets need to match the selected IPv6 ACL rule. You can configure other match criteria on the page.
-
Enable: All packets must match the selected IPv6 ACL rule and are either permitted or denied. In this case, you cannot configure other match criteria on the page.
-
-
Protocol Type: Specify the IPv6 protocol type in one of the following ways:
-
From the Protocol Type menu, select IPv6, ICMPv6, TCP, or UDP.
-
From the Protocol Type menu, select Other, and in the associated field, specify an integer ranging from 0 to 255. This number represents the IPv6 protocol.
-
-
TCP Flag: If you select TCP from the Protocol Type menu, for each TCP flag, you can specify whether or not a packet’s TCP flag must match. The TCP flag values are URG, ACK, PSH, RST, SYN, and FIN. You can set each TCP flag separately to one of the following options:
-
Ignore: The packet’s TCP flag is ignored. This is the default setting.
-
Set: A packet matches this ACL rule if the TCP flag in this packet is set.
-
Clear: A packet matches this ACL rule if the TCP flag in this packet is not set.
Note: If the RST and ACK flags are set, the option Established is available, indicating that a match occurs if either the RST- or ACK-specified bits are set in the packet’s header. -
-
Src: In the Src field, enter a source IPv6 address or source IPv6 address range to be compared to a packet’s source IPv6 address as a match criterion for the selected IPv6 ACL rule:
-
If you select the IPv6 Address radio button, enter an IPv6 address or IPv6 range to apply this criteria. If this field is left empty, it means any.
-
If you select the Host radio button, enter a host source IPv6 address to match the specified IPv6 address. If this field is left empty, it means any.
The source IPv6 address argument must be in the form documented in RFC 2373 where the address is specified in hexadecimal numbers using 16-bit values between colons.
-
-
Src L4: The options are available only if the selection from the Protocol Type menu is TCP or UDP. Use the source L4 port option to specify relevant matching conditions for L4 port numbers in the IPv6 ACL rule.
You can either enter the port number yourself or select one of the following protocols from the menu:-
The source IP TCP port protocols are Domain, Echo, FTP, FTP data, www-http, SMTP, Telnet, POP2, POP3, and BGP.
-
The source IP UDP port protocols are Domain, Echo, SNMP, NTP, RIP, Time, Who, and TFTP.
Each of these values translates into its equivalent port number, which is used as both the start and end of the port range.
Select Other from the menu to enter a port number. If you select Other from the menu but leave the field blank, it means any.
The only relevant matching condition for L4 port numbers is equal. This means that an IPv6 ACL rule matches only if the Layer 4 source port number is equal to the specified port number or port protocol.
-
-
Dst: In the Dst field, enter a destination IPv6 address to be compared to a packet’s destination IPv6 address as a match criterion for the selected IPv6 ACL rule:
-
If you select the IPv6 Address radio button, enter an IPv6 address to apply this criteria. If this field is left empty, it means any.
-
If you select the Host radio button, enter a host source IPv6 address to match the specified IPv6 address. If this field is left empty, it means any.
The source IPv6 address argument must be in the form documented in RFC 2373 where the address is specified in hexadecimal numbers using 16-bit values between colons.
-
-
Dst L4: The options are available only if the selection from the Protocol Type menu is TCP or UDP. Use the destination L4 port option to specify relevant matching conditions for L4 port numbers in the IPv6 ACL rule.
You can either enter the port number yourself or select one of the following protocols from the menu:-
The destination IP TCP port protocols are Domain, Echo, FTP, FTP data, www-http, SMTP, Telnet, POP2, POP3, and BGP.
-
The destination IP UDP port protocols are Domain, Echo, SNMP, NTP, RIP, Time, Who, and TFTP.
Each of these values translates into its equivalent port number, which is used as both the start and end of the port range.
Select Other from the menu to enter a port number. If you select Other from the menu but leave the field blank, it means any.
The only relevant matching condition for L4 port numbers is equal. This means that an IPv6 ACL rule matches only if the Layer 4 destination port number is equal to the specified port number or port protocol.
-
-
ICMPv6: The Type and Message fields are enabled only if the protocol is ICMPv6. Use these fields to specify a match condition for ICMPv6 packets. Select either the Type or Message radio button:
-
If you select the Type radio button, note the following:
- The Type and Code fields are enabled only if the protocol is ICMPv6. Use these fields to specify a match condition for ICMPv6 packets:
- If you specify information in the Type field, the IPv6 ACL rule matches the specified ICMPv6 message type. The type number can be from 0 to 255.
- If you specify information in the Code field, the IPv6 ACL rule matches the specified ICMPv6 message code. The code can be from 0 to 255.
- If these fields are left empty, it means any.
-
If you select the Message radio button, note the following:
- Select the type of the ICMPv6 message to match with the selected IPv6 ACL rule. Specifying a type of message implies that both the ICMPv6 type and ICMPv6 code are specified. The ICMPv6 message is decoded into the corresponding ICMPv6 type and ICMPv6 code within the ICMP type.
- The ICMPv6 message types are 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, and nd-ns.
-
-
Fragments: Either select the Enable radio button to allow initial fragments (that is, the fragment bit is asserted) or leave the default Disable radio button selected to prevent initial fragments from being used.
This option is not valid for rules that match L4 information such as TCP port number, because that information is carried in the initial packet.
-
Flow Label: The Flow Label field is enabled only if the selection from the Protocol Type menu is ICMPv6. The flow label is 20-bit number that is unique to an IPv6 packet and that is used by end stations to signify quality-of-service handling in routers. The range for the flow label is from 0 to 1048575.
-
IPv6 DSCP Service: Specify the IP DiffServ Code Point (DSCP) field. This is an optional configuration.
The DSCP is defined as the high-order six bits of the service type octet in the IPv6 header. Enter an integer from 0 to 63. To select the IPv6 DSCP, select one of the DSCP keywords. To specify a numeric value, select Other and enter the numeric value of the DSCP.
-
Rate Limit Conform Data Rate: Specify the value of the conforming data rate, which is the data rate at which confirming traffic is limited. The range is from 1 to 4294967295 Kbps.
-
Rate Limit Burst Size: Specify the value of the burst size, which is the size at which bursts of traffic above the confirming data rate are permitted. The range is from 1 to 128 Kbps.
-
Time Range: From the Time Range menu, select the timer schedule that must be associated with the rule. For more information about timer schedules, see Timer schedules. If you did not set up any timer schedules, the menu does not present any options.
-
- Click the Apply button.
Your settings are saved.
The Rule Status field in the table shows if the rule is active or inactive. Blank means that no timer schedule is associated with the rule.
- To save the settings to the running configuration, click the Save icon.