Command Reference Guide
DiffServ Policy Commands
CLI Command Reference
September 2014 Page 639
HP Moonshot Switch Module CLI Command Reference
class
This command creates an instance of a class definition within the specified policy for the purpose of defining
treatment of the traffic class through subsequent policy attribute statements. The
classname is the name of an
existing DiffServ class.
no class
This command deletes the instance of a particular class and its defined treatment from the specified policy.
classname is the names of an existing DiffServ class.
mark cos
This command marks all packets for the associated traffic stream with the specified class of service (CoS) value
in the priority field of the 802.1p header (the only tag in a single tagged packet or the first or outer 802.1Q tag
of a double VLAN tagged packet). If the packet does not already contain this header, one is inserted. The CoS
value is an integer from 0 to 7.
Note: This command causes the specified policy to create a reference to the class definition.
Note: The CLI mode is changed to Policy-Class-Map Config when this command is successfully
executed.
Format
class classname
Mode Policy-Map Config
Note: This command removes the reference to the class definition for the specified policy.
Format
no class classname
Mode Policy-Map Config
Default 1
Format
mark-cos 0-7
Mode Policy-Class-Map Config
Incompatibilities Drop, Mark IP DSCP, IP Precedence, Police