IPv6 Access Control List Commands
Use these commands to configure IPv6 Access Control List (ACL) settings.
IPv6 ACLs ensure that only authorized users have access to specific resources and block any unwarranted attempts to reach network resources.
The following rules apply to IPv6 ACLs:
- The maximum number of ACLs you create is 100, regardless of type.
- The system supports only Ethernet II frame types.
- The maximum number of rules per IPv6 ACL is hardware dependent.
ipv6 access-list
M4250
M4350
This command creates an IPv6 Access Control List (ACL) identified by name, consisting of classification fields defined for the IP header of an IPv6 frame. The name parameter is a case-sensitive alphanumeric string from 1 to 31 characters uniquely identifying the IPv6 access list. The rate-limit attribute configures the committed rate and the committed burst size.
If an IPv6 ACL by this name already exists, this command enters IPv6-Access-List config mode to allow updating the existing IPv6 ACL.
| Format | ipv6 access-list name |
| Mode | Global Config |
no ipv6 access-list
This command deletes the IPv6 ACL identified by name from the system.
| Format | no ipv6 access-list name |
| Mode | Global Config |
ipv6 access-list rename
M4250
M4350
This command changes the name of an IPv6 ACL. The name parameter is the name of an existing IPv6 ACL. The newname parameter is a case-sensitive alphanumeric string from 1 to 31 characters uniquely identifying the IPv6 access list.
This command fails if an IPv6 ACL by the name that is specified by the newname argument already exists.
| Format | ipv6 access-list rename name newname |
| Mode | Global Config |
ipv6 access-list resequence
M4250
M4350
Use this command to renumber the sequence of the entries for a specified IPv6 access list with a specified increment value, starting from a specified sequence number. That is, with this command you can change the sequence numbers of ACL rules in the ACL and, therefore, change the order in which entries are applied. This command is not saved in the startup configuration and does not display in the running configuration.
| Default | 10 |
| Format | ipv6 access-list resequence name starting-sequence-number increment |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| name | The name of the access control list. |
| id | The ID of the access control list. |
| starting-sequence-number | The sequence number from which to start the renumbering. The range is 1–2147483647. The default is 10. |
| increment | The value with which the sequence numbers must be incremented. The range is 1–2147483647. The default is 10. |
{deny | permit} (IPv6 ACL)
M4250
M4350
This command creates a new rule for the current IPv6 access list. Each rule is appended to the list of configured rules for the list. A rule may either deny or permit traffic according to the specified classification fields. At a minimum, either the every keyword or the protocol, source address, and destination address values must be specified. The source and destination IPv6 address fields may be specified using the keyword any to indicate a match on any value in that field. The remaining command parameters are all optional, but the most frequently used parameters appear in the same relative order as shown in the command format.
| Format | {deny | permit} {every | {{icmpv6 | ipv6 | tcp | udp | 0-255} {source-ipv6-prefix/prefix-length | any | host source-ipv6-address} [eq {portkey | 0-65535}] {destination-ipv6-prefix/prefix-length | any | host destination-ipv6-address} [eq {portkey | 0-65535}] [flag [+fin | -fin] [+syn | -syn] [+rst | -rst] [+psh | -psh] [+ack | -ack] [+urg | -urg] [established]] [flow-label value] [icmp-type icmp-type [icmp-code icmp-code] | icmp-message icmp-message] [fragments] [sequence sequence-number] [dscp dscp] [ttl eq 0-255]}} [log] [assign-queue queue-id] [{mirror | redirect} unit/port] [rate-limit rate burst-size] [sflow-remote-agent] |
| Mode | IPv6-Access-List Config |
The time-range parameter allows imposing time limitation on the IPv6 ACL rule as defined by the parameter time-range-name. If a time range with the specified name does not exist and the IPv6 ACL containing this ACL rule is applied to an interface or bound to a VLAN, then the ACL rule is applied immediately. If a time range with specified name exists and the IPv6 ACL containing this ACL rule is applied to an interface or bound to a VLAN, then the ACL rule is applied when the time-range with specified name becomes active. The ACL rule is removed when the time-range with specified name becomes inactive. For information about configuring time ranges, see Time Range Commands for Time-Based ACLs.
The assign-queue parameter allows specification of a particular hardware queue for handling traffic that matches this rule. The allowed queue-id value is 0-(n-1), in which n is the number of user configurable queues available for the hardware platform:
- M4250 series switch: from 0 to 7.
- M4350 series switch: from 0 to 6.
The assign-queue parameter is valid only for a permit rule.
The permit command’s optional attribute rate-limit allows you to permit only the allowed rate of traffic as per the configured rate in kbps, and burst-size in kbytes.
IPv6 ACLs have the following limitations:
- Port ranges are not supported for egress IPv6 ACLs.
- The rate-limit command is not supported for egress IPv6 ACLs.
The sflow-remote-agent option is supported on the M4350 series switch only.
| Parameter | Description |
|---|---|
{deny | permit} |
Specifies whether the IPv6 ACL rule permits or denies the matching traffic. |
every |
Specifies to match every packet. |
{protocolkey | number} |
Specifies the protocol to match for the IPv6 ACL rule. The current list is: icmpv6, ipv6, tcp, and udp. |
source-ipv6-prefix/prefix-length | any | host source-ipv6-address |
For source-ipv6-prefix/prefix-length, specify a source IPv6 source address and prefix length to match for the IPv6 ACL rule. Specifying any implies specifying ::/0. Specifying host source-ipv6-address implies matching the specified IPv6 address. The source-ipv6-address argument must be in the form documented in RFC 2373 where the address is specified in hexadecimal using 16-bit values between colons. |
[eq {portkey | 0-65535}] |
Note: This option is available only if the protocol is TCP or UDP.
Specifies the layer 4 port match condition for the IPv6 ACL rule. A port number can be used, in the range 0-65535, or the portkey, which can be one of the following keywords: For TCP: bgp, domain, echo, ftp, ftp-data, http, smtp, telnet, www, pop2, or pop3. For UDP: domain, echo, ntp, rip, snmp, tftp, time, or who. Each of these keywords translates into its equivalent port number. When eq is specified, the IPv6 ACL rule matches only if the layer 4 port number is equal to the specified port number or portkey. Two rules are added in the hardware one with range equal to 0 to <specified port number - 1> and one with range equal to <specified port number + 1 to 65535>. |
destination-ipv6-prefix/prefix-length | any | host destination-ipv6-address |
For destination-ipv6-prefix/prefix-length, specify a destination IPv6 source address and prefix length to match for the IPv6 ACL rule. Specifying any implies specifying ::/0. Specifying host destination-ipv6-address implies matching the specified IPv6 address. This destination-ipv6-address argument must be in the form documented in RFC 2373 where the address is specified in hexadecimal using 16-bit values between colons. |
[dscp dscp] |
Specifies the dscp value to match for the IPv6 rule. |
flag [+fin | -fin] [+syn | -syn] [+rst | -rst] [+psh | -psh] [+ack | -ack] [+urg | -urg] [established] |
Specifies that the IPv6 ACL rule matches on the tcp flags. When +<tcpflagname> is specified, a match occurs if the specified <tcpflagname> flag is set in the TCP header. When “-<tcpflagname>” is specified, a match occurs if the specified <tcpflagname> flag is not set in the TCP header. When established is specified, a match occurs if specified either RST or ACK bits are set in the TCP header. Two rules are installed in hardware when “established” option is specified. This option is visible only if protocol is tcp. |
[icmp-type icmp-type [icmp-code icmp-code] | icmp-message icmp-message] |
Note: This option is available only if the protocol is icmpv6.
Specifies a match condition for ICMP packets. When icmp-type is specified, IPv6 ACL rule matches on the specified ICMP message type, a number from 0 to 255. When icmp-code is specified, IPv6 ACL rule matches on the specified ICMP message code, a number from 0 to 255. Specifying icmp-message implies both icmp-type and icmp-code are specified. The following icmp-message options are supported: destination-unreachable, echo-reply, echo-request, header, hop-limit, mld-query, mld-reduction, mld-report, nd-na, nd-ns, next-header, no-admin, no-route, packet-too-big, port-unreachable, router-solicitation, router-advertisement, router-renumbering, time-exceeded, and unreachable. The ICMP message is decoded into the corresponding ICMP type and ICMP code within that ICMP type. |
[ttl eq ttl-value] |
Specifies that the TTL value in the packet must be equal to the TTL value specified in ttl-value. |
fragments |
Specifies that IPv6 ACL rule matches on fragmented IPv6 packets (Packets that have the next header field set to 44). |
log |
Specifies that this rule is to be logged. |
[time-range time-range-name] |
Allows imposing a time limitation on the ACL rule as defined by the parameter time-range-name. If a time range with the specified name does not exist and the ACL containing this ACL rule is applied to an interface or bound to a VLAN, the ACL rule is applied immediately. If a time range with the specified name exists and the ACL containing this ACL rule is applied to an interface or bound to a VLAN, the ACL rule is applied when the time-range with the specified name becomes active. The ACL rule is removed when the time-range with specified name becomes inactive. |
[assign-queue queue-id] |
Specifies the assign-queue, which is the queue identifier (queue-id) to which packets matching this rule are assigned:
|
[{mirror | redirect} {unit/slot/port | lag lag-group-id}] |
Specifies the mirror or redirect interface or lag-group-id to which packets matching this rule are copied or forwarded. To specify an actual interface or port, do the following:
|
[rate-limit rate burst-size] |
Specifies the allowed rate of traffic as per the configured rate in kbps, and burst-size in kbytes. |
[sflow-remote-agent] |
This option is supported on the M4350 series switch only. Specifies that sFlow sampling must occur, allowing packets that are matching the rule to be copied to the remote sFlow agent. |
Command example:
(NETGEAR Switch) (Config)#ipv6 access-list ip61
(NETGEAR Switch) (Config-ipv6-acl)#permit udp any any rate-limit 32 16
(NETGEAR Switch) (Config-ipv6-acl)#exit
no sequence-number (IPv6 ACL)
Use this command to remove the ACL rule with the specified sequence number from the ACL.
| Format | no sequence-number |
| Modes | IPv6-Access-List Config |
ipv6 traffic-filter
M4250
M4350
This command either attaches a specific IPv6 ACL identified by name to an interface or range of interfaces, or associates it with a VLAN ID in a specific direction. The name parameter must be the name of an existing IPv6 ACL.
An optional sequence number may be specified to indicate the order of this mac access list relative to other IPv6 access lists already assigned to this interface and direction. A lower number indicates higher precedence order. If a sequence number is already in use for this interface and direction, the specified IPv6 access list replaces the currently attached IPv6 access list using that sequence number. If the sequence number is not specified for this command, a sequence number that is one greater than the highest sequence number currently in use for this interface and direction is used.
This command specified in Interface Config mode only affects a single interface, whereas the Global Config mode setting is applied to all interfaces. The vlan keyword and vlan-id argument are valid only in the Global Config mode. The Interface Config mode command is only available on platforms that support independent per-port class of service queue configuration.
An optional control-plane is specified to apply the ACL on CPU port. The IPv6 control packets like IGMPv6 are also dropped because of the implicit deny all rule added at the end of the list. To overcome this, permit rules must be added to allow the IPv6 control packets.
| Format | ipv6 traffic-filter name {{control-plane | in | out} | vlan vlan-id {in | out}} [sequence 1-4294967295] |
| Modes |
Global Config Interface Config |
(NETGEAR Switch)(Config)#ipv6 traffic-filter ip61 control-plane
no ipv6 traffic-filter
This command removes an IPv6 ACL identified by name from the interface(s) in a specified direction.
| Format | no ipv6 traffic-filter name {{control-plane | in | out} | vlan vlan-id {in | out}} |
| Modes |
Global Config Interface Config |
Command example:
(NETGEAR Switch) (Config)#no ipv6 traffic-filter ip61 control-plane
show ipv6 access-lists
M4250
M4350
Use this command to view summary information about all IPv6 ACLs that are configured on the switch. To view more detailed information about a specific access list, specify the ACL name that is used to identify the IP ACL. The command output displays the ICMP type, ICMP code, fragments, routing, and TCP flags attributes, the source and destination L4 port ranges, and the number of packets that match a configured ACL rule within an ACL (referred to as ACL hit count).
| Format | show ipv6 access-lists [name] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Action | The action associated with each rule. The possible values are Permit or Deny. |
| Match All | Indicates whether this access list applies to every packet. Possible values are True or False. |
| Protocol | The protocol to filter for this rule. |
| Committed Rate | The committed rate defined by the rate-limit attribute. |
| Committed Burst Size | The committed burst size defined by the rate-limit attribute. |
| Source IP Address | The source IP address for this rule. |
| Source L4 Port Keyword | The source port for this rule. |
| Destination IP Address | The destination IP address for this rule. |
| Destination L4 Port Keyword | The destination port for this rule. |
| IP DSCP | The value specified for IP DSCP. |
| Flow Label | The value specified for IPv6 Flow Label. |
| Log | Displays when you enable logging for the rule. |
| Assign Queue | The queue identifier to which packets matching this rule are assigned. |
| Mirror Interface | The interface to which packets matching this rule are copied. |
| Redirect Interface | The interface to which packets matching this rule are forwarded. |
| Time Range Name | Displays the name of the time-range if the IPv6 ACL rule has referenced a time range. |
| Rule Status | Status (Active/Inactive) of the IPv6 ACL rule. |
| ACL Hit Count |
The number of packets that match a configured ACL rule within an ACL (referred to as ACL hit count). The counter resets to 0 when the maximum value is reached. A dedicated counter exists for each ACL rule. ACL counters do not interact with PBR counters. For an ACL with multiple rules, if a match occurs for a specific rule, the counter that is associated with this rule increments. For example, if an ACL includes three rules, when a match occurs for rule 2, the counter for rule 3 does not increment. For ACL counters, if an ACL rule is configured without a rate limit condition, the counter shows the number of forwarded or discarded packets. (For example, for a burst of 100 packets, the counter shows 100.) If the ACL rule is configured with a rate limit condition, the counter shows the number of packets that match the condition:
Either way, only the number of packets that match the condition is reflected in the counter, irrespective of whether they are dropped or forwarded. ACL counters do not interact with diffserv policies. |
Command example:
(NETGEAR Switch) #show ipv6 access-lists ip61
ACL Name: ip61
Outbound Interface(s): control-plane
Rule Number: 1
Action......................................... permit
Match Every.................................... FALSE
Protocol....................................... 17(udp)
Committed Rate................................. 32
Committed Burst Size........................... 16
ACL hit count ...............................0