Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
class-map
class-map-name
Device(config)# class-map voice
|
Specifies the name of the class map to be created and enters class-map configuration mode.
|
Step 4 |
match
cos
cos-value
Device(config-cmap)# match cos 7
|
Configures the class map to match traffic on the basis of the CoS value.
|
Step 5 |
exit
Device(config-cmap)# exit
|
(Optional) Exits class-map configuration mode.
|
Step 6 |
class-map
class-map-name
Device(config)# class-map video-and-data
|
Specifies the name of the class map to be created and enters class-map configuration mode.
|
Step 7 |
match
cos
cos-value
Device(config-cmap)# match cos 5
|
Configures the class map to match traffic on the basis of the CoS value.
|
Step 8 |
exit
Device(config-cmap)# exit
|
(Optional) Exits class-map configuration mode.
|
Step 9 |
policy-map
policy-map-name
Device(config)# policy-map cos-based-treatment
|
Specifies the name of the policy map created earlier and enters policy-map configuration mode.
|
Step 10 |
class
{class-name |
class-default }
Device(config-pmap)# class voice
|
Specifies the name of the class whose policy you want to create and enters policy-map class configuration mode. This class
is associated with the class map created earlier.
|
Step 11 |
priority
level
level
Device(config-pmap-c)# priority level 1
|
Specifies the level of the priority service.
|
Step 12 |
exit
Device(config-pmap-c)# exit
|
(Optional) Exits policy-map class configuration mode.
|
Step 13 |
class
{class-name |
class-default }
Device(config-pmap)# class video-and-data
|
Specifies the name of the class whose policy you want to create and enters policy-map class configuration mode. This class
is associated with the class map created earlier.
|
Step 14 |
bandwidth
remaining
percent
percentage
Device(config-pmap-c)# bandwidth remaining percent 20
|
Specifies the amount of bandwidth assigned to the class.
|
Step 15 |
exit
Device(config-pmap-c)# exit
|
(Optional) Exits policy-map class configuration mode.
|
Step 16 |
exit
Device(config-pmap)# exit
|
(Optional) Exits policy-map configuration mode.
|
Step 17 |
interface
type
number
Device(config)# interface gigabitethernet 1/0/1
|
Configures an interface (or subinterface) type and enters interface configuration mode.
|
Step 18 |
service-policy
{input |
output }
policy-map-name
Device(config-if)# service-policy output cos-based-treatment
|
Specifies the name of the policy map to be attached to either the input or output direction of the interface.
Note
|
Policy maps can be configured on ingress or egress devices. They can also be attached in the input or output direction of
an interface. The direction (input or output) and the device (ingress or egress) to which the policy map should be attached
vary according your network configuration. When using the
service-policy command to attach the policy map to an interface, be sure to choose the device and the interface direction that are appropriate
for your network configuration.
|
|
Step 19 |
end
|
(Optional) Exits interface configuration mode and returns to privileged EXEC mode.
|