Alcatel Carrier Internetworking Solutions 6300-24 Manuale Utente

Pagina di 462
Quality of Service Commands
4-211
4
To create a service policy for a specific category or ingress traffic, follow these steps:
1.
Use the class-map command to designate a class name for a specific category 
of traffic, and enter the Class Map configuration mode. 
2.
Use the match command to select a specify type of traffic based on an access 
list, a list of DSCP or IP Precedence values, or a list of VLANs.
3.
Use the policy-map command to designate a policy name for a specific 
manner in which ingress traffic will be handled, and enter the Policy Map 
configuration mode.
4.
Use the class command to identify the class map, and enter Policy Map Class 
configuration mode. A policy map can contain multiple class statements.
5.
Use the set command to modify the QoS value for matching traffic class,and 
use the police command to monitor the average flow and burst rate, and drop 
any traffic that exceeds the specified rate, or just reduce the DSCP service level 
for traffic exceeding the specified rate.
6.
Use the service-policy command to assign a policy map to a specific interface.
Notes: 1. When creating Class Maps and Policy Maps do not use the character ‘&’ in 
either name.
2. Currently you may only configure one rule per Class Map.
3. The ingress rate for a Policy Map must be set before setting the egress rate.
4. You must create a Class Map before creating a Policy Map.
class-map
This command creates a class map used for matching packets to the specified  
class, and enters Class Map configuration mode. Use the no form to delete a class 
map and return to Global configuration mode.
Syntax 
[noclass-map class-map-name [match-any
• match-any - Match any condition within a class map. 
• class-map-name - Name of the class map. (Range: 1-32 characters)
Default Setting 
None
Command Mode 
Global Configuration
Command Usage 
• First enter this command to designate a class map and enter the Class Map 
configuration mode. Then use the match command to specify the criteria for 
ingress traffic that will be classified under this class map. 
• Only one match command is permitted per class map, so the match-any field 
refers to the criteria specified by the lone match command for a class map.