Configuring Layer 3 Subinterfaces
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 1
• Information About Layer 3 Subinterfaces, on page 2
• How to Configure Layer 3 Subinterfaces, on page 3
• Example: Configuring Layer 3 Subinterfaces, on page 3
• Additional References, on page 4
• Feature Information for Layer 3 Subinterfaces, on page 4
• Services—Network Address Translation (NAT) IPv4, Security Group Access Control List (SGACL)
enforcement, DHCP Server/Relay, SGT Exchange Protocol (SXP), and NetFlow.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface {type switch / slot / port.subinterface}
4. encapsulation dot1q vlan-id [native]
5. end
DETAILED STEPS
Step 3 interface {type switch / slot / port.subinterface} Selects an interface and enters subinterface configuration
mode. (To remove an interface, use the no form of this
Example:
command.)
Device(config)# interface HundredGigabitEthernet
1/0/33.201
Step 4 encapsulation dot1q vlan-id [native] Configures 802.1Q encapsulation for the subinterface. The
range is from 1 to 4000. (To remove 802.1Q encapsulation
Example:
for the subinterface, use the no form of this command.)
Device(config-subif)# encapsulation dot1q 33 native
Device> enable
Device# configure terminal
Device(config)# interface HundredGigabitEthernet 1/0/33.201
Device(config-subif)# encapsulation dot1q 33 native
Device(config-subif)# end
Additional References
Related Documents
Technical Assistance
Description Link
The Cisco Support website provides extensive online resources, including http://www.cisco.com/support
documentation and tools for troubleshooting and resolving technical issues
with Cisco products and technologies.
To receive security and technical information about your products, you can
subscribe to various services, such as the Product Alert Tool (accessed from
Field Notices), the Cisco Technical Services Newsletter, and Really Simple
Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a Cisco.com user
ID and password.
Layer 3 Subinterfaces Cisco IOS XE Gibraltar Layer 3 interfaces forward IPv4 and IPv6 packets
16.10.1 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.