207
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port private-vlan host
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port private-vlan host
#
return
The output show that GigabitEthernet 1/0/1 is operating in bridge mode and is a host port.
# Assign GigabitEthernet 1/0/1 to VLAN 20, and then verify the configuration.
[Sysname-GigabitEthernet1/0/1] port access vlan 20
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port private-vlan host
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 2 20 untagged
port hybrid pvid vlan 20
#
return
The output shows that:
• The port link type of GigabitEthernet 1/0/1 is hybrid and its PVID is VLAN 20.
• GigabitEthernet 1/0/1 is an untagged member of secondary VLAN 20 and primary VLAN 2.
Related commands
• port private-vlan promiscuous
• port private-vlan trunk promiscuous
• port private-vlan trunk secondary
• private-vlan (VLAN view)
• private-vlan primary
port private-vlan promiscuous
Use port private-vlan promiscuous to configure a port as a promiscuous port of the specified
VLAN and assign the port to the VLAN.
Use undo port private-vlan to restore the default.
Syntax
port private-vlan vlan-id promiscuous
undo port private-vlan
Default
A port is not a promiscuous port of any VLAN.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view