Creating Policy Lists for MPLS
The following example creates an MPLS policy list.
- Create the policy list routeForMpls.
host1(config)#mpls policy-list routeForMplshost1(config-policy-list)#- Create the classification group.
host1(config-policy-list)#classifier-group * precedence 200host1(config-policy-list-classifier-group)#- Add one rule that sets the EXP bits for all packets to 2, and a second rule that uses the rate-limit profile mplsRLP5.
host1(config-policy-list-classifier-group)#mark-exp 2host1(config-policy-list-classifier-group)#rate-limit-profile mplsRLP5- Exit Policy List Configuration mode to save the configuration.
host1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exithost1(config)#- Display the policy list.
host1#show policy-list routeForMplsPolicy Table------ -----MPLS Policy routeForMplsAdministrative state: enableReference count: 0Classifier control list: *, precedence 200mark-exp 2 mask 7rate-limit-profile mplsRLP5