Page 271 / 400 Scroll up to view Page 266 - 270
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-9
202-10088-01, March 2005
Format
diffserv
Mode
Global Config
no diffserv
This command sets the DiffServ operational mode to inactive. While disabled, the DiffServ
configuration is retained and can be changed, but it is not activated. When enabled, Diffserv
services are activated.
Format
no diffserv
Mode
Global Config
Class Commands
The 'class' command set is used in DiffServ to define:
Traffic Classification
Specify Behavior Aggregate (BA), based on DSCP, and Multi-
Field (MF) classes of traffic (name, match criteria)
Service Levels
Specify the BA forwarding classes / service levels. Conceptually,
DiffServ is a two-level hierarchy of classes: 1. Service/PHB, 2.
Traffic Class
This set of commands consists of class creation/deletion and matching, with the class match
commands specifying layer 3, layer 2, and general match criteria. The class match criteria are also
known as class rules, with a class definition consisting of one or more rules to identify the traffic
belonging to the class. Note that once a class match criterion is created for a class, it cannot be
changed or deleted - the entire class must be deleted and re-created.
The CLI command root is
class-map
.
class-map
This command defines a new DiffServ class of type match-all, match-any or match-access-group.
The <
classname>
parameter is a case sensitive alphanumeric string from 1 to 31 characters
uniquely identifying the class (Note: the class name 'default' is reserved and must not be used
here).
When used without any match condition, this command enters the class-map mode. The
<
classname>
is the name of an existing DiffServ class (note: the class name 'default' is reserved
and is not allowed here)
Page 272 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-10
Quality of Service (QoS) Commands
202-10088-01, March 2005
The class type of
match-all
indicates all of the individual match conditions must be true for a
packet to be considered a member of the class.
The class type of
match-any
indicates only one of the match criteria must be true for a packet to
belong to the class; multiple matching criteria are evaluated in a sequential order, with the highest
precedence awarded to the first criterion defined for the class.
The class type of
match-access-group
indicates the individual class match criteria are evaluated
based on an access list (ACL). The <
aclid>
parameter is an integer specifying an existing ACL
number (refer to the appropriate ACL documentation for the valid ACL number range). A
match-
access-group
class type copies its set of match criteria from the current rule definition of the
specified ACL number. All elements of a single ACL Rule are treated by DiffServ as a grouped
set, similar to class type all. For any class, at least one class match condition must be specified for
the class to be considered valid.
Note: The class match conditions are obtained from the referenced access list
at the time of class
creation
. Thus, any subsequent changes to the referenced ACL definition do not affect the
DiffServ class. To pick up the latest ACL definition, the DiffServ class must be deleted and re-
created.
This command may be used without specifying a class type to enter the Class-Map Config mode
for an existing DiffServ class.
Note: The CLI mode is changed to Class-Map Config when this command is successfully
executed.
Format
class-map {<match-all | match-any | match-access-
group> <aclid>} <classmapname>
Mode
Global Config
no class-map
This command eliminates an existing DiffServ class. The <
classname>
is the name of an existing
DiffServ class (note: the class name 'default' is reserved and is not allowed here). This command
may be issued at any time; if the class is currently referenced by one or more policies or by any
other class, this deletion attempt shall fail.
Format
no class-map <classname>
Mode
Global Config
Page 273 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-11
202-10088-01, March 2005
class-map rename
This command changes the name of a DiffServ class. The
<classname>
is the name of an existing
DiffServ class. The
<newclassname>
parameter is a case-sensitive alphanumeric string from 1 to
31 characters uniquely identifying the class (Note: the class name ‘default’ is reserved and must
not be used here).
Default
none
Format
class-map rename <classname> <newclassname>
Mode
Global Config
match ethertype
This command adds to the specified class definition a match condition based on the value of the
ethertype. The <
ethertype>
value is specified as one of the following keywords:
appletalk, arp,
ibmsna, ipv4, ipv6, ipx, mplsmcast, mplsucast, netbios, novell, pppoe, rarp
or as a custom ethertype value in the
range of 0x0600-0xFFFF.
Format
match [not] ethertype {<keyword> | custom <0x0600-
0xFFFF>}
Mode
Class-Map Config
match secondary-cos
This command adds to the specified class definition a match condition for the secondary Class of
Service value (the inner 802.1Q tag of a double VLAN tagged packet). The value may be from 0 to
7.
Format
match [not] secondary-cos <0-7>
Mode
Class-Map Config
match secondary-vlan
This command adds to the specified class definition a match condition for the secondary VLAN
identifier value (the inner 802.1Q tag of a double VLAN tagged packet). The range from
vlanmin
and vlanmax
are integers from 1 to 4094 with vlanmax being optional.
Format
match [not] secondary-vlan <vlanmin> [<vlanmax>]
Mode
Class-Map Config
Page 274 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-12
Quality of Service (QoS) Commands
202-10088-01, March 2005
match any
This command adds to the specified class definition a match condition whereby all packets are
considered to belong to the class. The
optional [
not]
parameter has the effect of negating this match
condition for the class (i.e., none of the packets are considered to belong to the class).
Default
none
Format
match [not] any
Mode
Class-Map Config
match class-map
This command adds to the specified class definition the set of match conditions defined for another
class. The <
refclassname>
is the name of an existing DiffServ class whose match conditions are
being referenced by the specified class definition.
Note: there is no [
not
]
option for this match command.
Default
none
Format
match class-map
<refclassname>
Mode
Class-Map Config
Restrictions
The class types of both <
classname>
and <
refclassname>
must
be identical (i.e., any vs. any, or all vs. all). A class type of acl is
not supported by this command.
Cannot specify
<refclassname>
the same as <
classname>
(i.e.,
self-referencing of class name not allowed).
At most one other class may be referenced by a class.
Any attempt to delete the <
refclassname>
class while still refer-
enced by any <
classname
> shall fail.
The combined match criteria of <
classname>
and <
refclass-
name>
must be an allowed combination based on the class type.
Any subsequent changes to the <
refclassname>
class match cri-
teria must maintain this validity, or the change attempt shall fail.
The total number of class rules formed by the complete reference
class chain (includes both predecessor and successor classes)
must not exceed a platform-specific maximum.
In some cases, each removal of a refclass rule reduces the maxi-
mum number of available rules in the class definition by one.
Page 275 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-13
202-10088-01, March 2005
no match class-map
This command removes from the specified class definition the set of match conditions defined for
another class. The <
refclassname>
is the name of an existing DiffServ class whose match conditions
are being referenced by the specified class definition. Note: there is no [
not]
option for this match
command.
Format
no match class-map
<refclassname>
Mode
Class-Map Config
match cos
This command adds to the specified class definition a match condition for the Class of Service
value (the only tag in a single tagged packet or the first or outer 802.1Q tag of a double VLAN
tagged packet). The value may be from 0 to 7. The optional [
not]
parameter has the effect of
negating this match condition for the class (i.e., match all class of service values except for what is
specified here).
Default
none
Format
match [not] cos
<0-7>
Mode
Class-Map Config
match destination-address mac
This command adds to the specified class definition a match condition based on the destination
MAC address of a packet. 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 [
not]
parameter has the effect of negating this match condition for the class (i.e., match all destination
MAC addresses except for what is specified here).
Default
none
Format
match [not] destination-address mac <macaddr> <mac-
mask>
Mode
Class-Map Config

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top