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.

  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)#
  8. Display the policy list.
    host1#show policy-list routeForVlan
    
                                      Policy Table
                                      ------ -----
    VLAN Policy routeForVlan
       Administrative state: enable
       Reference count:      0
       Classifier control list: lowLatencyLowDrop, precedence 100
          traffic-class lowLatencyLowDrop
          color green
          mark-user-priority 7
       Classifier control list: lowLatency, precedence 100
          traffic-class lowLatency
       Classifier control list: excellentEffort, precedence 100
          traffic-class excellentEffort
       Classifier control list: bestEffort, precedence 100
          traffic-class bestEffort

 

Related Documentation