Hi,
The port trunk pvid vlan command specifies the default VLAN for a trunk interface.
The undo port trunk pvid vlan command restores the default VLAN of a trunk interface to the default setting.
By default, VLAN 1 is the default VLAN of trunk interfaces.
An interface may receive untagged and tagged frames, but the device processes only tagged frames. Therefore, the device adds a tag to each untagged frame received by an interface. The default VLAN ID of the interface can be added to untagged frames so that these frames are forwarded in the default VLAN.
If the ID of a nonexistent VLAN is configured as the PVID, VLAN 1 is added to the untagged packets. After the PVID is configured globally, the PVID of the interface is changed to the configured one.
The port trunk pvid vlan command only specifies the default VLAN of a trunk interface but does not add the trunk interface to the default VLAN. A trunk interface forwards frames with the default VLAN ID only after it is added to the default VLAN using the port trunk allow-pass vlan command.
If you run the port trunk pvid vlan command multiple times in the same interface view, only the latest configuration takes effect.
This configuration will be deleted automatically if the default VLAN is deleted in system view.
# Specify VLAN 5 as the default VLAN of GE0/0/1.
<HUAWEI> system-view[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk pvid vlan 5
Glad to help you! Any further questions, let us know.