华为交换机端口恢复默认配置的命令是:
clear config interface 接口号。
在系统视图下执行clea rconfiguration interface即可,举例如下:
[Quidway] clear configuration interface gigabitethernet 1/0/1
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue?
[Y/N] :y... Info: Total execute 5 command(s), 5 successful, 0 failed.
——这里会提示总共清除了接口下的5条配置
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
shutdown
——需要注意,执行完命令后,接口会被shutdown,配置的时候注意手动通过undo shutdown打开
#
在交换机的V200R001C00SPC300与VI00R006C03开始支持的,一键清除接口配置,从此再也不用一条条去清理了。