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 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
Command Default
None.
Command Modes
Interface configuration modeCommand History
Release | Modification |
---|---|
Release 6.1.42 |
This command was introduced. |
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.
RP/0/RP0:hostname#configure
RP/0/RP0:hostname(config)# interface TenGigE0/1/5/2
RP/0/RP0:hostname(config-if)# l2transport
RP/0/RP0:hostname(config-if-l2)# ?
commit Commit the configuration changes to running
describe Describe a command without taking real actions
do Run an exec command
exit Exit from this submode
no Negate a command or set its defaults
service-policy Configure QoS Service policy
show Show contents of configuration
RP/0/RP0:hostname(config-if-l2)#
Note |
The l2transport command is mutually exclusive with any Layer 3 interface configuration |
Task ID
Task ID | Operation |
---|---|
l2vpn |
read, write |
Examples
The following example shows how to enable Layer 2 transport port mode on an Ethernet interface and enter Layer 2 transport configuration mode:
RP/0/RP0:hostname# configure
RP/0/RP0:hostname(config)# interface TenGigE0/2/0/2
RP/0/RP0:hostname(config-if)# l2transport
RP/0/RP0:hostname(config-if-l2)#
RP/0/RP0:hostname# configure
RP/0/RP0:hostname(config)# interface TenGigE0/6/0/2.10 l2transport
RP/0/RP0:hostname(config-if)# encapsulation dot1q 200
RP/0/RP0:hostname(config-if-l2)#commit
Note |
Ensure that the l2transport command is applied on the same line as the interface command for the Ethernet subinterface. |
RP/0/RP0:hostname#configure
RP/0/RP0:hostname(config)#interface TenGigE0/5/0/1.1 l2transport
RP/0/RP0:hostname(config-subif)#encapsulation dot1q 100
RP/0/RP0:hostname(config-subif)#commit
RP/0/RP0:hostname(config-subif)#end
RP/0/RP0:hostname#sh run | begin TenGigE0/5/0/1
Thu Dec 3 10:15:40.916 EST Building configuration...
interface TenGigE0/5/0/1
mtu 1500
!
interface TenGigE0/5/0/1.1 l2transport
encapsulation dot1q 100
interface TenGigE0/5/0/2
shutdown
!
!
Note |
To configure l2transport on an Ethernet subinterface, ensure that the main interface is configured as a Layer 3 interface. |