R211x-HP Flexfabric 11900 ACL and QoS Command Reference

31
mdc-admin
Parameters
rule-id: Specifies a rule ID in the range of 0 to 65534. If no rule ID is provided when you create an ACL
rule, the system automatically assigns it a rule ID. This rule ID is the nearest higher multiple of the
numbering step to the current highest rule ID, starting from 0. For example, if the rule numbering step is
5 and the current highest rule ID is 28, the rule is numbered 30.
deny: Denies matching packets.
permit: Allows matching packets to pass.
counting: Counts the number of times the IPv6 basic ACL rule has been matched. The counting keyword
enables match counting specific to rules, and the hardware-count keyword in the packet-filter ipv6
command enables match counting for all rules in an ACL. If the counting keyword is not specified,
matches for the rule are not counted.
fragment: Applies the rule only to non-first fragments. A rule without this keyword applies to both
fragments and non-fragments.
routing [ type routing-type ]: Applies the rule to the specified type of routing header or all types of routing
header. The routing-type argument specifies the value of the routing header type, which is in the range
of 0 to 255. If you specify the type routing-type option, the rule applies to the specified type of routing
header. Otherwise, the rule applies to any type of routing header.
source { source-address source-prefix | source-address/source-prefix | any }: Matches a source IP
address. The ipv6-address and prefix-length arguments represent a source IPv6 address and address
prefix length in the range of 1 to 128. The any keyword represents any IPv6 source address.
time-range time-range-name: Specifies a time range for the rule. The time-range-name argument is a
case-insensitive string of 1 to 32 characters. It must start with an English letter. If the time range is not
configured, the system creates the rule. However, the rule using the time range can take effect only after
you configure the timer range. For more information about time range, see ACL and QoS Configuration
Guide.
vpn-instance vpn-instance-name: Applies the rule to a VPN instance. The vpn-instance-name argument is
a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the rule applies only to
non-VPN packets.
Usage guidelines
Within an ACL, the permit or deny statement of each rule must be unique. If the ACL rule you are creating
or editing has the same deny or permit statement as another rule in the ACL, your creation or editing
attempt fails.
You can edit ACL rules only when the match order is config.
If no optional keywords are provided in the undo rule command, you delete the entire rule. If optional
keywords or arguments are provided, you delete the specified attributes.
To view rules in an ACL and their rule IDs, use the display acl ipv6 all command.
If an ACL is for QoS traffic classification or packet filtering:
Do not specify the vpn-instance or fragment keyword.
Do not specify the routing keyword if the ACL is for outbound QoS traffic classification.
Examples
# Create an IPv6 basic ACL rule to deny the packets from any source IP segment but 1001::/16,
312 4 :1123::/32, or FE80:5060:1001::/48.