2-769Cisco Catalyst Blade Switch 3120 for HP Command ReferenceOL-12248-03Chapter 2 Cisco Catalyst Blade Switch 3120 for HP Cisco IOS CommandsswitchportswitchportUse the switchport interface configuration command with no keywords on the switch stack or on astandalone switch to put an interface that is in Layer 3 mode into Layer 2 mode for Layer 2 configuration.Use the no form of this command to put an interface in Layer 3 mode.switchportno switchportUse the no switchport command (without parameters) to set the interface to the routed-interface statusand to erase all Layer 2 configurations. You must use this command before assigning an IP address to arouted port.Syntax Description This command has no arguments or keywords.Defaults By default, all interfaces are in Layer 2 mode.Command Modes Interface configurationCommand HistoryUsage Guidelines Entering the no switchport command shuts the port down and then re-enables it, which might generatemessages on the device to which the port is connected.When you put an interface that is in Layer 2 mode into Layer 3 mode (or the reverse), the previousconfiguration information related to the affected interface might be lost, and the interface is returned toits default configuration.Note If an interface is configured as a Layer 3 interface, you must first enter this switchport command withno keywords to configure the interface as a Layer 2 port. Then you can enter additional switchportcommands with keywords, as shown on the pages that follow.Examples This example shows how to cause an interface to cease operating as a Layer 2 port and become aCisco-routed port:Switch(config-if)# no switchportThis example shows how to cause the port interface to cease operating as a Cisco-routed port and convertto a Layer 2 switched interface:Switch(config-if)# switchportRelease Modification12.2(40)EX1 This command was introduced.