Configuration Commands

Use these M4500 CLI commands to create, rename, and resequence IPv6 ACLs, define permit and deny rules, and apply IPv6 traffic filters to interfaces.

ipv6 access-list

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. If an IPv6 ACL by this name already exists, this command enters IPv6-Access-List config mode to allow updating the existing IPv6 ACL. To delete the IPv6 ACL identified by <name> from the system, use the no form of this command.

Format ipv6 access-list <name>

no ipv6 access-list <name>

Parameter Description
<name> access-list name up to 31 characters in length.
Default None
Mode Global Config
Note: The CLI mode changes to IPv6-Access-List Config mode when you successfully execute this command.

ipv6 access-list rename

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 is an IPv6 ACL by the name <newname> already exists.

Default None
Format ipv6 access-list rename <oldname> <newname>
Mode Global Config
Parameter Description
<oldname> Current Access Control List name.
<newname> New Access Control List name.

ipv6 access-list resequence

Use this command to renumber the sequence numbers of the entries for specified IPv6 access list with the given increment value starting from a particular sequence number. The command is used to edit the sequence numbers of ACL rules in the ACL and change the order in which entries are applied. This command is not saved in startup configuration and is not displayed in running configuration.

Default 1
Format ipv6 access-list resequence <name> <1-2147483647> <1-2147483647>
Mode Global Config
Parameter Description
name The ACL name which is used to identify a specific IP ACL. It is a case-sensitive alphanumeric string from 1 to 31 characters uniquely identifying the IP access list.
<1-2147483647> The sequence number from which to start. The range is 1-2147483647. The default is 1.
<1-2147483647> The amount to increment. The range is 1-2147483647. The default is 10.

{deny|permit}

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.

The ‘no’ form of this command is not supported, since the rules within an IPv6 ACL

!

cannot be deleted individually. Rather, the entire IPv6 ACL must be deleted and respecified. An implicit ‘deny all’ IPv6 rule always terminates the access 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.

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), where n is the number of user configurable queues available for the hardware platform. The assign-queue parameter is valid only for a permit rule.

The mirror parameter allows the traffic matching this rule to be copied to the specified <slot/port>, while the redirect parameter allows the traffic matching this rule to be forwarded to the specified <slot/port>. The assign-queue and redirect parameters are only valid for a permit rule.

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.

Format {deny | permit} {{every [rule-id] [assign-queue <queue-id>] [log] [{{mirror | redirect} <slot/port> | port-

channel <port-channel-group-id>}] [rate-limit <1-4294967295> <1-128>] [sequence <1-2147483647>] [time-range <name>]} | {{<0-255> | icmpv6 | ipv6 | tcp | udp} {<source-ipv6-prefix/prefix-length> | any | host <ipv6 srcip>} [eq {<0-65535> | <portkey>}] {<destination-ipv6-prefix/prefix-length> | any | host <ipv6 dstip>} [eq {<0-65535> | <portkey>}] [flag [+fin | -fin] [+syn | -syn] [+rst | -rst] [+psh | -psh] [+ack | -ack] [+urg | -urg] [established]] [dscp <value>] [flow-label <vlaue>] [icmp-type <icmp-type> [icmp-code <icmp-code>] | icmp-message <icmp-message>] [fragments] [routing] [rule-id] [assign-queue <queue-id>] [log] [{{mirror | redirect} <slot/port> | port-channel <port-channel-group-id>}] [rate-limit <1-4294967295> <1-128>] [sequence <1-2147483647>] [time-range <name>] }}

