Step 1 |
enable
|
Enables privileged EXEC mode.
Note
|
Enter your password if prompted.
|
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
policy-map
policy-map-name
Device# policy-map gold-policy-child
|
Creates a policy map to specify a service policy.
|
Step 4 |
class
class-map-name
Device(config-pmap)# class priority-class
|
Specifies the name of the class map.
|
Step 5 |
priority
bandwidth-kbps
Device(config-pmap-c)# priority 100
|
Gives priority to a class of traffic belonging to a policy map.
|
Step 6 |
exit
Device(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
Step 7 |
class
class-map-name
Device(config-pmap-c)# class guarantee-class
|
Specifies the name of the class map.
|
Step 8 |
bandwidth
percent
percentage
Device(config-pmap-c)# bandwidth percent 50
|
Specifies or modifies the bandwidth allocated for a class belonging to a policy map.
|
Step 9 |
exit
Device(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
Step 10 |
class
class-map-name
Device(config-pmap-c)# class limited-class
|
Specifies the name of the class map.
|
Step 11 |
police
cir
bps
Device(config-pmap-c)# police cir 8000
|
Creates a per-interface policer and configures the policy-map class to use it.
|
Step 12 |
exit
Device(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
Step 13 |
class
class-map-name
Device(config-pmap)# class class-default
|
Specifies the name of the class map.
|
Step 14 |
shape
average
bps
Device(config-pmap-c)# shape average 8000
|
Shapes traffic to the indicated bit rate.
|
Step 15 |
queue-limit
queue-limit size
packets
Device(config-pmap-c)# queue-limit 150 packets
|
Specifies the queue limit size for a class.
|
Step 16 |
random-detect
Device(config-pmap-c)# andom-detect
|
Configures Weighted Random Early Detection (WRED) for a class in a policy map.
|
Step 17 |
exit
Device(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
Step 18 |
exit
Device(config-pmap)# exit
|
Exits policy-map configuration mode.
|
Step 19 |
policy-map
policy-map-name
Device(config)# policy-map gold-policy-hqos
|
Creates a policy map to specify a service policy.
|
Step 20 |
class
class-map-name
Device(config-pmap)# class class-default
|
Specifies the name of the class map.
|
Step 21 |
shape
average
bps
Device(config-pmap-c)# shape average 10000
|
Shapes traffic to the indicated bit rate.
|
Step 22 |
service-policy
policy-map
Device(config-pmap-c)# service-policy gold-policy-child
|
Attaches a policy map to a class.
|
Step 23 |
exit
Device(config-pmap-c)# exit
|
Exits policy-map class configuration mode.
|
Step 24 |
exit
Device(config-pmap)# exit
|
Exits policy-map configuration mode.
|
Step 25 |
policy-map
policy-map-name
Device(config)# policy-map pw-shaper
|
Creates a policy map to specify a service policy.
|
Step 26 |
class
class-map-name
Device(config-pmap)#class class-default
|
Specifies the name of the class map.
|
Step 27 |
shape
average
bps
Device(config-pmap-c)#shape average 20000
|
Shapes traffic to the indicated bit rate.
|
Step 28 |
exit
Device(config-pmap-c)#exit
|
Exits policy-map class configuration mode.
|
Step 29 |
exit
|
Exits policy-map configuration mode.
|
Step 30 |
policy-map
policy-map-name
Device(config)# policy-map sub-ifc-shaper
|
Creates a policy map to specify a service policy.
|
Step 31 |
class
class-map-name
Device(config-pmap)#class class-default
|
Specifies the name of the class map.
|
Step 32 |
shape
average
bps
Device(config-pmap-c)#shape average 40000
|
Shapes traffic to the indicated bit rate.
|
Step 33 |
exit
Device(config-pmap-c)#exit
|
Exits policy-map class configuration mode.
|
Step 34 |
exit
|
Exits policy-map configuration mode.
|
Step 35 |
exit
policy-map
policy-map-name
Device(config)# policy-map port-shaper
|
Creates a policy map to specify a service policy.
|
Step 36 |
class
class-map-name
Device(config-pmap)#class class-default
|
Specifies the name of the class map.
|
Step 37 |
shape
average
bps
Device(config-pmap-c)#shape average 60000
|
Shapes traffic to the indicated bit rate.
|
Step 38 |
exit
Device(config-pmap-c)#exit
|
Exits policy-map class configuration mode.
|
Step 39 |
exit
|
Exits policy-map configuration mode.
|
Step 40 |
policy-map
policy-map-name
Device(config)# policy-map ingress-police
|
Creates a policy map to specify a service policy.
|
Step 41 |
class
class-map-name
Device(config-pmap)# class class-default
|
|
Step 42 |
police
bps
Device(config-pmap-c)# police 10000
|
Creates a per-interface policer and configures the policy-map class to use it.
|
Step 43 |
interface
pseudowire
number
Device(config-pmap-c-police)# interface pseudowire 1
|
Configures an interface type and enters interface configuration mode.
|
Step 44 |
encap
mpls
Device(config-if)# encap mpls
|
Configures MPLS encapsulation.
|
Step 45 |
neighbor
peer-address
vcid-value
Device(config-if)# neighbor 10.0.0.1 100
|
Specifies the peer IP address and virtual circuit (VC) ID value of an L2VPN pseudowire.
|
Step 46 |
service-policy
input
policy-map-name
Device(config-if)# service-policy input ingress-policy
|
Attaches a policy map to an input interface.
|
Step 47 |
service-policy
output
policy-map-name
Device(config-if)# service-policy output gold-policy-hqos
|
Attaches a policy map to an output interface.
|
Step 48 |
interface
gigabit ethernet
number
Device(config-if)# interface gigabitethernet 1/1/0
|
Configures an interface type.
|
Step 49 |
service-policy
output
policy-map-name
Device(config-if)# service-policy output port-shaper
|
Attaches a policy map to an output interface.
|