R3204P16-HP Load Balancing Module Network Management Command Reference-6PW101

57
port trunk pvid vlan
Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
View
Ethernet interface view
Default level
2: System level
Parameters
vlan-id: Specifies a VLAN ID, ranging from 1 to 4094.
Description
Use the port trunk pvid vlan command to configure the PVID for the trunk port.
Use the undo port trunk pvid command to restore the default.
By default, the PVID of a trunk port is VLAN 1.
You can use a nonexistent VLAN as the PVID for a trunk port. If you remove the PVID of a trunk port with
the undo vlan command, it does not affect the setting of the PVID on the port.
The local and remote trunk ports must use the same PVID for the traffic of the PVID to be transmitted
properly.
You must use the port trunk permit vlan command to configure the trunk port to allow and forward
packets from the PVID.
Related commands: port link-type and port trunk permit vlan.
Examples
# Configure VLAN 100 as the PVID of trunk port Ten-GigabitEthernet 0/0.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 0/0
[Sysname-Ten-GigabitEthernet0/0] port link-type trunk
[Sysname-Ten-GigabitEthernet0/0] port trunk pvid vlan 100