华为交换机如何批量清除接口配置信息

环境:

华为S5735S-S24T4S-A
Software Version V200R019C10SPC500

问题描述:

华为交换机如何批量清除接口配置信息

解决方案:

1.单接口下清除

系统试图下

<Huawei>sy

[Huawei]clear configuration interface GigabitEthernet 0/0/1(清除0/0/1口配置)

Warning: All configurations of the interface will be cleared, and its state will
be shutdown. Continue? [Y/N] :y

[Huawei]int GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]dis this
shutdown
因清除接口下的配置后为shuadown (关闭)状态
[Huawei-GigabitEthernet0/0/1]undo shutdown 开启接口

#
return

接口下

[HW1730s-GigabitEthernet0/0/49]clear configuration this 
Warning: All configurations of the interface GigabitEthernet0/0/49 will be cleared, and its state will be shutdown. Continue? [Y/N] :y.
Info: Total 2 command(s) executed, 2 successful, 0 failed.
[HW1730s-GigabitEthernet0/0/49]
May 21 2022 01:27:30 HW1730s DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.56813.5.25.191.3.1 configurations have been changed. The current change number is 19, the change loop count is 0, and the maximum number of records is 4095.
[HW1730s-GigabitEthernet0/0/49]dis th
#
interface GigabitEthernet0/0/49
 shutdown
#

2.多接口统一清除

先建端口组,将端口批量加入端口组
[HUAWE]port-group 1
[HUAWEI-port-group-1]group-member GigabitEthernet0/0/3 to G0/0/6

在端口组下undo现有配置即可
[HUAWEI-port-group-1]undo p l 
[HUAWEI-port-group-1]undo p d
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

玩人工智能的辣条哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值