PurposeCommand or Action
Example:
Switch# copy running-config startup-config
Tosave the private-VLAN configuration, you need to save the
VTPtransparent mode configurationand private-VLAN
configurationin the switchstartup configuration file.
Otherwise,if the switch resets, it defaults to VTP server mode,
whichdoes notsupport privateVLANs.
Related Topics
PrivateVLAN Domains, on page87
Example:Configuring a Primary VLAN, Isolated VLAN, and a Community of VLANs, on page 102
Configuring a Layer 2 Interface as a Private VLAN Host Port
Beginningin privileged EXEC mode, follow these steps to configure a Layer 2 interface as a private-VLAN
hostport and to associate it with primary and secondary VLANs:
Isolatedand community VLANs areboth secondaryVLANs.Note
SUMMARY STEPS
1. configureterminal
2. interfaceinterface-id
3. switchportmode private-vlan host
4. switchportprivate-vlan host-association primary_vlan_id secondary_vlan_id
5. end
6. showinterfaces [interface-id]switchport
7. copyrunning-config startup config
DETAILED STEPS
PurposeCommand or Action
Entersglobal configuration mode.configureterminal
Example:
Switch# configure terminal
Step 1
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
96 OL-29440-01
Configuring Private VLANs
Configuring a Layer 2 Interface as a Private VLAN Host Port