•
If specifying an Ethernet bundle interface, the range is from 1 through 65535.
For the subinterface argument, the range is from 0 through 4095.
To configure a large number of subinterfaces, we recommend entering all configuration data before you
commit the interface command.
To change an interface from Layer 2 to Layer 3 mode and back, you must delete the interface first and then
re-configure it in the appropriate mode.
A subinterface does not pass traffic without an assigned VLAN ID.Note
Task ID
OperationsTask ID
read, writevlan
Examples
This example shows how to configure a VLAN subinterface on a 10-Gigabit Ethernet interface:
RP/0/RSP0/CPU0:router(config)# interface TenGigE 0/0/0/1.2
RP/0/RSP0/CPU0:router(config-subif)# dot1q vlan 1
RP/0/RSP0/CPU0:router(config-subif)# ipv4 address 50.0.0.1/24
This example shows how to create a VLAN subinterface with Layer 2 transport port mode enabled, and enter
Layer 2 transport configuration mode under that VLAN:
RP/0/RSP0/CPU0:router(config)# interface GigabitEthernet 0/4/0/1.1
RP/0/RSP0/CPU0:router(config-if-l2)#
Related Commands
DescriptionCommand
Assigns a VLAN ID to a subinterface (or modifies the VLAN ID that
is currently assigned to a subinterface).
dot1q vlan, on page 1090
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
1093
VLAN Subinterface Commandsonthe Cisco ASR 9000 Series Router
interface (VLAN)