Configuring 802.1p priority to DSCP
Use the following procedure to configure 802.1p priority-to-DSCP
associations that are used for assigning default values at packet ingress based on the 802.1p value in the ingressing packet.
Procedure steps
Step Action
1 Configure priority by using the following command from Global Configuration mode.
qos ingressmap [name <WORD>] 1p <0-7> ds <0-63>
--End--
Variable definitions
Variable Value
name <WORD> Specifies the label for the ingress mapping.
1p <0-7> Specifies the 802.1p priority used as lookup key for
DSCP assignment at ingress; range is between 0 and 7.
ds <0-63> Specifies the DSCP value associated with the target
802.1p priority; range is between 0 and 63.
Restoring ingress mapping entries to default
Use the following procedure to reset the ingress mapping entries to factory default values.
Procedure steps
Step Action
1 Reset the entries by using the following command from Global Configuration mode.
default qos ingressmap
--End--
Configuring QoS Elements, Classifiers, and Classifier Blocks
Use the NNCLI commands in this section to configure elements, classifiers, and classifier blocks.
Configuring IP classifier element entries
Use the following procedure to add and configure classifier entries. Procedure steps
Step Action
1 Add and configure classifier entries by using the following command from Global Configuration mode.
qos ip-element <cid> [addr-type <addrtype>] [ds-field <dscp>] [dst-ip <dst-ip-info>] [dst-port-min <port>] [flow-id <flowid>] [ip-flag <ip-flags>] [ipv4-options <no-opt | with-opt>] [next-header <nextheader>]
[session-id] [src-ip <src-ip-info>] [src-port-min <port>] [tcp-control <tcp-flags>]
--End--
Variable definitions
Variable Value
<cid> Specifies the element ID, value ranges from
1–55000.
addr-type <addrtype> Specifies the address type. Use the value ipv4
to indicate an IPv4 address or the value ipv6 to indicate an IPv6 address. The default value is ipv4.
ds-field <0-63> Specifies a 6-bit DSCP value; value ranges
from 0–63. Default is ignore.
dst-ip <dst-ip-info> Specifies the source IP address and
mask in the form of a.b.c.d/x for IPv4, or x:x:x:x:x:x:x:x/z for IPv6.
Default is 0.0.0.0.
dst-port-min <port> Specifies the L4 destination port minimum
value.
flow-id <flowid> Specifies the IPv6 flow identifier.
Configuring QoS Elements, Classifiers, and Classifier Blocks 83
Variable Value
ipv4-options <no-opt | with-opt>
Specifies whether the Option field is present in the packet header. Valid values are:
•
no-opt—indicates that only IPv4 packetswithout options will match this classifier element.
•
with-opt—indicates that only IPv4 packetswith options will match this classifier element.
IPv4 packets with ipv4-options are not matched on a ERS 5000 series switch.
next-header Specifies the IPv6 next header classifier
criteria; range is 0–255.
src-ip <src-ip-info> Specifies the source IP address and
mask in the form of a.b.c.d/x for IPv4, or x:x:x:x:x:x:x:x/z for IPv6.
Default is 0.0.0.0.
session-id Specifies the session ID.
src-port-min <port> Specifies the L4 source port minimum value.
tcp-control <tcp-flags> Specifies the control flags present in an TCP
header.
Viewing IP classifier entries
Use the following procedure to view IP classifier entries. Procedure steps
Step Action
1 View IP classifier element entries by using the following commands from the Privileged EXEC Configuration mode.
show qos ip-element [<1-65535>] [all] [system] [user]
--End--
Removing IP classifier entries
Use the following procedure to remove IP classifier entries. Procedure steps
Step Action
1 Remove IP classifier entries by using the following command from Global Configuration mode.
no qos ip-element <1-55000>
--End--
Note: An IP element that is referenced in a classifier cannot be deleted. Adding Layer 2 elements
Use the following procedure to add Layer 2 elements. Procedure steps
Step Action
1 Add Layer 2 elements by using the following command from the Global Configuration mode.
qos l2-element <1-55000> [dst-mac <dst-mac>] [dst-mac-mask <dst-mac-mask>] [ethertype <etype>] [pkt-type <etherII | llc | snap>] [priority
<ieee1p-seq>] [session-id <session-id>] [src-mac <src-mac>] [src-mac-mask <src-mac-mask>] [vlan-min <vid-min>] [vlan-max <vid-max>][vlan-tag <vtag>]
--End--
Note: A Layer 2 element referenced in a classifier cannot be deleted. Variable definitions
Variable Value
<1-55000> Specifies the element ID; range is
1–55000.
dst-mac <dst-mac> Specifies the destination MAC element
criteria. Valid format is H.H.H.
dst-mac-mask <dst-mac-mask> Specifies the destination MAC mask
element criteria. Valid format is H.H.H.
ethertype <etype> Specifies the Ethernet type. Valid format
is 0xXXXX, for example, 0x0801. Default is ignore.
Configuring QoS Elements, Classifiers, and Classifier Blocks 85
Variable Value
pkt-type <etherII | llc | snap> Specifies the packet frame format.
•
etherII—indicates that only EthernetII format frames match this classifier component.
•
snap—indicates that only EEE 802SNAP format frames match this classifier component.
•
llc—indicates that only IEEE 802 LLCformat frames match this classifier component.
priority <ieee1p-seq> Specifies the 802.1p priority values; range
from 0–7 or all. Default is ignore.
session-id <session-id> Specifies the session ID.
src-mac <src-mac> Specifies the source MAC element
criteria. Enter in the format H.H.H.
src-mac-mask <src-mac-mask> Specifies the source MAC mask element
criteria. Valid format is H.H.H.
vlan-min <vid-min> Specifies the VLAN ID minimum value
element criteria. Range is 1–4094.
vlan-max <vid-max> Specifies the VLAN ID maximum value
element criteria. Range is 1–4094.
vlan-tag <format> Specifies the packet format element
criteria:
•
untagged•
taggedThe default is Ignore.
Viewing Layer 2 elements
Use the following procedure to view Layer 2 elements. Procedure steps
Step Action
1 View Layer 2 element entries by using the following commands from the Privileged EXEC Configuration mode.
show qos l2-element [<1-65535>] [all] [system] [user]
Removing Layer 2 elements
Use the following procedure to delete Layer 2 element entries. Procedure steps
Step Action
1 Delete element entries by using the following command from Global Configuration mode.
no qos l2-element <1-55000>
--End--
Linking IP and L2 classifier elements
Use the following procedure to link IP and L2 classifier elements. Procedure steps
Step Action
1 Link elements by using the following command from Global Configuration mode.
qos classifier <1-55000> set-id <1-55000> [name <WORD>] element-type {ip | l2 | system} element-id <1-55000>
--End--
Note: A classifier that is referenced in a classifier block or installed policy cannot be deleted.
Variable definitions
Variable Value
classifier <1-55000> Specifies the classifier ID; range is 1–55000.
set-id <1-55000> Specifies the classifier set ID; range is 1–55000.
name <WORD> Specifies the set label; maximum is 16
alphanumeric characters. element-type {ip| l2
|system}
Specifies the element type; either ip or l2, or system classifier.
element-id <1-55000> Specifies the element ID; range is 1–55000.
Removing classifier entries
Configuring QoS Elements, Classifiers, and Classifier Blocks 87
Procedure steps
Step Action
1 Delete classifier entries by using the following command from Global Configuration mode.
no qos classifier <1-55000>
--End--
Note: Each classifier can have only a single IP classifier element plus a single L2 classifier element or system classifier element. However, a classifier can be created using only one IP classifier element or only one L2 classifier element or only one system classifier element.
Combining individual classifiers
Use the following procedure to combine individual classifiers. Procedure steps
Step Action
1 Combine individual classifiers by using the following command from Global Configuration mode.
qos classifier-block <1-55000> block-number <1-55000> [name <WORD>]{set-id <1-55000> | set-name <WORD>}
[{in-profile-action <1-55000> | in-profile-action-name <WORD>} | {meter <1-55000> | meter-name <WORD>}]
--End--
Note: A classifier block that is referenced in an installed policy cannot be deleted.
Variable definitions
Variable Value
classifier-block<1-5500 0>
Specifies an the classifier block ID; range is 1–55000. block-number
<1-55000>
Specifies the classifier block number; range is 1–55000.
name <WORD> Specifies the label for the classifier block; maximum is
Variable Value
set-id <1-55000> Specifies the classifier set to be linked to the classifier
block; range is 1–55000.
set-name <WORD> Specifies the classifier set name to be linked to
the classifier block; maximum is 16 alphanumeric characters.
in-profile-action <1-55000>
Specifies the in profile action to be linked to the filter block; range is 1–55000.
in-profile-action-name <WORD>
Specifies the in profile action name to be linked to the classifier block; maximum is 16 alphanumeric characters.
meter <1-55000> Specifies the meter to be linked to the classifier block;
range is 1–55000.
meter-name <WORD> Specifies the meter name to be linked to the classifier
block; maximum is 16 alphanumeric characters.
Removing classifier block entries
Use the following procedure to delete classifier block entries. Procedure steps
Step Action
1 Delete classifier block entries by using the following command from Global Configuration mode.
no qos classifier-block <1-55000>
--End--