OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : VLAN and Private VLAN Commands : switchport private-vlan association-trunk
switchport private-vlan association-trunk
Use this command to associate primary vlan and secondary vlan under "switchport mode trunk" and "switchport mode private-vlan host".
Note: Each secondary VLAN on a host trunk port must be associated with a different primary VLAN. User cannot put two secondary VLANs that are associated with the same primary VLAN on a host trunk port. Each secondary vlan on the same port has to have the same type, ie isolated or community, there cannot be mixed type.
Use the no form of this command to remove the association.
Command Syntax
switchport private-vlan association-trunk VLAN_ID VLAN_ ID
no switchport private-vlan association-trunk VLAN_ ID VLAN_ ID
no switchport private-vlan association-trunk
Parameters
VLAN_ ID
VLAN ID 2-4094
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#configure terminal
(config)#interface xe2
(config-if)#speed 10g
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan add 10 20
(config-if)#switchport mode private-vlan host
(config-if)#switchport private-vlan association-trunk 100 10
(config-if)#switchport private-vlan association-trunk 200 20
(config-if)#no switchport private-vlan association-trunk 100 10
(config-if)#no switchport private-vlan association-trunk
 
 
Last modified date: 07/06/2023