The qos-profile vlan command applies the QoS profile to layer-2 interfaces or Dot1Q sub-interfaces.
The undo qos-profile vlan command removes the QoS profile that is applied to layer-2 interfaces Dot1Q sub-interfaces.
By default, no QoS profile is applied to an interface.
qos-profile qos-profile-name { inbound | outbound } vlan vlan-id-begin [ to vlan-id-end ] [ identifier { none | vlan-id } ] [ group group-name ]
qos-profile qos-profile-name { inbound | outbound } vlan vlan-id-begin [ to vlan-id-end ] [ identifier { none | vlan-id } ] linkage-bandwidth
undo qos-profile { inbound | outbound } vlan vlan-id-begin [ to vlan-id-end ]
Parameter | Description | Value |
---|---|---|
qos-profile-name |
Specifies the name of a QoS profile. |
The value is a string of 1 to 63 characters. |
inbound |
Specifies the inbound direction of an interface. |
- |
outbound |
Specifies the outbound direction of an interface. |
- |
vlan-id-begin |
Specifies the start VLAN ID. |
The value is an integer that ranges from 1 to 4094. |
to vlan-id-end |
Specifies the end VLAN ID. |
The value is an integer that ranges from 1 to 4094. The value of vlan-id2 must be greater than that of vlan-id-begin. |
identifier |
Specifies which queue packets enter. When the identifier is not specified, all users share the bandwidth of one SQ. |
- |
none |
Indicates that the allocation mode is not specified. Indicates that users share the bandwidth of one SQ. |
- |
vlan-id |
Indicates that packets enter different queues for scheduling according to the VLAN ID. Packets with the same VLAN ID use the bandwidth of one SQ alone. |
- |
group group-name |
Specifies the name of a shared group of QoS profile instances. |
The value is a string of 1 to 31 characters. |
linkage-bandwidth |
Enables bandwidth association. By default, bandwidth association is disabled. This parameter is mutually exclusive with the group parameter. |
|
100GE interface view, 10G LAN interface view, 10G WAN interface view, 400GE sub-interface view, 400GE interface view, 40GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, GE electrical interface view, Global VE interface view, VE interface view
Usage Scenario
To achieve uniform scheduling of incoming traffic flows on multiple interfaces, you need to implement traffic management by user levels. Profile-based HQoS, by comparison, allows traffic on multiple interfaces to enter an SQ for scheduling. It implements uniform scheduling of traffic on multiple interfaces by defining a QoS profile and applying the profile to different interfaces. In addition, an identity attribute allows traffic from different VLANs on an interface to share an SQ bandwidth or individually use an SQ bandwidth.
To apply the qos-profile vlan command on a sub-interface, the sub-interface must be encapsulated with dot1q termination. To apply a QoS profile to inconsecutive VLANs, you can run the qos-profile { inbound | outbound } command to apply simplified configurations. If an interface is already configured with the car command, or the user-queue command, or layer-2 traffic suppression commands, and these commands are configured for the same direction as the direction of the QoS profile, you need to delete the configured commands before being able to configure the qos-profile vlan command to apply the QoS profile to the interface.Precautions
If the direction configured in the QoS profile is different from the direction to which the QoS profile is applied on the interface, the profile does not take effect. If directionless traffic control is configured in the QoS profile, the QoS profile takes effect on traffic in the direction that is specified when the QoS profile is applied to the interface.
<HUAWEI> system-view [~HUAWEI] qos-profile test [*HUAWEI-qos-profile-test] quit [*HUAWEI] interface Eth-Trunk1.2 [*HUAWEI-Eth-Trunk1.2] encapsulation dot1q-termination [*HUAWEI-Eth-Trunk1.2] qos-profile test outbound vlan 1
<HUAWEI> system-view [~HUAWEI] qos-profile p1 [*HUAWEI-qos-profile-p1] quit [*HUAWEI] vlan 5 [*HUAWEI-vlan5] quit [*HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] portswitch [*HUAWEI-GigabitEthernet0/1/0] qos-profile p1 inbound vlan 5 identifier vlan-id