213
You can configure the VLAN as a primary VLAN before or after you execute the port
private-vlan
promiscuous command.
This command is mutually exclusive with the
port private-vlan trunk promiscuous and
port private-vlan trunk secondary commands.
Examples
In this example, VLAN 2 is a primary VLAN, and it is associated with secondary VLAN 20.
# Display information about GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
#
return
# Configure GigabitEthernet 1/0/1 as a promiscuous port of VLAN 2, and then verify the
configuration.
[Sysname-GigabitEthernet1/0/1] port private-vlan 2 promiscuous
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port private-vlan 2 promiscuous
undo port hybrid vlan 1
port hybrid vlan 2 20 untagged
port hybrid pvid vlan 2
#
return
The output shows that:
• GigabitEthernet 1/0/1 is a promiscuous port of VLAN 2.
• GigabitEthernet 1/0/1 is an untagged member of primary VLAN 2 and secondary VLAN 20.
• The port link type of GigabitEthernet 1/0/1 is hybrid and its PVID is VLAN 2.
# Execute the
undo port private-vlan command on GigabitEthernet 1/0/1, and then verify the
configuration.
[Sysname-GigabitEthernet1/0/1] undo port private-vlan
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 20 untagged
port hybrid pvid vlan 2
#
return