33
Associating the primary VLAN with secondary
VLANs
1. Enter system view.
system-view
2. Create enter VLAN view of the primary VLAN.
vlan vlan-id
3. Associate the primary VLAN with the secondary VLANs.
private-vlan secondary vlan-id-list
By default, a primary VLAN is not associated with any secondary VLANs.
Configuring the uplink port
About the uplink port
Configure the uplink port (for example, the port connecting L2 Device B to L3 Device A in Figure 8) as
follows:
• If the port allows only one primary VLAN, configure the port as a promiscuous port of the
primary VLAN. The promiscuous port can be automatically assigned to the primary VLAN and
its associated secondary VLANs.
• If the port allows multiple primary VLANs, configure the port as a trunk promiscuous port of the
primary VLANs. The trunk promiscuous port can be automatically assigned to the primary
VLANs and their associated secondary VLANs.
Procedure
1. Enter system view.
system-view
2. Enter interface view of the uplink port.
interface interface-type interface-number
3. Configure the uplink port as a promiscuous or trunk promiscuous port of the specified VLANs.
{ Configure the uplink port as a promiscuous port of the specified VLAN.
port private-vlan vlan-id promiscuous
{ Configure the uplink port as a trunk promiscuous port of the specified VLANs.
port private-vlan vlan-id-list trunk promiscuous
By default, a port is not a promiscuous or trunk promiscuous port of any VLANs.
Configuring a downlink port
About the downlink port
Configure a downlink port as follows:
• If a downlink port allows only one secondary VLAN (for example, the port connecting L2 Device
B to a host in Figure 8), co
nfigure the port as a host port. The host port can be automatically
assigned to the secondary VLAN and its associated primary VLAN.
• If a downlink port allows multiple secondary VLANs, configure the port as a trunk secondary
port. The trunk secondary port can be automatically assigned to the secondary VLANs and their
associated primary VLANs.