Configuring QoS Priority for a VLAN

Use this procedure to configure QoS priority for a VLAN.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Check the target VLAN configuration.
    device(config)# show running-config vlan 100
    vlan 100 by port
     tagged ethe 1/1/3 to 1/1/5
    !
    !
    
    In this example, VLAN 100 is used.
  3. Enter VLAN configuration mode for the target VLAN.
    device(config)# vlan 100
    
  4. Attach a router interface to the target VLAN.
    device(config-vlan-100)# interface ve 100
    
  5. Verify the VLAN configuration.
    device(config-vlan-100)# show running-config vlan 100
    vlan 100 by port
     tagged ethe 1/1/3 to 1/1/5
     interface ve 100
    !
    
  6. Return to global configuration mode.
    device(config-vlan-100)# exit
    
  7. Create an extended ACL.
    device(config)# ip access-list extended acl-remark
    
    In this example, the extended ACL is named "acl-remark".
  8. Configure a rule in the ACL with the required qualifiers and the internal priority that you want.
    device(config-ext-ipacl-acl-remark)# permit ip any any 802.1p-and-internal-marking 5
    
    In this example, QoS priority 5 is used.
  9. Verify the ACL configuration.
    device(config-ext-ipacl-acl-remark)# show ip access-lists all
    
    Extended IP access list  acl-remark : 1 entry
    permit ip any any  802.1p-and-internal-marking 5
    
  10. Go to VLAN configuration mode.
    device(config-ext-ipacl-acl-remark)# vlan 100
    
  11. Apply the ACL to VLAN 100.
    device(config-vlan-100)# ip access-group acl-remark in
    

QoS Priority for a VLAN Configuration Example

device# configure terminal
device(config)# show running-config vlan 100
!
device(config)# vlan 100
!
device(config-vlan-100))# show running-config
device(config-vlan-100))# exit
device(config)# ip access-list extended acl-remark
device(config-ext-ipacl-acl-remark)# permit ip any any 802.1p-and-internal-marking 5
device(config-ext-ipacl-acl-remark)# show ip access-lists all
!
device(config-ext-ipacl-acl-remark)# vlan 100
device(config-vlan-100)# ip access-group acl-remark in