[Example]
Specify DSCP values "48" and "56" as the classification conditions for class map "class1."
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#match ip-dscp 48 56
9.2.17 Set traffic classification conditions (Ethernet Type)
[Syntax]
match
ethertype
type
no
match
ethertype
[Parameter]
type
:
0xXXXX
Specifies the type value of the Ethernet frame in hexadecimal.
[Input mode]
class map mode
[Description]
Uses the Ethernet frame's type value as the condition to classify the traffic class.
If this is executed with the "no" syntax, the condition setting using the Ethernet frame's type value is deleted.
If this setting has already been made by the
match ethertype
command, the content of the setting is changed.
[Note]
In order to execute this command, QoS must be enabled.
[Example]
Set Ethernet frame type value "0x0800" as the classification condition for class map "class1."
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#match ethertype 0x0800
9.2.18 13.2.22 Set traffic classification conditions (VLAN ID)
[Syntax]
match
vlan
id
no
match
vlan
[Parameter]
id
:
<1 - 4094>
VLAN ID used as classification condition
[Input mode]
class map mode
[Description]
Uses the VLAN ID as the condition to classify the traffic class.
If this is executed with the "no" syntax, the classification conditions using VLAN ID are deleted.
The setting can be repeated up to the maximum number (30) of registrations.
[Note]
In order to execute this command, QoS must be enabled.
[Example]
Specify VLAN #20 as the classification conditions for class map "class1".
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#match vlan 20
9.2.19 Set traffic classification conditions (VLAN ID range)
[Syntax]
match
vlan-range
id-start
to
id-end
Command Reference | Traffic control |
237