Switchport Private-Vlan Host-Association - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

56
1083
User Guidelines
The secondary VLANs should be associated with the primary VLANs, otherwise
the configuration is not accepted.
Example
The following example add promiscuous port gi 1 4 to primary VLAN 10 and to
secondary VLAN 20.
switchxxxxxx(config)#
switchxxxxxx(config-if)#

56.31 switchport private-vlan host-association

Use the switchport private-vlan host-association Interface Configuration mode
command to configure the association of a host port with primary and secondary
VLANs of the private VLAN. Use the no form of this command to reset to default.
Syntax
switchport private-vlan host-association
no switchport private-vlan host-association
Parameters
primary-vlan-id
secondary-vlan-id
Default Configuration
No association.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
The secondary VLAN must be associated with the primary VLAN, otherwise the
configuration is not accepted. See the private-vlan association command.
The port association configuration depends on the type of the secondary VLAN.
The port association configuration for a community secondary VLAN includes:
Virtual Local Area Network (VLAN) Commands
interface gi14
switchport private-vlan mapping
primary-vlan-id secondary-vlan-id
—The VLAN ID of the primary VLAN.
—Specifies the secondary VLAN.
OL-32830-01 Command Line Interface Reference Guide
10 add 20

Advertisement

Table of Contents
loading

Table of Contents