Configuration Guide Private VLAN Configuration
Enter the global configuration mode.
Enter the primary VLAN configuration mode.
private-vlan association
{svlist | add svlist | remove svlist}
Associate with the secondary VLANs.
no private-vlan association
Remove the association with all the secondary
VLANs.
show vlan private-vlan [type]
For example:
Ruijie# configure terminal
Ruijie(config)# vlan 202
Ruijie(config-vlan)# private-vlan association 303-307,309,440
Ruijie(config-vlan)# end
Ruijie# show vlan private-vlan
VLAN Type Status Routed Interface Associated VLANs
--- ---- -------- ------ --------- ------------------
202 prim inactive Disabled 303-307,309,440
303 comm inactive Disabled 202
304 comm inactive Disabled 202
305 comm inactive Disabled 202
306 comm inactive Disabled 202
307 comm inactive Disabled 202
309 comm inactive Disabled 202
440 comm inactive Disabled 202
This operation is performed in the configuration mode of the VLAN declared
as the primary VLAN.
Mapping Secondary VLANs to the Layer 3 Interface of the Primary VLAN
To map the secondary VLANs to the layer 3 interface of the primary VLAN,
execute the following commands:
Enter the global configuration mode.
Enter the interface configuration mode of the primary
VLAN.
private-vlan mapping
{svlist | add svlist | remove svlist}
Map the secondary VLANs to the layer 3 SVI of the
primary VLAN.
Exit the interface configuration mode.