switchport private-vlan mapping
Use this command to associate a primary VLAN and a set of secondary VLANs to a promiscuous port.
Use the no form of this to remove all the association of secondary VLANs to primary VLANs for a promiscuous port.
Command Syntax
switchport private-vlan mapping <2-4094> add VLAN_ID
switchport private-vlan mapping <2-4094> remove VLAN_ID
no switchport private-vlan mapping
Parameters
<2-4094>
VLAN identifier of the primary VLAN.
add
Adds the secondary VLAN.
remove
Removes the secondary VLAN.
VLAN_ID
VLAN identifier <2-4094> of the secondary VLAN (either isolated or community).
Default
By default, switchport mode private-vlan mapping value is 1
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport private-vlan mapping 2 add 3-4
(config-if)#switchport private-vlan mapping 2 remove 3-4
(config-if)#no switchport private-vlan mapping
Last modified date: 07/06/2023