H3C S6812 Series Command Reference Manual page 529

Hide thumbs Also See for S6812 Series:
Table of Contents

Advertisement

Assigns the port to the primary VLAN as an untagged member.
For a trunk port, the device does not change the port link type or PVID.
For a hybrid port, the device does not change the port link type or PVID.
If the hybrid port has been a tagged or untagged member of the primary VLAN, this member
attribute remains in the primary VLAN.
If the hybrid port does not allow the primary VLAN, the device assigns the port to the primary
VLAN as an untagged member.
You can assign the port to a secondary VLAN before or after you execute this command.
The undo port private-vlan command does not change the VLAN attributes (allowed VLANs, port
link type, and PVID) of the port.
The port private-vlan host command is mutually exclusive with the port private-vlan trunk
promiscuous and port private-vlan trunk secondary commands.
Examples
In this example, VLAN 20 is a secondary VLAN and is associated with primary VLAN 2.
# Configure Ten-GigabitEthernet 1/0/1 as a host port, and then verify the configuration.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] port private-vlan host
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port private-vlan host
#
return
The output show that Ten-GigabitEthernet 1/0/1 is operating in bridge mode and is a host port.
# Assign Ten-GigabitEthernet 1/0/1 to VLAN 20, and then verify the configuration.
[Sysname-Ten-GigabitEthernet1/0/1] port access vlan 20
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port private-vlan host
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 2 20 untagged
port hybrid pvid vlan 20
#
return
The output shows that:
Ten-GigabitEthernet 1/0/1 is an untagged member of secondary VLAN 20 and primary VLAN 2.
The port link type of Ten-GigabitEthernet 1/0/1 is hybrid and its PVID is VLAN 20.
Related commands
port private-vlan promiscuous
port private-vlan trunk promiscuous
42

Advertisement

Table of Contents
loading

This manual is also suitable for:

S6813 seriesS5150-ei

Table of Contents