Mapping Secondary VLANs to a Primary VLAN Layer 3 VLAN Interface If the private VLAN will be used for inter-VLAN routing, you configure an SVI for the primary VLAN and map secondary VLANs to the SVI. Isolated and community VLANs are both secondary VLANs. Note Follow these steps to map secondary VLANs to the SVI of a primary VLAN to allow Layer 3 switching of private VLAN traffic: Procedure Configuring Private VLANs Mapping Secondary VLANs to a Primary VLAN Layer 3 VLAN Interface Command or Action Purpose Device# show etherchannel summary Step 9 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 vlan primary vlan id _ _ Example: Device(config)# interface vlan 20 Enters interface configuration mode for the primary VLAN, and configures the VLAN as an SVI. The VLAN ID range is 2 to 1001 and 1006 to 4094. Step 4 private-vlan mapping [add | remove] secondary vlan list _ _ Example: Maps the secondary VLANs to the Layer 3 VLAN interface of a primary VLAN to allow Layer 3 switching of private VLAN ingress traffic.
VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 89