[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


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.
  2. host1(config)#vlan policy-list routeForVlan
    
    host1(config-policy-list)#
    
    
    
  3. Create the classification group.
  4. host1(config-policy-list)#classifier-group lowLatencyLowDrop
    
    host1(config-policy-list-classifier-group)#
    
    
    
  5. Create a rule that adds the lowLatencyLowDrop traffic class for all packets that fall into the lowLatencyLowDrop classification.
  6. host1(config-policy-list-classifier-group)#traffic-class lowLatencyLowDrop 
    
    
    
  7. Add a rule that sets the drop precedence for all packets that fall into the lowLatencyLowDrop classification to green.
  8. host1(config-policy-list-classifier-group)#color green 
    
    
    
  9. Add a rule that sets the user-priority bits for all packets that fall into the lowLatencyLowDrop classification to 7.
  10. host1(config-policy-list-classifier-group)#mark-user-priority 7 
    
    
    
  11. Exit to Policy List Configuration mode, then add traffic class rules for packets that conform to different CLACLs.
  12. 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
    
    
    
  13. Exit Policy List Configuration mode to save the configuration.
  14. host1(config-policy-list-classifier-group)#exit
    
    host1(config-policy-list)#exit
    
    host1(config)#
    
    
    
  15. Display the policy list.
  16. 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 Topics


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]