【交换机】华三交换机基本命令

您所在的位置:网站首页 华三show命令 【交换机】华三交换机基本命令

【交换机】华三交换机基本命令

2024-07-09 11:53| 来源: 网络整理| 查看: 265

华三官方文档: https://www.h3c.com/cn/d_202307/1898567_30005_0.htm#_Toc141097816

 

1.dis interface brief (V5及以上版本) dis brief interface (V3版本) //查看交换机所有端口的信息

2.dis cu //查看交换机配置(全局; 指定端口:dis cu int g1/0/11; 指定vlan:dis cu int vlan)

3.dis ip interface brief //查看vlan接口IP

4.dis arp interface g1/0/1 //查看g1/0/1口的arp表

   dis arp 192.168.0.2 //查看与192.168.0.2相关arp内容:mac地址以及端口

   dis arp | in [ip地址] //查看对应IP的mac地址()

5.dis mac-add interface g1/0/1 //查看g1/0/1口mac地址表

6.dis log //查看交换机日志

7.dis this //端口视图下查看某端口配置情况

8.dis link-aggregation verbose //查看链路聚会概况

9.dis version //查看交换机系统版本

10.dis transceiver diagnosis interface GigabitEthernet 1/0/3 //查看g1/0/3光口光收发情况

11. dis ip routing-table //查看路由表 (查看某个IP的路由: dis ip routing-table xxx.xxx.xxx.xxx)12. dis arp vlan 1 //显示所有Vlan 1 中电脑的 IP+MAC+端口

13. Interface Vlan-interface 101 // 进入Vlanif 101接口

14. display mac-address //查看mac地址表(二层转发通过mac地址表)

15. [H3C-vlan2]port Ethernet 0/4 to Ethernet0/7 //将4到7号端口加入到VLAN2中,此命令只能用来加access端口,不能用来增加trunk或者hybrid端口

16. [H3C-vlan2]port-isolate enable //打开VLAN内端口隔离特性,不能二层转发,**默认不启用该功能**

17. 查看单个端口的状态:

  https://jingyan.baidu.com/article/574c52197882bf6c8c9dc155.html

18. 交换机的G口、F口、E口、S口详解:

  https://zhuanlan.zhihu.com/p/657741086?utm_id=0

19. 查看交换机传输速率等信息:

  https://blog.csdn.net/weixin_42672685/article/details/131392484

20. display current-configuration //查看所有配置信息

  display this //查看当前路径下的设备信息

21. dis ip int brief //查看IP配置

22. dis cu int b3 //查看接口配置

23. dis cur | in 0.0.0.0 //查看默认路由

24. interface range g1/0/1 to g1/0/5 //批量配置端口(可以给范围命名)

25. dis mac-address  //通过mac地址查询在哪个端口

  display mac-address interface //根据交换机端口查对端设备MAC地址(例:dis mac-address interface g1/0/40)

  display mac-address | include //模糊查询。为端口、MAC地址的一部分(例:dis mac address-table | include 1/0/40)

26. [H3C] lldp enable //针对25.不确定是否开启请手动开启这个服务

27. port trunk permit vlan 

  port trunk permit vlan { vlan-id-list | all } //命令用来允许指定的VLAN通过当前Trunk端口。

  undo port trunk permit vlan { vlan-id-list | all } //命令用来禁止指定的VLAN通过当前Trunk端口。

28. display port { hybrid | trunk } //查看设备上存在的Hybrid或Trunk端口(并且有哪些端口可以通过)。

29. interface range name name1 [ interface interface-list ] //批量绑定端口,并赋予别名(例(要加1-5口 7口  9口):int range name NetworkAccess int g1/0/1 to g1/0/5 g1/0/7 g1/0/9)

30. undo interface range name name1 //取消接口绑定,删除接口别名

31. display interface range //查看绑定了哪些接口 32. Interface range name NetworkAccess //进入到已命名的range范围中 33.  

摘自:

  https://blog.csdn.net/qq_36598393/article/details/132054279

  https://zhuanlan.zhihu.com/p/620523974?utm_id=0

  https://jingyan.baidu.com/article/574c52197882bf6c8c9dc155.html

  https://zhuanlan.zhihu.com/p/657741086?utm_id=0



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3