Layer 2 Switching Commands 820Command ModeInterface Configuration (physical or port-channel)User GuidelinesDo not configure private VLANs on ports configured with any of thesefeatures:• Link Aggregation Control Protocol (LACP)• Multicast VLAN Registration (MVR)• Voice VLANIt is recommended that the private VLAN host ports be configured asspanning-tree portfast.Exampleconsole(config)#interface gigabitethernet 1/0/8console(config-if-Gi1/0/8)#switchport mode private-vlan hostswitchport private-vlanUse the switchport private-vlan command in Interface Configuration modeto define a private VLAN association for an isolated or community port or amapping for a promiscuous port.Use the no form of the command to remove the private VLAN association ormapping from the interface.Syntaxswitchport private-vlan {host-association primary-vlan-id secondary-vlan-id| mapping primary-vlan-id [add|remove] secondary-vlan-list}no switchport private-vlan {host-association|mapping}• host-association—Defines VLAN associations for community or hostports.• mapping—Defines the private VLAN mapping for promiscuous ports.• primary-vlan-id—Primary VLAN ID of a private VLAN.• secondary-vlan-id—Secondary (isolated or community) VLAN ID of aprivate VLAN.