< Home

shutdown (interface view)

Function

The shutdown command shuts down the current interface.

The undo shutdown command enables the interface.

Format

shutdown

undo shutdown

Parameters

None

Views

Ethernet interface view, Ethernet sub-interface view, Layer-2 Ethernet interface view, Layer-2 Ethernet sub-interface view, Eth-Trunk interface view, Layer-2 Eth-Trunk interface view, Eth-Trunk sub-interface view, Layer-2 Eth-Trunk sub-interface view, VLANIF interface view, Tunnel interface view, Dialer interface view, Management interface view

Default Level

2: Configuration level

Usage Guidelines

By default, when the device is powered on, physical interfaces are initialized and started.

The shutdown command must be used carefully. In some special cases, such as changing parameters of an interface, the configuration cannot take effect until the interface is restarted.

The shutdown, undo shutdown, and restart commands are not supported in the view of certain logical interfaces, such as NULL interfaces.

When a physical interface of the device is idle, that is, it is not connected to a cable, use the shutdown command to disable this interface, in case that disturbance may cause interface abnormality.

Example

# Disable GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] shutdown

# Enable GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] undo shutdown
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >