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.
In Layer 2 forwarding mode
If packets carry tags, the interface trusts the 802.1p priority. If packets carry no tag, the interface forwards them based on the interface priority.
In Layer 3 forwarding mode
Configure the interface to trust DSCP priorities.
If an Ethernet interface is switched to Layer 3 mode using the undo portswitch command, this interface trusts DSCP priorities by default. When working in Layer 3 mode, the interface cannot be configured to trust other priorities.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run trust { 8021p { inner | outer } | dscp }
The priority for packet mapping is specified.
By default, an interface trusts 802.1p priorities in outer VLAN tags.
- Run commit
The configuration is committed.