The interface mode l2 command displays the view of an existing interface or creates a Layer 2 sub-interface and displays the Layer 2 sub-interface view.
The undo interface command deletes a Layer 2 sub-interface.
By default, this type of port is not created.
Usage Scenario
The Ethernet virtual connection (EVC) module defines Layer 2 sub-interfaces as service access points. Only Layer 2 sub-interface provides access services. To create a Layer 2 sub-interface, run the interface mode l2 command.
The Virtual eXtensible Local Area Network (VXLAN) module defines Layer 2 sub-interfaces as service access points. Only Layer 2 sub-interface provide access services. To create a Layer 2 sub-interface, run the interface mode l2 command.Precautions
After a logical interface is deleted using the undo interface command, all the configurations on the interface are automatically deleted. These configurations cannot be restored even if you create an interface same as the one deleted.
Layer 2 sub-interfaces can only send access packets to bridge domains, not Layer 3 networks. Each Layer 2 sub-interface can be added to only one BD.