Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
interface
type
number
[name-tag ]
Device(config)# interface GigabitEthernet 0/0/0
|
Configures an interface type and enters interface configuration mode.
|
Step 4 |
class-map
class-map-name
Device(config-if)# class-map diffservclass
|
Specifies the name of the class map to be created and enters QoS class-map configuration mode.
|
Step 5 |
match
match-criterion
Device(config-cmap)# match any
|
Configures the match criteria for a class map.
|
Step 6 |
policy-map
policy-map-name
Device(config-cmap)# policy-map diffservpm
|
Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy, and enters QoS
policy-map configuration mode.
|
Step 7 |
class
{class-name |
class-default }
Device(config-pmap)# class diffservclass
|
Specifies the name of the class whose policy you want to create or change or specifies the default class (commonly known
as the class-default class) before you configure its policy.
|
Step 8 |
bandwidth
{kbps |
remaining
percentage |
percent
percentage }
Device(config-pmap-c)# bandwidth percent 30
|
Specifies the bandwidth allocated for a class belonging to a policy map.
|
Step 9 |
random-detect
[dscp-based |
precedence-based ]
Device(config-pmap-c)# random-detect dscp-based
|
Configures WRED for a class in a policy map.
|
Step 10 |
random-detect
dscp
dscp-value
min-threshold
max-threshold
[
mark-probability-denominator ]
Device(config-pmap-c)# random-detect dscp af11 10000 30000 25
|
Changes the minimum and maximum packet thresholds for the differentiated services code point (DSCP) value.
|
Step 11 |
exit
Device(config-pmap-c)# exit
|
Exits QoS policy-map class configuration mode.
|
Step 12 |
exit
Device(config-pmap)# exit
|
Exits QoS policy-map configuration mode.
|
Step 13 |
interface
type
number
[name-tag ]
Device(config)# interface GigabitEthernet 0/0/0
|
Configures an interface type and enters interface configuration mode.
|
Step 14 |
service-policy output
policy-map-name
Device(config-if)# service-policy output policy1
|
Attaches a policy map to an output interface.
Note
|
Policy maps can be configured on ingress or egress routers. They can also be attached in the input or output direction of
an interface. The direction (input or output) and the router (ingress or egress) to which the policy map should be attached
varies according your network configuration. When using the
service-policy command to attach the policy map to an interface, be sure to choose the router and the interface direction that are appropriate
for your network configuration.
|
|
Step 15 |
end
|
Returns to privileged EXEC mode.
|
Step 16 |
show
policy-map
interface
type
number
Device# show policy-map interface GigabitEthernet 0/0/0
|
(Optional) Displays the traffic statistics of all classes that are configured for all service policies either on the specified
interface or subinterface or on a specific PVC on the interface.
|
Step 17 |
exit
|
(Optional) Exits privileged EXEC mode.
|