CLI ReferenceInterface Configuration Commands Private VLAN Configuration Commands
switchport mode private-vlan
Use this command to declare the private VLAN mode of the interface.
switchport mode private-vlan {host | promiscuous }
no switchport mode
Host mode of the private VLAN
Promiscuous mode of the private VLAN
Delete the private VLAN configuration of
the port.
Interface configuration mode.
Ruijie(config)# interface gigabitEthernet0/2
Ruijie(config-if)# switchport mode private-vlan host
The software version must be RGOS10.1 and later.
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.
switchport private-vlan host-association p_vid s_vid
no switchport private-vlan host-association
Delete the host port from the private
VLAN.
Interface configuration mode.
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode private-vlan host
Ruijie(config-if)# switchport private-vlan host-association 22 23