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

Monitoring Private VLANs The following table displays the commands used to monitor private VLANs. Table 6: Private VLAN Monitoring Commands Purpose Command Displays the status of interfaces, includ show interfaces status Displays the private VLAN information show vlan private-vlan [ type ] Displays private VLAN configuration o show interface switchport Displays information about the private show interface private-vlan mapping Configuration Examples for Private VLANs This following sections provide configuration examples for Private VLANSs: Example:

Configuring and Associating VLANs in a Private VLAN This example shows how to configure VLAN 20 as a primary VLAN, VLAN 501 as an isolated VLAN, and VLANs 502 and 503 as community VLANs, to associate them in a private VLAN, and to verify the configuration:

Device# configure terminal Device(config)# vlan 20 Device(config-vlan)# private-vlan primary Device(config-vlan)# exit Device(config)# vlan 501 Device(config-vlan)# private-vlan isolated Device(config-vlan)# exit Device(config)# vlan 502 Device(config-vlan)# private-vlan community Device(config-vlan)# exit Device(config)# vlan 503 Device(config-vlan)# private-vlan community Device(config-vlan)# exit Device(config)# vlan 20 Device(config-vlan)# private-vlan association 501-503 Device(config-vlan)# end Device# show vlan private-vlan Primary Secondary Type --------- -------------- ----------------- 20 501 isolated 20 502 community 20 503 community Configuring Private VLANs Monitoring Private VLANs VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 91