Auto-qos-med traffic example 7 – Allied Telesis AT-8100 Series User Manual
Page 1687
AT-8100 Switch Command Line User’s Guide
1687
Auto-QoS-MED Functionality Example
In the following example, the CoS value of ingress traffic is trusted:
awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.1
awplus(config-if)# auto-qos-med trust cos
See Table 230 for a list of commands that are contained in this macro.
Table 230. Auto-QoS-MED Traffic Example
Command
Description
awplus (config)# lldp run
Activates LLDP on the switch which allows the
switch to transmit and accept advertisements on
its ports.
awplus (config-if)# switchport voice
dscp 46
Assigns the DSCP value of 46 to the LLDP-
MED network policy.
awplus (config-if)# switchport voice
vlan priority 5
Assigns the CoS priority value of 5 to the given
port. The port transmits this value in the LLDP-
MED network policy TLV to an IP phone which,
in turn, sends its packets using this CoS value.
awplus (config)# mls qos enable
Activates the QoS feature on the switch.
awplus (config)# class-map trustcos
Creates a class map called “trustcos.”
awplus (config)# policy-map AutoQos
Creates a policy map called “AutoQoS” and
enters the Policy Map Configuration mode.
awplus (config-pmap)# class trustcos
Enters the “trustcos” class map.
awplus (config)# mls qos map cos-
queue 0 to 1
Maps CoS priority 0 to egress queue 1.
awplus (config)# mls qos map cos-
queue 1 to 1
Maps CoS priority 1 to egress queue 1.
awplus (config)# mls qos map cos-
queue 2 to 1
Maps CoS priority 2 to egress queue 1.
awplus (config)# mls qos map cos-
queue 4 to 1
Maps CoS priority 4 to egress queue 1.
awplus (config)# mls qos map cos-
queue 3 to 5
Maps CoS priority 3 to egress queue 5.
awplus (config)# mls qos map cos-
queue 6 to 5
Maps CoS priority 6 to egress queue 5.
awplus (config)# mls qos map cos-
queue 7 to 5
Maps CoS priority 7 to egress queue 5.