Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

switch-controller qos dot1p-map

Use this command to configure a Dot1p map. A Dot1p map defines a mapping between IEEE 802.1p class of service (CoS) values (from incoming packets on a trusted interface) and the egress queue values. Values that are not explicitly included in the map will follow the default mapping, which maps each priority (0-7) to queue 0. If an incoming packet contains no CoS value, the switch assigns a CoS value of zero.

note icon Do not enable trust for both Dot1p and DSCP at the same time on the same interface. If you do want to trust both Dot1p and IP-DSCP, the FortiSwitch uses the latter value (DSCP) to determine the queue. The switch will use the Dot1p value and mapping only if the packet contains no DSCP value.
config switch-controller qos dot1p-map
    edit {name}
    # Configure FortiSwitch QoS 802.1p.
        set name {string}   Dot1p map name. size[63]
        set description {string}   Description of the 802.1p name. size[63]
        set priority-0 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-1 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-2 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-3 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-4 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-5 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-6 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-7 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
    next
end

switch-controller qos dot1p-map

Use this command to configure a Dot1p map. A Dot1p map defines a mapping between IEEE 802.1p class of service (CoS) values (from incoming packets on a trusted interface) and the egress queue values. Values that are not explicitly included in the map will follow the default mapping, which maps each priority (0-7) to queue 0. If an incoming packet contains no CoS value, the switch assigns a CoS value of zero.

note icon Do not enable trust for both Dot1p and DSCP at the same time on the same interface. If you do want to trust both Dot1p and IP-DSCP, the FortiSwitch uses the latter value (DSCP) to determine the queue. The switch will use the Dot1p value and mapping only if the packet contains no DSCP value.
config switch-controller qos dot1p-map
    edit {name}
    # Configure FortiSwitch QoS 802.1p.
        set name {string}   Dot1p map name. size[63]
        set description {string}   Description of the 802.1p name. size[63]
        set priority-0 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-1 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-2 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-3 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-4 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-5 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-6 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
        set priority-7 {option}   COS queue mapped to dot1p priority number.
                queue-0  COS queue 0 (lowest priority).
                queue-1  COS queue 1.
                queue-2  COS queue 2.
                queue-3  COS queue 3.
                queue-4  COS queue 4.
                queue-5  COS queue 5.
                queue-6  COS queue 6.
                queue-7  COS queue 7 (highest priority).
    next
end