Configure Priority Mapping Example
Network Requirements
- There are two servers in the network, that is, Video server and Data server.
- The DSCP value in the video traffic packet is 34 and the DSCP value in the data traffic packet is 38.
- Configure the priority mapping function, realizing that the 802.1p priority of the video traffic packet is 5 and the 802.1p priority of the data traffic packet is 1.
Network Topology
Figure 1-3 Networking of configuring the priority mapping
Configuration Steps
Step 1: Configure the link type of the VLAN and port on Device.
#Create VLAN2.
Device#configure terminal
Device(config)#vlan 2
Device(config-vlan2)#exit
|
#Configure the link type of port gigabitethernet0/1 as Access and permit the services of VLAN2 to pass.
Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)#switchport mode access
Device(config-if-gigabitethernet0/1)#switchport access vlan 2
|
#Configure the link type of port gigabitethernet0/2 as Trunk and permit the services of VLAN2 to pass.
Device(config-if-gigabitethernet0/1)#interface gigabitethernet 0/2
Device(config-if-gigabitethernet0/2)#switchport mode trunk
Device(config-if-gigabitethernet0/2)#switchport trunk allowed vlan add 2
Device(config-if-gigabitethernet0/2)#exit
|
Step 2: Configure the priority mapping function.
#Configure the priority mapping function globally, map the packet with DSCP value 34 to queue 2 and map the packet with DSCP value 38 to queue 3.
Device(config)#qos map-table ingress a
Device(config-maptable-ingress)#dscp-lp 34 to 2
Device(config-if-gigabitethernet0/1)# dscp-lp 38 to 3
|
#Globally configure the priority mapping function, map the 802.1p priority of the packet in queue 2 to 5, and map the 802.1p priority of the packet in queue 3 to 1.
Device(config)#qos map-table egress b
Device(config-maptable-egress)#lp-dot1p 2 to 5
Device(config- maptable-egress)# lp-dot1p 3 to 1
|
# On the port, bind the profile and configure trust.
Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)# map-table a ingress
Device(config-if-gigabitethernet0/1)#qos map-table trust dscp ingress
Device(config)#interface gigabitethernet 0/2
Device(config-if-gigabitethernet0/2)# map-table b egress
Device(config-if-gigabitethernet0/2)#qos map-table trust dot1p egress
|
Step 3: Check the result.
#After the video traffic and data traffic are processed by Device, the 802.1p priority of the video traffic packet sent out from port gigabitethernet0/2 is 5 and the 802.1p priority of the data traffic packet is 1.