Add Ports into a Primary VLAN
Only the ports whose link type is Promiscuous can be added into a primary VLAN. The ports that are added into a primary VLAN can communicate at layer two with the other member ports in the primary VLAN and the member ports of the associated secondary VLANs. Promiscuous ports are usually used as upstream ports.
Configuration Condition
Before adding ports into a primary VLAN, ensure that:
- The VLAN into which the ports are added is of the primary VLAN type.
Add Ports into a Primary VLAN
Table 6-3 Adding Ports into a Primary VLAN
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the layer-2 Ethernet interface configuration mode.
|
interface interface-name
|
Either
After entering the L2 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current port. After entering the aggregation group configuration mode, the subsequent configuration takes effect only on the aggregation group.
|
Enter the aggregation group configuration mode.
|
link-aggregation link- aggregation-id
|
Configure the port link type to Promiscuous.
|
switchport mode private- vlan promiscuous
|
Mandatory.
By default, the port link type is the Access type.
|
Add Promiscuous ports into the primary VLAN.
|
private-vlan promiscuous vlan-id
|
Mandatory. By default, a Promiscuous port is not added into any VLAN.
|
-
If you configure a port link type to Promiscuous but do not add the port into a primary VLAN, the PVLAN function of the port does not take effect. In addition, the port of the Promiscuous type is dedicated for PVLAN, and the other functions that are configured on the Promiscuous port are invalid. Therefore, it is recommended that you follow the previous steps to complete the configuration.