cisco Catalyst 9300 — Configuring and Associating VLANs in a Private VLAN

Configuring Private VLANs Configuring and Associating VLANs in a Private VLAN Command or Action Purpose Device(config-vlan)# exit Step 7 vlan vlan-id Example: Device(config)# vlan 501 (Optional) Enters VLAN configuration mode and designates or creates a VLAN that will be an isolated VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094. Step 8 private-vlan isolated Example: Device(config-vlan)# private-vlan isolated Designates the VLAN as an isolated VLAN. Step 9 exit Example: Device(config-vlan)# exit Returns to global configuration mode. Step 10 vlan vlan-id Example:

Device(config)# vlan 502 (Optional) Enters VLAN configuration mode and designates or creates a VLAN that will be a community VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094. Step 11 private-vlan community Example: Device(config-vlan)# private-vlan community Designates the VLAN as a community VLAN. Step 12 exit Example: Device(config-vlan)# exit Returns to global configuration mode. Step 13 vlan vlan-id Example: Device(config)# vlan 503 (Optional) Enters VLAN configuration mode and designates or creates a VLAN that will be a community VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094. Step 14 private-vlan community Example: Designates the VLAN as a community VLAN.

VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 77