218
[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 trunk secondary port of VLANs 20 and 30, and then
verify the configuration.
[Sysname-GigabitEthernet1/0/1] port private-vlan 20 30 trunk secondary
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port hybrid vlan 2 3 20 30 tagged
port hybrid vlan 1 untagged
port private-vlan 20 30 trunk secondary
#
return
The output shows that:
{ GigabitEthernet 1/0/1 is a trunk secondary port of VLANs 20 and 30.
{ GigabitEthernet 1/0/1 is a tagged member of VLANs 2, 3, 20, and 30.
{ The port link type of GigabitEthernet 1/0/1 is hybrid.
# Execute the
undo port private-vlan trunk secondary command on
GigabitEthernet 1/0/1, and then verify the configuration.
[Sysname-GigabitEthernet1/0/1] undo port private-vlan 20 30 trunk secondary
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port hybrid vlan 2 3 tagged
port hybrid vlan 1 untagged
#
return
The output shows that:
{ GigabitEthernet 1/0/1 is removed from VLANs 20 and 30.
{ GigabitEthernet 1/0/1 is a tagged member of VLANs 2 and 3.
{ The port link type and PVID of GigabitEthernet 1/0/1 do not change.
• In this example, VLAN 10 is not a secondary VLAN.
# 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