Class, Class 1174 – LevelOne GTL-2691 User Manual
Page 1174
C
HAPTER
41
| Quality of Service Commands
– 1174 –
C
OMMAND
U
SAGE
◆
Use the policy-map command to specify the name of the policy map,
command to configure policies for traffic that
matches the criteria defined in a class map.
◆
A policy map can contain multiple class statements that can be applied
to the same interface with the
command.
◆
Create a Class Map (
) before assigning it to a Policy Map.
E
XAMPLE
This example creates a policy called “rd-policy,” uses the
command to
specify the previously defined “rd-class,” uses the set command to classify
the service that incoming packets will receive, and then uses the
command to limit the average bandwidth to 100,000 Kbps, the burst
rate to 4000 bytes, and configure the response to drop any violating
packets.
Console(config)#policy-map rd-policy
Console(config-pmap)#class rd-class
Console(config-pmap-c)#set ip dscp 3
Console(config-pmap-c)#police flow 10000 4000 conform-action transmit
violate-action drop
Console(config-pmap-c)#
class
This command defines a traffic classification upon which a policy can act,
and enters Policy Map Class configuration mode. Use the no form to delete
a class map.
S
YNTAX
[no] class class-map-name
class-map-name - Name of the class map. (Range: 1-32 characters)
D
EFAULT
S
ETTING
None
C
OMMAND
M
ODE
Policy Map Configuration
C
OMMAND
U
SAGE
◆
Use the
command to specify a policy map and enter Policy
Map configuration mode. Then use the class command to enter Policy
Map Class configuration mode. And finally, use the set command and
one of the police commands to specify the match criteria, where the:
■
command modifies the CoS value in the VLAN tag or the priority
bits in the IP header for matching packets.
■
police commands define parameters such as the maximum
throughput, burst rate, and response to non-conforming traffic.