H3C S6812 Series Command Reference Manual page 536

Hide thumbs Also See for S6812 Series:
Table of Contents

Advertisement

interface Ten-GigabitEthernet1/0/1
port link-mode bridge
#
return
# Configure Ten-GigabitEthernet 1/0/1 as a trunk secondary port of VLANs 20 and 30, and then
verify the configuration.
[Sysname-Ten-GigabitEthernet1/0/1] port private-vlan 20 30 trunk secondary
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-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:
Ten-GigabitEthernet 1/0/1 is a trunk secondary port of VLANs 20 and 30.
Ten-GigabitEthernet 1/0/1 is a tagged member of VLANs 2, 3, 20, and 30.
The port link type of Ten-GigabitEthernet 1/0/1 is hybrid.
# Execute the undo port private-vlan trunk secondary command on Ten-GigabitEthernet
1/0/1, and then verify the configuration.
[Sysname-Ten-GigabitEthernet1/0/1] undo port private-vlan 20 30 trunk secondary
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-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:
Ten-GigabitEthernet 1/0/1 is removed from VLANs 20 and 30.
Ten-GigabitEthernet 1/0/1 is a tagged member of VLANs 2 and 3.
The port link type and PVID of Ten-GigabitEthernet 1/0/1 do not change.
In this example, VLAN 10 is not a secondary VLAN.
# Display information about Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
#
return
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

S6813 seriesS5150-ei

Table of Contents