30-21
Catalyst 3750 MetroSwitch Software Configuration Guide
78-15870-01
Chapter 30 Configuring MPLS and EoMPLS
Configuring MPLS and EoMPLS QoS
To delete an existing policy map, use the no policy-map policy-map-name global configuration
command. To delete an existing class, use the no class class-name policy-map configuration command.
This example shows how to use class and policy maps to configure different experimental bit settings
for DSCP and IP precedence for MPLS QoS.
Switch(config)# class-map match-all gold-class
Switch(config-cmap)# match ip dscp 1
Switch(config-cmap)# exit
Switch(config)# class-map match-all silver-class
Switch(config-cmap)# match ip precedence 2
Switch(config-cmap)# exit
Switch(config)# policy-map out-policy
Switch(config-pmap)# class gold-class
Switch(config-pmap-c)# set mpls experimental 5
Switch(config-pmap-c)# exit
Switch(config-pmap)# class silver-class
Switch(config-pmap-c)# set mpls experimental 4
Switch(config-pmap-c)# exit
Step 3
class-map class-map-name Specify the name of the traffic class, and enter class-map configuration
mode.
Step 4
match {ip dscp dscp-list | ip
precedence ip-precedence-list}
Specify the matching criteria for 802.1Q packets.
• ip dscp dscp-list—list of up to eight IP DSCP values to match against
incoming packets. The range is 0 to 63.
• ip precedence ip-precedence-list—list of up to eight IP-precedence
values to match against incoming packets. Separate each value with
a space. The range is 0 to 7.
Note The switch does not support the cos and vlan keywords for MPLS
and EoMPLS.
Step 5
exit Return to global configuration mode.
Step 6
policy-map policy-map-name Specify the name of the traffic policy to configure, and enter policy-map
configuration mode.
Step 7
class class-name Specify the name of the predefined traffic class configured with the
class-map command, and enter policy-map class configuration mode.
Step 8
set mpls experimental exp-number Specify the value to which the MPLS bits are set if the packets match the
specified policy map. The range is 0 to 7.
Step 9
exit Return to policy-map configuration mode.
Step 10
exit Return to global configuration mode.
Step 11
interface interface-id Enter the interface ID, and enter interface configuration mode. The
interface should be the ES egress port of the ingress router.
Step 12
service-policy output policy-map-name Attach the specified policy map to the output interface.
Step 13
end Return to privileged EXEC mode.
Step 14
show policy-map [policy-map-name
[class class-map-name]]
show policy-map interface interface-id
Verify the configuration.
Step 15
copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose