Reference Guide

VLAN classication
Classify trac based on the VLAN ID to apply a specic QoS behavior.
1 Create a class-map of type qos and congure the class-map name in CONFIGURATION mode.
class—map type qos class—map name
2 Apply the match criteria as the VLAN ID in CLASS-MAP mode (1 to 4094).
match vlan vlan-id
3 Save the conguration and return to CONFIGURATION mode.
do commit
exit
4 Create a policy-map type as qos and congure the policy-name name in CONFIGURATION mode.
policy-map type qos policy—map-name
5 Associate a policy-map with a class-map in POLICY-MAP mode.
class class-name
6 Enter a queue number for the matched ow as qos-group ID in POLICY-MAP-CLASS-MAP mode (0 to 7).
set qos-group queue-number
7 Save the conguration.
do commit
Congure VLAN classication
OS10(config)# class-map type qos bluevlan
OS10(conf-cmap-qos)# match vlan 1
OS10(conf-cmap-qos)# do commit
OS10(conf-cmap-qos)# exit
OS10(config)# policy-map type qos redvlan
OS10(conf-pmap-qos)# class bluevlan
OS10(conf-pmap-c-qos)# set qos-group 6
OS10(conf-pmap-c-qos)# do commit
View policy-map
OS10(conf-pmap-c-qos)# do show policy-map
Service-policy(qos) input: redvlan
Class-map (qos): bluevlan
set qos-group 6
IP access-group classication
With this classication, trac that accesses the IP access-list within the class-map is matched. The IP access-list is associated to the
class-map using the IP access-group CLI. For a match-all class-map, congure only one access-list as a match lter. You cannot apply any
other match criteria. For a match-any class-map, congure up to ve access-lists and/or other match criteria.
1 Dene a class-map type as qos in CONFIGURATION mode.
class—map type qos class—map-name
2 Apply the match criteria for an IPv4-specic QoS policy in CLASS-MAP mode.
match ip access-group name name
3 Save the conguration and return to CONFIGURATION mode.
do commit
exit
4 Dene a policy-map type as qos and create a name for the policy-map in CONFIGURATION mode.
policy-map type qos policy—map-name
454
Quality of service