l2transport (Ethernet)
To enable Layer 2 transport port mode on an Ethernet interface and enter Layer 2 transport configuration mode, use the l2transport command in interface or Subinterface configuration mode for an Ethernet interface. To disable Layer 2 transport port mode on an Ethernet interface, use the no form of this command.
l2transport
no l2transport
This command has no keywords or arguments.
Command Default
None
Command Modes
Interface configuration
Sub-interface configuration
Command History
Release |
Modification |
---|---|
Release 6.0 |
This command was introduced. |
Usage Guidelines
The l2transport command and these configuration items are mutually exclusive:
- IPv4 address and L3 feature configuration
- IPv4 enable and L3 feature configuration
- Bundle-enabling configuration
- L3 sub-interfaces
- Layer 3 QoS Policy
Note |
|
Task ID
Task ID |
Operations |
---|---|
l2vpn |
read, write |
Examples
Router# configure
Router(config)# interface TenGigE 0/2/0/0
Router(config-if)# l2transport
Router(config-if-l2)#
Note |
Ensure that the l2transport command is applied on the same line as the interface command for the Ethernet sub-interface. |
Router# configure
Router(config)# interface TenGigE 0/1/0/3.10 l2transport
Router(config-subif)# encapsulation dot1q 10
Examples
The following example shows how to configure an interface or connection as Layer 2 switched under several different modes:
Ethernet Port Mode:
Router# configure
Router(config)# interface TenGigE 0/0/0/10
Router(config-if)# l2transport
Ethernet VLAN Mode:
Router# configure
Router(config)# interface TenGigE 0/0/0/0.1 l2transport
Router(config-if)# encapsulation dot1q 10
Ethernet VLAN Mode (QinQ):
Router# configure
Router(config)# interface TenGigE 0/0/0/0.1 l2transport
Router(config-if)# encapsulation dot1q 10 second-dot1q 11
Note |
Ensure that the l2transport command is applied on the same line as the interface command for the Ethernet subinterface. |