•
add—Associates the secondary VLAN with the primary one.
•
remove—Deletes the secondary VLANs from the primary VLAN
association.
secondary-vlan-list—A list of secondary VLANs to be mapped to a primary
•
VLAN.
Default Configuration
This command has no default association or mapping configuration.
Command Mode
Interface Configuration (physical or port-channel)
User Guidelines
This command has no user guidelines.
Example
console(config)#vlan 10,20
console(config-vlan10,20)#exit
console(config)#interface gigabitethernet 1/0/8
console(config-if-Gi1/0/8)#switchport private-vlan host-association 10 20
switchport trunk
Use the switchport trunk command in Interface Configuration mode to
configure VLAN membership for a trunk port or to set the native VLAN for
an interface in Trunk Mode.
Syntax
switchport trunk {allowed vlan vlan–list | native vlan vlan–id}
no switchport trunk { allowed | native } vlan
•
—Set the list of allowed VLANs that can receive and send traffic
vlan–list
on this interface in tagged format when in trunking mode. The default is
all. The vlan–list format is as follows:
The vlan-list format is all | [add | remove | except] vlan–atom [, vlan–
atom...] where:
Layer 2 Switching Commands
821