Specifying the Packet Priority Trusted on an Interface
Context
The priority trusted on an interface determines the type of priority to be mapped for packets on the interface.
802.1p priority
The device classifies packets based on 802.1p priorities and performs priority mapping accordingly. 802.1p priorities are trusted on a Layer 2 network by default.
DSCP priority
The device classifies packets based on DSCP priorities and performs priority mapping accordingly. DSCP priorities are trusted on a Layer 3 network by default.
- MPLS EXP is trusted on an MPLS network and cannot be changed.
If an Ethernet interface is switched to Layer 3 mode using the undo portswitch command, this interface trusts DSCP priorities by default.
By default, an inbound interface trusts 802.1p priorities of multicast packets that are forwarded based on MAC addresses, and trusts DSCP priorities of multicast packets that are forwarded based on IP addresses.
The source interface of a GRE tunnel cannot be configured to trust 802.1p priorities.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run trust { 8021p | dscp }
The priority for packet mapping is specified.
By default, 802.1p priorities are trusted on a Layer 2 network and DSCP priorities are trusted on a Layer 3 network.
- Run commit
The configuration is committed.