Configuration Guide Private VLAN Configuration
Ruijie(config-if)# end
Ruijie#
The primary VLAN and the secondary VLANs in this process are associated.
This configuration is supported in RGOS10.3(5) and later.
Configuring a Layer 2 Interface as the Promiscuous Port of a Private VLAN
To configure a layer 2 interface as the promiscuous port of a private VLAN,
execute the following commands:
Enter the global configuration mode.
Enter the interface configuration mode.
Three kinds of interfaces are available: Megabit,
Gigabit, 10 Gigabit.
switchport mode private-vlan
promiscuous
Configure the interface as the promiscuous port of the
private VLAN.
Remove the configuration.
switchport private-vlan mapping
p_vid{svlist | add svlist | remove svlist}
Map the secondary VLANs to the promiscuous port.
no switchport private-vlan mapping
For example:
Ruijie# configure terminal
Ruijie(config)# interface gigabitEthernet 0/2
Ruijie(config-if)# switchport mode private-vlan promiscuous
Ruijie(config-if)# switchport private-vlan mapping 202 add 203
Ruijie(config-if)# end
The primary VLAN and the secondary VLANs in this process are associated.
Showing a Private VLAN
Showing a Private VLAN
To show a private VLAN, execute the following command:
show vlan private-vlan [type]