211
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
#
return
# Configure GigabitEthernet 1/0/1 as a trunk promiscuous port of VLANs 2 and 3, and then verify the
configuration.
[Sysname-GigabitEthernet1/0/1] port private-vlan 2 3 trunk promiscuous
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
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
The output shows that:
• GigabitEthernet 1/0/1 is a trunk promiscuous port of VLANs 2 and 3.
• The port link type of GigabitEthernet 1/0/1 is hybrid.
• GigabitEthernet1/0/1 is a tagged member of VLANs 2, 3, 20, and 30.
# Execute the undo port private-vlan trunk promiscuous command on GigabitEthernet 1/0/1, and
then verify the configuration.
[Sysname-GigabitEthernet1/0/1] undo port private-vlan 2 3 trunk promiscuous
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-type hybrid
port hybrid vlan 20 30 tagged
port hybrid vlan 1 untagged
#
return
The output shows that:
• The port link type of GigabitEthernet 1/0/1 does not change.
• GigabitEthernet 1/0/1 is a tagged member of VLANs 20 and 30.
• GigabitEthernet 1/0/1 is removed from VLANs 2 and 3.
Related commands
• port private-vlan host
• port private-vlan promiscuous
• port private-vlan trunk secondary
• private-vlan (VLAN view)
• private-vlan primary