Configuring a Layer 2 Interface as a Private VLAN Host Port Follow these steps to configure a Layer 2 interface as a private-VLAN host port and to associate it with primary and secondary VLANs: Isolated and community VLANs are both secondary VLANs. Note Procedure Configuring Private VLANs Configuring a Layer 2 Interface as a Private VLAN Host Port Command or Action Purpose Step 19 show vlan private-vlan [type] or show interfaces status Example: Device# show vlan private-vlan Verifies the configuration. Step 20 copy running-config startup config Example: Device# copy running-config startup-config Saves your entries in the device startup configuration file.
Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 interface interface-id Example: Device(config)# interface gigabitethernet1/0/22 Enters interface configuration mode for the Layer 2 interface to be configured. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 79