R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
77
Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
Default
The PVID of a trunk port is VLAN 1.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
Usage guidelines
You can use a nonexistent VLAN as the PVID for a trunk port. If you delete the PVID of a trunk port by
using the undo vlan command, the PVID setting of the port does not change.
The local and remote trunk ports must use the same PVID for the packets of the PVID to be transmitted
correctly.
You must configure the trunk port to allow and forward packets from the PVID by using the port trunk
permit vlan command.
Examples
# Configure VLAN 100 as the PVID of the trunk port GigabitEthernet 2/1/1, and assign GigabitEthernet
2/1/1 to VLAN 100.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] port link-type trunk
[Sysname-GigabitEthernet2/1/1] port trunk pvid vlan 100
[Sysname-GigabitEthernet2/1/1] port trunk permit vlan 100
Related commands
• port link-type
• port trunk permit vlan
VLAN group commands
display vlan-group
Use display vlan-group to display VLAN group information.
Syntax
display vlan-group [ group-name ]
Views
Any view