C H A P T E R 2 Configuring VLANs Prerequisites for VLANs, on page 21 Restrictions for VLANs, on page 21 Information About VLANs, on page 22 How to Configure VLANs, on page 26 Monitoring VLANs, on page 33 Where to Go Next, on page 34 Additional References, on page 35 Feature History for VLAN, on page 35 Prerequisites for VLANs The following are prerequisites and considerations for configuring VLANs: • Before you create VLANs, you must decide whether to use VLAN Trunking Protocol (VTP) to maintain global VLAN configuration for your network.
• If you plan to configure many VLANs on the device and to not enable routing, you can set the Switch Database Management (SDM) feature to the Access template, which configures system resources to support the maximum number of unicast MAC addresses. • A VLAN should be present in the device to be able to add it to the VLAN group. Restrictions for VLANs The following are restrictions for VLANs: • The number of Spanning Tree Protocol (STP) virtual ports in the per-VLAN spanning-tree (PVST) or rapid PVST mode is based on the number of trunks, multiplied by the number of active VLANs, plus the number of access ports. STP virtual ports = trunks * active VLANs on trunk + number of non-trunk ports.
Consider the following examples: • If a switch has 40 trunk ports (100 active VLANs on each trunk) and 8 access ports, the number of STP virtual ports on this switch would be: 40 * 100 + 8 = 4,008. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 21