Quality Of Service (Qos) Commands - D-Link DGS-510 Reference Manual

Gigabit ethernet smartpro switch
Table of Contents

Advertisement

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide

56. Quality of Service (QoS) Commands

56-1
class
This command is used to specify the name of the class map to be associated with a traffic policy and
then enter into policy map class configuration mode. Use the no form of this command to remove the
policy definition for the specified class.
class NAME
no class NAME
class class-default
Parameters
NAME
Default
None.
Command Mode
Policy-map Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
This command enters the policy-map class configuration mode. All the traffic that does not match the
proceeding defined class will be classified as class-default. If the specified name of class map does
not exist, no traffic is classified to the class.
Example
This example shows how to define a policy map, policy1, which defines policies for the class "class-
dscp-red". The packets that match DSCP 10, 12, or 14 will all be marked as DSCP 10 and be policed
by a single rate policer.
Switch# configure terminal
Switch(config)# class-map class-dscp-red
Switch(config-cmap)# match ip dscp 10,12,14
Switch(config-cmap)# exit
Switch(config)# policy-map policy1
Switch(config-pmap)# class class-dscp-red
Switch(config-pmap-c)# set ip dscp 10
Switch(config-pmap-c)# police 1000000 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)#
56-2
class-map
This command is used to create or modify a class-map that defines the criteria for packet matching.
Use the no form of this command to remove an existing class map from the Switch.
class-map [match-all | match-any] NAME
no class-map NAME
Specifies the name of the class map to be associated with a traffic
policy.
497

Advertisement

Table of Contents
loading

Table of Contents