Creating Policy Lists for VLANs
The following example creates a VLAN policy list named routeForVlan. The classifier group lowLatencyLowDrop uses the default precedence of 100.
- Create the policy list routeForVlan.
host1(config)#vlan policy-list routeForVlanhost1(config-policy-list)#- Create the classification group.
host1(config-policy-list)#classifier-group lowLatencyLowDrophost1(config-policy-list-classifier-group)#- Create a rule that adds the lowLatencyLowDrop traffic class for all packets that fall into the lowLatencyLowDrop classification.
host1(config-policy-list-classifier-group)#traffic-class lowLatencyLowDrop- Add a rule that sets the drop precedence for all packets that fall into the lowLatencyLowDrop classification to green.
host1(config-policy-list-classifier-group)#color green- Add a rule that sets the user-priority bits for all packets that fall into the lowLatencyLowDrop classification to 7.
host1(config-policy-list-classifier-group)#mark-user-priority 7- Exit to Policy List Configuration mode, then add traffic class rules for packets that conform to different CLACLs.
host1(config-policy-list-classifier-group)#exithost1(config-policy-list)#classifier-group lowLatencyhost1(config-policy-list-classifier-group)#traffic-class lowLatencyhost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#classifier-group excellentEfforthost1(config-policy-list-classifier-group)#traffic-class excellentEfforthost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#classifier-group bestEfforthost1(config-policy-list-classifier-group)#traffic-class bestEffort- 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 routeForVlanPolicy Table------ -----VLAN Policy routeForVlanAdministrative state: enableReference count: 0Classifier control list: lowLatencyLowDrop, precedence 100traffic-class lowLatencyLowDropcolor greenmark-user-priority 7Classifier control list: lowLatency, precedence 100traffic-class lowLatencyClassifier control list: excellentEffort, precedence 100traffic-class excellentEffortClassifier control list: bestEffort, precedence 100traffic-class bestEffort