7000 Series L3 Managed Switch Reference Manual for Software v2.0
CLI Commands: Differentiated Services 9-13
config diffserv class match srcl4port range
This command adds to the specified class definition a match condition based on the source layer 4
port of a packet. The <classname> is the name of an existing DiffServ class. Two layer 4 port
numbers are required and together they specify a contiguous port range. Each port number is an
integer from 0 to 65535, but with the added requirement that the second number be equal to or
greater than the first. The optional [exclude] parameter has the effect of negating this match
condition for the class (i.e., match all source layer 4 ports except for those within the range
specified here).
Note: The srcl4port keyword, number, and range commands are alternative ways to specify a
source layer 4 port range as a match criterion.
Default none
Format config diffserv class match srcl4port range <class-
name> <0-65535> <0-65535> [exclude]
config diffserv class match srcmac
This command adds to the specified class definition a match condition based on the source MAC
address of a packet. The <classname> is the name of an existing DiffServ class. The <macaddr>
parameter is any layer 2 MAC address formatted as six, two-digit hexadecimal numbers separated
by colons (e.g., 00:11:22:dd:ee:ff). The <macmask> parameter is a layer 2 MAC address bit mask,
which need not be contiguous, and is formatted as six, two-digit hexadecimal numbers separated
by colons (e.g., ff:07:23:ff:fe:dc). The optional [exclude] parameter has the effect of negating
this match condition for the class (i.e., match all source MAC addresses except for what is
specified here).
Default none
Format config diffserv class match srcmac <classname> <mac-
addr> <macmask> [exclude]
config diffserv class match vlan
This command adds to the specified class definition a match condition based on the value of the
layer 2 VLAN Identifier field of a packet. The <classname> is the name of an existing DiffServ
class. The VLAN ID is an integer from 1 to 4094. The optional [exclude] parameter has the
effect of negating this match condition for the class (i.e., match all VLAN Identifier values except
for what is specified here).