qos phb enable vlan

Function

The qos phb enable vlan command enables priority mapping on the outbound interface.

The undo qos phb enable vlan command disables priority mapping on the outbound interface.

By default, an interface does not check the PHB table when forwarding packets downstream.

Format

qos phb enable { ds-name | default } [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

undo qos phb enable [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

Parameters

Parameter Description Value
ds-name

Specifies the name of a DS domain.

The value is a string of 1 to 48 case-sensitive characters.

default

Specify default domain.

-

vlan

Indicates VLAN configuration on a Layer 2 interface.

-

vlan-id1

Specifies a start VLAN ID.

The value is an integer ranging from 1 to 4094.

to vlan-id2

Specifies an end VLAN ID.

The value is an integer ranging from 1 to 4094. vlan-id2 must be greater than vlan-id1.

Views

100GE interface view, 10G LAN interface view, 10G WAN interface view, 400GE interface view, 40GE interface view, 50GE interface view, BAS interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

This command indicates that a DS domain is bound to the Layer 2 interface based on Layer 2 VLAN packets to implement priority mappings for the VLAN packets.

As defined in simple traffic classification, external priorities of upstream packets are mapped to internal priorities based on the behavior aggregate (BA) table; internal priorities of downstream packets are mapped to external priorities based on the PHB table.

After the qos phb enable command is used on the outbound interface, internal priorities of the outgoing packets on the interface are mapped to external priorities based on the PHB table.

Example

# Enable PHB for VLAN 1 to VLAN 10 on the Layer 2 interface GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] portswitch
[*HUAWEI-GigabitEthernet0/1/0] port trunk allow-pass vlan 1 to 10
[*HUAWEI-GigabitEthernet0/1/0] qos phb enable vlan 1 to 10
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >