0评论2023-12-056127
0评论2023-12-051985
华为交换机端口恢复默认配置的命令是:
clear config interface 接口号。
在系统视图下执行clea rconfiguration interface即可,举例如下:
[Quidway] clear configuration interface gigabitethernet 101
Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue?
[YN] :y... Info: Total execute 5 command(s), 5 successful, 0 failed.
——这里会提示总共清除了接口下的5条配置
[Quidway] interface gigabitethernet 101
[Quidway-GigabitEthernet101] display this
#
interface GigabitEthernet101shutdown
——需要注意,执行完命令后,接口会被shutdown,配置的时候注意手动通过undo shutdown打开
#
在交换机的V200R001C00SPC300与VI00R006C03开始支持的,一键清除接口配置,从此再也不用一条条去清理了。
[switch]interface g001 如果是33系列以下,则是interface ethernet001
[switch-interface g001]display this 查看当前端口类型,是access,hybrid还是trunk,如果查不到,就说明它是默认端口类型,S23amp;33amp;53系列的交换机默认端口类型是hybird
如果接口有类似:
1. port link-type access 或者 port default vlan 2 vlan 2是示例
删除办法:undo port default vlan 2
2. port link type hybird 或者 port hybrid tagged vlan 2 5 或者port hybrid untagged vlan 3 6等
删除办法:undo port hybrid tagged vlan 2 5 或者undo port hybrid untagged vlan 3 6
3. port link type trunk 或者 port trunk alloc-pass vlan 2 4 6 等
删除办法:undo port trunk alloc-pass vlan 2 4 6
评论
0收藏
点赞