华为6730交换机恢复接口默认配置

当前接口配置如下:

复制代码
[Huawei-6730]display curr int xg 2/0/15
interface XGigabitEthernet2/0/15
 description ISP-ChinaTelecom
 port link-type access
 port default vlan 301
 stp bpdu-filter enable
 stp edged-port enable

2 恢复接口默认配置

需要在system-view下面执行命令

clear configuration interface <接口编号>

执行命令后,会询问是否继续,输入Y回车

复制代码
<Huawei-6730>sys
Enter system view, return user view with Ctrl+Z.
[Huawei-6730] clear configuration interface XGigabitEthernet 2/0/15
Warning: All configurations of the interface XGigabitEthernet2/0/15 will be cleared, and its state will be shutdown. Continue? [Y/N] :Y.

3 确认接口配置已经恢复

复制代码
[Huawei-6730]dis curr int xg 2/0/15
#
interface XGigabitEthernet2/0/15
 shutdown
#

执行命令后端口将被shutdown,需要在接口视图下配置命令undo shutdown,开启接口。

华为链接
https://support.huawei.com/enterprise/zh/knowledge/EKB1000067915