R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
74
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 hybrid port. If you delete the PVID of a hybrid port by
using undo vlan command, the PVID setting of the port does not change.
HP recommends that you set the same PVID for the local and remote hybrid ports.
You must configure the hybrid port to allow and forward packets from the PVID by using the port hybrid
vlan command.
Examples
# Configure VLAN 100 as the PVID of the hybrid port GigabitEthernet 2/1/1, and assign
GigabitEthernet 2/1/1 to VLAN 100.
<Sysname> system-view
[Sysname] vlan 100
[Sysname-vlan100] quit
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] port link-type hybrid
[Sysname-GigabitEthernet2/1/1] port hybrid pvid vlan 100
[Sysname-GigabitEthernet2/1/1] port hybrid vlan 100 untagged
Related commands
• port hybrid vlan
• port link-type
port hybrid vlan
Use port hybrid vlan to assign a hybrid port to the specified VLANs.
Use undo port hybrid vlan to remove a hybrid port from the specified VLANs.
Syntax
port hybrid vlan vlan-id-list { tagged | untagged }
undo port hybrid vlan vlan-id-list
Default
A hybrid port is an untagged member of the VLAN to which the port belongs when its link type is access.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin