219
port link-mode bridge
#
return
# Configure GigabitEthernet 1/0/1 as a trunk secondary port of VLAN 10, and then verify the
configuration.
[Sysname-GigabitEthernet1/0/1] port private-vlan 10 trunk secondary
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port hybrid vlan 10 tagged
port hybrid vlan 1 untagged
port private-vlan 10 trunk secondary
#
return
The output shows that:
{ GigabitEthernet 1/0/1 is a trunk secondary port of VLAN 10.
{ GigabitEthernet 1/0/1 is a tagged member of VLAN 10.
{ The port link type of GigabitEthernet 1/0/1 is hybrid.
# Execute the
undo port private-vlan trunk secondary command on
GigabitEthernet1/0/1, and then verify the configuration.
[Sysname-GigabitEthernet1/0/1] undo port private-vlan 10 trunk secondary
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 untagged
#
return
The output shows that:
{ GigabitEthernet 1/0/1 is removed from VLAN 10.
{ The port link type and PVID of GigabitEthernet 1/0/1 do not change.
Related commands
port private-vlan host
port private-vlan promiscuous
port private-vlan trunk promiscuous
private-vlan
(VLAN view)
private-vlan isolated
private-vlan primary
private-vlan (VLAN interface view)
Use private-vlan secondary to enable Layer 3 communication between secondary VLANs
that are associated with a primary VLAN.