暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

如何批量清除一个接口的所有配置

DevOps架构实战 2021-01-08
2198

只需要在接口视图下执行clear configuration this命令就可以一键清除接口下的配置啦

[tmall] interface gigabitethernet 0/0/1


[tmall-GigabitEthernet0/0/1] display this


interface GigabitEthernet0/0/1


description switch-A

port link-type access

#

return

[tmall-GigabitEthernet0/0/1] clear configuration this 清除接口下所有配置,恢复到缺省值

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

Info: Total 2 command(s) executed, 2 successful, 0 failed.

[tmall-GigabitEthernet0/0/1] display this

#

interface GigabitEthernet0/0/1

shutdown / 清除接口下所有配置后,接口将处于关闭状态


文章转载自DevOps架构实战,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论