Sun Ethernet Fabric Operating System

Exit Print View

Updated: July 2015
 
 

Define the Traffic Classes

Each instance of the class-map command shown in this example links each of the defined traffic classes shown in the prior examples with an identifier, by using the set class command. Use the identifiers with the policy-map command, as in the examples in the following sections.

  1. Define the traffic class.
    SEFOS# configure terminal 
    SEFOS(config)# class-map 1000 
    SEFOS(config-cls-map)# match access-group ip-access-list 200 
    SEFOS(config-cls-map)# set class 3000 
    SEFOS(config-cls-map)# exit 
    SEFOS(config)# class-map 1001 
    SEFOS(config-cls-map)# match access-group ip-access-list 101 
    SEFOS(config-cls-map)# set class 3001 
    SEFOS(config-cls-map)# exit 
    SEFOS(config)# class-map 1002 
    SEFOS(config-cls-map)# match access-group ip-access-list 102 
    SEFOS(config-cls-map)# set class 3002 
    SEFOS(config-cls-map)# exit 
    SEFOS(config)# class-map 1003 
    SEFOS(config-cls-map)# match access-group mac-access-list 50 
    SEFOS(config-cls-map)# set class 3003 
    SEFOS(config-cls-map)# exit 
    SEFOS(config)# class-map 1004 
    SEFOS(config-cls-map)# match access-group priority-map 500 
    SEFOS(config-cls-map)# set class 3004 
    SEFOS(config-cls-map)# exit 
    SEFOS(config)# exit 
    
  2. Review the information for class-map 1000.
    SEFOS# show class-map 1000 
    QoS Class Map Entries 
    --------------------- 
    ClassMapId           : 1000 
    L2FilterId           : None 
    L3FilterId           : 200 
    PriorityMapId        : None 
    CLASS                : 3000 
    PolicyMapId          : None 
    PreColor             : None 
    Status               : Active 
    
  3. Review the information for class-map 1001.
    SEFOS# show class-map 1001
    QoS Class Map Entries 
    --------------------- 
    ClassMapId          : 1001 
    L2FilterId          : None 
    L3FilterId          : 101 
    PriorityMapId       : None 
    CLASS               : 3001 
    PolicyMapId         : None 
    PreColor            : None 
    Status              : Active 
    
  4. Review the information for class-map 1002.
    SEFOS# show class-map 1002
    ClassMapId          : 1002 
    L2FilterId          : None 
    L3FilterId          : 102 
    PriorityMapId       : None 
    CLASS               : 3002 
    PolicyMapId         : None 
    PreColor            : None 
    Status              : Active
    
  5. Review the information for class-map 1003.
    SEFOS# show class-map 1003
    QoS Class Map Entries 
    --------------------- 
    ClassMapId          : 1003 
    L2FilterId          : 50 
    L3FilterId          : None 
    PriorityMapId       : None 
    CLASS               : 3003 
    PolicyMapId         : None 
    PreColor            : None 
    Status              : Active 
    
  6. Review the information for class-map 1004.
    SEFOS# show class-map 1004
    QoS Class Map Entries 
    --------------------- 
    ClassMapId         : 1004 
    L2FilterId         : None 
    L3FilterId         : None 
    PriorityMapId      : 500 
    CLASS              : 3004 
    PolicyMapId        : None 
    PreColor           : None 
    Status             : Active