C H A P T E R 6 Configuring Layer 3 Subinterfaces This module describes how to configure the dot1q VLAN subinterfaces on a Layer 3 interface, which forwards IPv4 and IPv6 packets to another device using static or dynamic routing protocols. You can use Layer 3 interfaces for IP routing and inter-VLAN routing of Layer 2 traffic. Restrictions for Configuring Layer 3 Subinterfaces, on page 99 Information About Layer 3 Subinterfaces, on page 99 How to Configure Layer 3 Subinterfaces, on page 101 Example:
Configuring Layer 3 Subinterfaces, on page 102 Feature History for Layer 3 Subinterfaces, on page 102 Restrictions for Configuring Layer 3 Subinterfaces • Subinterfaces are not supported on StackWise Virtual Link. • Subinterfaces with Software-Defined Access (SD-Access) is not supported. • Do not configure more than 4,000 Layer 3 interfaces, that includes routed physical interfaces, SVI interfaces and subinterfaces. • A maximum of 1000 SVI interfaces is supported. • Do not configure encapsulation on the native VLAN of an IEEE 802.1Q trunk without the native keyword. Always use the native keyword of the dot1q vlan command when the VLAN ID is the ID of the IEEE 802.1Q native VLAN.
• If you configure normal-range VLANs on subinterfaces, you cannot change the VLAN Trunking Protocol (VTP) mode from Transparent. • If a Layer 3 port has a subinterface configured with dot1q as the native VLAN, Cisco recommends not to configure routing related configuration on the Layer 3 port as it will hinder the functionality of the native VLAN subinterface. Information About Layer 3 Subinterfaces A dot1q VLAN subinterface is a virtual Cisco IOS interface that is associated with a VLAN ID on a routed physical interface. A parent interface is a physical port. Subinterfaces can be created on Layer 3 physical VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 99