The qos phb disable vlan command disables a Layer 2 interface from searching the PHB table for outgoing traffic with a specific VLAN ID.
The undo qos phb disable vlan command cancels the configuration.
By default, a Layer 2 interface does not search the PHB table for outgoing traffic.
Parameter | Description | Value |
---|---|---|
inner-8021p | Indicates that an interface does not check the PHB table for the inner 802.1p value of outgoing packets. |
- |
outer-8021p | Indicates that an interface does not check the PHB table for the inner 802.1p value of outgoing packets. |
- |
dscp | Indicates that an interface does not check the PHB table for the DSCP value of outgoing packets. |
- |
mpls-exp | Indicates that an interface does not check the PHB table for the EXP value of outgoing packets. |
- |
vlan-id1 | Specifies the start VLAN ID. |
The value is an integer ranging from 1 to 4094. |
to vlan-id2 | Specifies the end VLAN ID. vlan-id2 must be greater than or equal to vlan-id1. vlan-id2 and vlan-id1 specify a VLAN range. If to vlan-id2 is not specified, only the VLAN specified by vlan-id1 can be configured. |
The value is an integer ranging from 1 to 4094. |
Usage Scenario
When simple traffic classification is configured on an interface, the interface searches the behavior aggregate (BA) table to map the external priorities of incoming traffic into internal priorities, and searches the per-hop behavior (PHB) table to map the internal priorities of outgoing traffic into external priorities.
The PHB table saves the mapping relationship between the priority, CoS, and color of packets. After receiving a packet, an interface identifies the packet priority and searches the PHB table to map the internal priority of the packet into the external priority. In this case, you can run the qos phb disable vlan command to disable the Layer 2 interface based on vlan from searching the PHB table to keep the external priority of packets unchanged. If packets forwarded through the downstream interface do not search the PHB, the packet priority field, like 8021p, dscp, exp, will not be modified. When part of the priority fields need to be modified while others need not. the exterior priority type, inner-8021p, outer-8021p, dscp, mpls-exp should be specified when configuring the command qos phb disable vlan.Precautions
The qos phb disable vlan command and the qos phb enable command are mutually exclusive on the same interface.
Before you use the qos phb disable vlan command, use the trust upstream command to enable simple traffic classification for incoming traffic and remark the incoming packets.