Creating Policy Lists ! 29
Chapter 2: Creating Policies
Creating a Policy List for VLANs
The following example creates a VLAN policy list named routeForVlan. The classifier
group lowLatencyLowDrop uses the default precedence of 100.
1. Create the policy list routeForVlan.
host1(config)#vlan policy-list routeForVlan
host1(config-policy-list)#
2. Create the classification group.
host1(config-policy-list)#classifier-group lowLatencyLowDrop
host1(config-policy-list-classifier-group)#
3. 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
4. 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
5. 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
6. Exit to Policy List Configuration mode, then add traffic class rules for packets
that conform to different CLACLs.
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#classifier-group lowLatency
host1(config-policy-list-classifier-group)#traffic-class lowLatency
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#classifier-group excellentEffort
host1(config-policy-list-classifier-group)#traffic-class excellentEffort
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#classifier-group bestEffort
host1(config-policy-list-classifier-group)#traffic-class bestEffort
7. Exit Policy List Configuration mode to save the configuration.
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#exit
host1(config)#
NOTE: Commands that you issue in Policy Configuration mode do not take effect
until you exit from that mode.