< Home

clear configuration interface

Function

Using the clear configuration interface command, you can perform one-touch configuration clearance on an interface.

Format

clear configuration interface interface-type interface-number

Parameters

Parameter Description Value
interface-type interface-number Indicates the type and number of the interface where one-touch configuration clearance is performed. At present, the tunnel and stack-port interfaces are not supported.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To configure an interface on a device for other use, original configurations on the interface need to be deleted one by one. If the interface has a large number of configurations, deleting these configurations one-by-one takes a long time and increases the maintenance workload. To reduce the maintenance workload and simplify the deletion operation, you can use this command to perform one-touch configuration clearance on an interface.

You can also run the clear configuration this command in the system view to delete configurations on a specified interface.

The one-touch configuration clearance function cannot delete the combo-port command on an interface.

Configuration Impact

After this command is run, all configurations on an interface will be cleared. The status of the interface is shutdown.

Precautions

The execution of this command takes a long time. To terminate the running command, press Ctrl+C.

In general, after the clear configuration this command is run on an interface to clear the configuration, the default configuration is restored. If special configurations exist on the interface on which the clear configuration this command is run, the configuration may be displayed in the undo command format.

Example

# Perform one-touch configuration clearance on GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] display this
#
interface GigabitEthernet0/0/1
 port link-type hybrid
 port hybrid pvid vlan 50
#
return
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] clear configuration interface gigabitethernet 0/0/1
Warning: All configurations of the interface will be cleared, and its state will
 be shutdown. Continue? [Y/N] :y...
Info: Total execute 2 command(s), 2 successful, 0 failed. 
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] display this
#
interface GigabitEthernet0/0/1
 shutdown
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >