beautypg.com

Configuration guidelines, Configuration procedure, Configuring the port link type – H3C Technologies H3C S12500-X Series Switches User Manual

Page 131: Configuration restrictions and guidelines

background image

120

VLAN associated with the secondary VLAN. For more information about promiscuous mode,

trunk promiscuous mode, and host mode, see Layer 2—LAN Switching Command Reference.

4.

Associate the secondary VLANs with the primary VLAN.

Configuration guidelines

After you complete the private VLAN configurations, perform the following configurations:

{

For a port operating in promiscuous mode, make sure the primary VLAN is the PVID of the port
and the port is assigned to the primary VLAN and secondary VLANs as an untagged member.

{

For a port operating in host mode, make sure the PVID of the port is a secondary VLAN and the
port is assigned to the primary VLAN and secondary VLANs as an untagged member.

{

For a port operating in trunk promiscuous mode, make sure the port is assigned to the primary
VLAN as a tagged member and assigned to the secondary VLANs as an untagged member.

After you configure a primary VLAN, the system automatically synchronizes the dynamic MAC

address entries of the secondary VLANs to the primary VLAN.

To enable users in the private VLAN to communicate with other networks at Layer 3, configure
VLAN interfaces for the secondary VLANs, and configure IP addresses for the secondary VLAN

interfaces.

Configuration procedure

To configure the private VLAN feature:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a VLAN and enter

VLAN view.

vlan vlan-id N/A

3.

Configure the VLAN as a
primary VLAN.

private-vlan primary

By default, a VLAN is not a primary
VLAN.

4.

Return to system view.

quit

N/A

5.

Create one or multiple
secondary VLANs.

vlan { vlan-id1 [ to vlan-id2 ] | all }

N/A

6.

Return to system view.

quit

N/A

7.

Enter Layer 2 Ethernet
interface view or Layer 2

aggregate interface view.

interface interface-type
interface-number

N/A

8.

Configure the uplink port to

operate in promiscuous or

trunk promiscuous mode in
the specified VLANs.

Configure the uplink port to
operate in promiscuous mode

in the specified VLAN:

port private-vlan vlan-id
promiscuous

Configure the uplink port to

operate in trunk promiscuous
mode in the specified VLANs:

port private-vlan vlan-id-list

trunk promiscuous

By default, a port does not operate

in promiscuous or trunk
promiscuous mode in a VLAN.

This manual is related to the following products: