< Home

trust upstream

Function

The trust upstream { default | ds-domain-name } command applies a DiffServ domain to an interface.

The trust upstream none command disables the priority mapping on an interface.

The undo trust upstream command restores the default settings.

By default, no DiffServ domain is bound to an interface.

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.

Format

trust upstream { default | ds-domain-name | none }

undo trust upstream

Parameters

Parameter

Description

Value

default

Indicates the default DiffServ domain preset in the system.

-

ds-domain-name

Specifies the name of a DiffServ domain applied to an interface.

The value must the name of an existing DiffServ domain.

none

Indicates that none DiffServ domain is applied to an interface, and the priorities in packets are not trusted.

-

Views

GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Eth-Trunk member interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

To map priorities of the packets sent from the upstream device to PHBs according to the mappings defined in a DiffServ domain, run the trust upstream command to apply the DiffServ domain to the inbound interface of the packets. The system then maps priorities of packets to PHBs according to the mappings defined in the DiffServ domain.

To map PHBs of the packets sent to the downstream device to priorities according to the mappings defined in a DiffServ domain, run the trust upstream command to apply the DiffServ domain to the outbound interface of the packets. The system then maps PHBs of packets to the priorities according to the mappings defined in the DiffServ domain.

Prerequisites

A DiffServ domain has been created.

Precautions

  • After the trust upstream command is executed on an interface, the system maps the priorities of packets on the interface to the following values according to the mappings defined in the DiffServ domain:
    • PHB
    • Packet color

    For default mappings from 802.1p priorities to PHBs and colors, from PHBs and colors to 802.1p priorities, from DSCP priorities to PHBs and colors, from PHBs and colors to DSCP priorities, from EXP priorities to PHBs and colors, and from PHBs and colors to EXP priorities see the 8021p-inbound, 8021p-outbound, ip-dscp-inbound, ip-dscp-outbound, mpls-exp-inbound, and mpls-exp-outbound commands.

  • After the trust upstream none command is executed, the system performs no priority mapping on packets passing the interface.
  • To change the DiffServ domain bound to an interface, run the undo trust upstream command to unbind the original DiffServ domain from the interface, and then run the trust upstream command to apply the new DiffServ domain to the interface.
  • If you run the trust upstream command multiple times in the same interface view, only the latest configuration takes effect.

  • The trust upstream command cannot be configured on both an Eth-Trunk and its member interfaces.

  • To apply a DiffServ domain to multiple interfaces, you can perform the configuration on the port group to reduce the workload.

Example

# Apply DiffServ domain ds1 to GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] trust upstream ds1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic