当配置接口时,出现报错,需要重置接口默认配置时使用如下命令清除配置
有些交换机是不支持该功能得,需要进入接口后,逐行删除原来得配置
第一种清除接口配置命令:这种经测试很多交换机路由不一定行
clear configuration interface GigabitEthernet 0/0/1 ##清空G1接口
第二种清除配置命令:这种比较靠谱,但在批量端口时,有的设备也不行
interface GigabitEthernet 0/0/1 clear configuration this ##在接口下清空
重置整机默认配置:
<huawei>reset saved-configuration ##清除原有配置文件 This will delete the configuration in the flash memory. The device configurations will be erased to reconfigure. Continue? (y/n)[n]:y Clear the configuration in the device successfully.
上述命令用于清除原有配置文件,如果你希望在重新启动后运行新得配置文件,在reboot命令前使用下面命令,否则重启后将恢复到出厂配置文件
<huawei>startup saved-configuration vrpcfg.cfg <huawei>reboot
评论列表