S Commands
shutdown
To shut down the local traffic on an interface, use the shutdown command. To return the interface to its default operational state, use the no form of this command.
shutdown
no shutdown
Syntax Description
This command has no arguments or keywords.
Command Default
Not shut down
Command Modes
Interface configuration mode
Subinterface configuration mode
Virtual Ethernet interface configuration mode
Command History
Release |
Modification |
---|---|
4.0(0)N1(1a) |
This command was introduced. |
5.0(3)N1(1) |
Support for Layer 3 interfaces and subinterfaces, and virtual Ethernet interface was added. |
5.1(3)N1(1) |
Support for virtual Ethernet interface was added. |
Usage Guidelines
You can use this command on the following interfaces:
- Layer 2 interface (Ethernet interface, EtherChannel interface, subinterface)
- Layer 3 interface
![]() Note | Use the no switchport command to configure an interface as a Layer 3 interface. |
- Layer 3 subinterface
- Management interface
- Virtual Ethernet interface
Examples
This example shows how to shut down, or disable, a Layer 2 interface:
switch(config)# interface ethernet 1/10 switch(config-if)# shutdown switch(config-if)#
This example shows how to shut down a Layer 3 Ethernet subinterface:
switch(config)# interface ethernet 1/5.1 switch(config-subif)# shutdown switch(config-subif)#
This example shows how to shut down a virtual Ethernet interface:
switch(config)# interface vethernet 10 switch(config-if)# shutdown switch(config-if)#
Related Commands
Command |
Description |
---|---|
no switchport |
Converts an interface to a Layer 3 routed interface. |
show interface ethernet |
Displays the Ethernet interface configuration information. |
show interface port-channel |
Displays information on traffic about the specified EtherChannel interface. |
show interface vethernet |
Displays the virtual Ethernet interface configuration information. |
shutdown (virtual Ethernet interface)
To shut down the local traffic on a virtual Ethernet interface, use the shutdown command. To return a virtual Ethernet interface to its default operational state, use the no form of this command.
shutdown
no shutdown
Syntax Description
This command has no arguments or keywords.
Command Default
Not shut down
Command Modes
Virtual Ethernet interface configuration mode
Command History
Release |
Modification |
---|---|
5.1(3)N1(1) |
This command was introduced. |
Examples
This example shows how to shut down, or disable, a virtual Ethernet interface:
switch# configure terminal switch(config)# interface vethernet 10 switch(config-if)# shutdown switch(config-if)#
Related Commands
Command |
Description |
---|---|
show interface vethernet |
Displays the virtual Ethernet interface configuration information. |
system default switchport shutdown
To configure all Layer 2 switchports to be Layer 3 routed ports, use the system default switchport shutdown command. To reset to the default of all Layer 2 swithports, use the no form of this command.
system default switchport shutdown
no system default switchport shutdown
Syntax Description
This command has no arguments or keywords.
Command Default
The default is all ports configured as Layer 2 switchports.
Command Modes
Global configuration mode
Command History
Release |
Modification |
---|---|
5.2(1)N1(1) |
This command was introduced. |
Usage Guidelines
When the system default switchport shutdown command is issued, any switchports (including FEX HIFs) that are not configured with no shutdown command are shut down. To avoid the shutdown, configure the switchports with no shutdown command.
Examples
This example shows how to set all ports as Layer 3 routed ports:
switch# configure terminal switch(config)# system default switchport shutdown switch(config)#
This example shows how to reset all ports back to Layer 2 switchports:
switch# configure terminal switch(config)# system default switchport shutdown switch(config)#
Related Commands
Command |
Description |
---|---|
show interface |
Displays the interface configuration information. |