Chapter 19
Configuring Layer 3 Interfaces
•
•
•
Command
Step 1
Router> enable
Step 2
Router# configure terminal
Step 3
Router(config)# interface
1
{{type
slot/port.subinterface} | {port-channel
port_channel_number.subinterface}}
Step 4
Router(config-subif)# encapsulation dot1q vlan_ID
[native]
Step 5
Router(config-if)# exit
1.
type = ethernet, fastethernet, gigabitethernet, tengigabitethernet, or ge-wan
Configuring IPv4 Routing and Addresses
For complete information and procedures, refer to these publications:
•
•
OL-11439-03
Always use the native keyword when the VLAN ID is the ID of the IEEE 802.1Q native VLAN. Do
not configure encapsulation on the native VLAN of an IEEE 802.1Q trunk without the native
keyword.
Because VLAN IDs are global to the switch, you can use a VLAN internally, on a subinterface, or
with a Layer 3 VLAN interface.
You cannot configure an internal VLAN on a subinterface or a Layer 3 VLAN interface.
–
You cannot configure a subinterface VLAN on a Layer 3 VLAN interface.
–
You cannot configure a VLAN used with a Layer 3 VLAN interface on a subinterface.
–
You cannot configure a VLAN used on one interface or subinterface on another interface or
Note
subinterface.
You can configure subinterfaces with any normal range or extended range VLAN ID in VTP
transparent mode. Because VLAN IDs 1 to 1005 are global in the VTP domain and can be defined
on other network devices in the VTP domain, you can use only extended range VLANs with
subinterfaces in VTP client or server mode. In VTP client or server mode, normal range VLANs are
excluded from subinterfaces.
If you configure normal range VLANs on subinterfaces, you cannot change the VTP mode
Note
from transparent.
To configure a subinterface, perform this task:
Cisco IOS IP and IP Routing Configuration Guide, Release 12.2, at this URL:
http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/fipr_c.html
Cisco IOS IP and IP Routing Command Reference, Release 12.2, at these URLs:
http://www.cisco.com/en/US/docs/ios/12_2/ipaddr/command/reference/fipras_r.html
http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/fiprrp_r.html
Catalyst Supervisor Engine 32 PISA Cisco IOS Software Configuration Guide, Release 12.2ZY
Configuring IPv4 Routing and Addresses
Purpose
Enters privileged EXEC mode.
Enters global configuration mode.
Selects an interface and enters subinterface configuration
mode.
Configures 802.1Q encapsulation for the subinterface.
Returns to global configuration mode.
19-3