R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference

190
Usage guidelines
If the port is an access port, the device changes the link type of the port to hybrid and does not change
the PVID of the port. If the port is a trunk or hybrid port, the device does not change the link type or PVID
of the port.
If the port is originally a hybrid port, or if the port is a hybrid port changed from an access port by the
port private-vlan vlan-id-list trunk promiscuous command, the system automatically assigns the port to
the primary VLANs and the associated secondary VLANs as a tagged member. If the port has been
assigned to some of the primary VLANs and the associated secondary VLANs as an untagged member,
the untagged member attribute is not changed in these VLANs.
When you execute the undo port private-vlan vlan-id-list trunk promiscuous command on a port that is
operating in trunk promiscuous mode in the VLANs specified by the vlan-id-list argument, the command
removes the port from these VLANs.
You can configure the VLAN as a primary VLAN before or after you execute the port private-vlan
vlan-id-list trunk promiscuous command.
The port private-vlan vlan-id-list trunk promiscuous command is mutually exclusive with the port
private-vlan host and port private-vlan vlan-id promiscuous commands.
The port private-vlan vlan-id-list trunk promiscuous command assigns a port to multiple primary VLANs
in batches. Then, the port can transmit the packets from these primary VLANs with VLAN tags. The port
private-vlan vlan-id promiscuous command assigns a port to only one primary VLAN. Then, the port can
transmit the packets from the primary VLAN without VLAN tags.
Examples
# VLANs 2 and 3 are primary VLANs. VLAN 2 is associated with secondary VLAN 20, and VLAN 3 is
associated with secondary VLAN 30. Configure the access port Ten-GigabitEthernet 1/0/1 to operate
in trunk promiscuous mode in VLANs 2 and 3, and then cancel the configuration.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
#
return
[Sysname-Ten-GigabitEthernet1/0/1] port private-vlan 2 3 trunk promiscuous
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port private-vlan 2 3 trunk promiscuous
port hybrid vlan 2 3 20 30 tagged
port hybrid vlan 1 untagged
#
return
[Sysname-Ten-GigabitEthernet1/0/1] undo port private-vlan 2 3 trunk promiscuous
[Sysname-Ten-GigabitEthernet1/0/1] display this
#