Parameter Description
deny or permit Specifies whether the IPv6 ACL rule permits or denies the matching traffic.
every Specifies to match every packet.
[rule-id] Specifies a rule ID, the value range from 1 to 1023.
[assign-queue <queue-id>] Specifies the assign-queue, which is the queue identifier to which packets matching this rule are assigned, the value range from 0 to 7.
[log] Specifies that this rule is to be logged.
{mirror | redirect} {<slot/port> | port-channel <port-channel-group-id>} Specifies the mirror or redirect interface which is the unit/slot/port to which packets matching this rule are copied or forwarded, respectively.
rate-limit <rate> <burst-size> Specifies the allowed rate of traffic as per the configured rate in kbps range from 1 to 4294967295, and burst-size in kbytes range from 1 to 128.
Sequence <sequence-number> Specifies a sequence number for the ACL rule. Every rule receives a sequence number. The sequence number is specified by the user or is generated by the device, the value range from 1 to 2147483647.
time-range <name> Specifies a time limitation on the ACL rule as defined by the parameter time-range-name.
<0-255> Specifies the protocol to match for the IPv6 ACL rule, the value range from 0 to 255.
<source-ipv6-prefix/prefix-length> Specifies a source IPv6 source address and prefix length to match for the IPv6 ACL rule.
<destination-ipv6-prefix/prefix-length> Specifies a source IPv6 destination address and prefix length to match for the IPv6 ACL rule.
Any Specifying any implies specifying “::/0 “
host <ipv6 srcip> Specifying host source-ipv6-address implies matching the specified IPv6 address.
host <ipv6 dstip> Specifying host destination-ipv6-address implies matching the specified IPv6 address.
eq {<0-65535> | <portkey>}

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, pop3

For UDP: domain, echo, ntp, rip, snmp, tftp, time, who.

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 specified <tcpflagname> flag is set in the TCP header. When “-<tcpflagname>” is specified, a match occurs if 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 to when “established” option is specified. This option is visible only if protocol is “tcp”.
dscp <value> Specifies the dscp value to match for for the IPv6 rule. The value range from 0 to 63 or a DSCP keyword (af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, be, cs0, s1, cs2, cs3, cs4, cs5, cs6, cs7, ef).
flow-label <vlaue> Specifies the flow-label value to match for for the IPv6 rule. The value range from 0 to 1048575.
icmp-type <icmp-type> This option is available only if the protocol is ICMPv6.
[icmp-code <icmp-code> | icmp-message Specifies a match condition for ICMP packets.
<icmp-message>] When icmp-type is specified, the IPv6 ACL rule matches on the specified ICMP message type, a number from 0 to 255. When icmp-code is specified, the IPv6 ACL rule matches on the specified ICMP message code, a number from 0 to 255. Specifying icmp-message implies that both icmp-type and icmp-code are specified. The following icmp-messages 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.
[fragments] Specifies that IPv6 ACL rule matches on fragmented IPv6 packets (packets that have the next header field set to 44).
[routing] Specifies that IPv6 ACL rule matches on IPv6 packets that have the routing extension header (the next header field is set to 43).
Default None
Mode IPv6-Access-List Config

no rule-id

This command removes a rule for the current IPv6 access list.

Default None
Format no rule-id <ID>
Mode IPv6-Access-List Config
Parameter Description
<ID> Specifies a rule ID, the value range from 1 to 2147483647.

ipv6 traffic-filter

This command either attaches a specific IPv6 ACL identified by <name> to an interface or associates with a VLAN ID in a given 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 specifiedIPv6 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 control-plane and vlan keyword is only valid 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.

To remove an IPv6 ACL identified by <name> from the interface(s) in a given direction, use the no form of this command.

Format ipv6 traffic-filter <name> {{control-plane | in | out} | vlan <vlan-id> {in | out}} [<1-4294967295>]

no ipv6 traffic-filter <name> {{control-plane | in | out} | vlan <vlan-id> {in | out}}

Parameter Description
in|out The direction value is either in or out.
<vlan-id> VLAN ID. The range of VLAN ID is 1 to 4093.
<1-4294967295> The sequence number (greater than 0) to rank precedence for this interface and direction. A lower sequence number has higher precedence. The range of sequence is 1 to 4294967295.
Default None
Mode

Global Config

Interface Config