Command Reference Private VLAN Commands
configured as the host port mode.
The port mode must be configured as the promiscuous mode.
The following example applies the private host mode to the interface.
Ruijie(config)# interface gigabitEthernet0/2
Ruijie(config-if)# switchport mode private-vlan host
The following example applies the promiscuous mode to the interface.
Ruijie(config)# interface gigabitEthernet 0/2
Ruijie(config-if-GigabitEthernet 0/2)#sw mode private-vlan promiscuous
7.7 switchport private-vlan host-association
Use this command to associate the primary VLAN, which is associated with the private VLAN mode of
the interface, with the secondary VLAN. Use the no or default form of this command to restore the
default setting.
switchport private-vlan host-association p_vid s_vid
no switchport private-vlan host-association
default switchport private-vlan host-association
This function is disabled by default.
Interface configuration mode.
Before a port is configured as an isolated port or promiscuous port, and the port mode must be
configured as the host port mode.
Whether a port is configured as an isolated port or community port depends on the s_vid parameter.
p_vid and s_vid must be respectively the IDs of the primary VLAN and secondary VLAN in a PVLAN
pair, on which Layer-2 association is performed.