User-Profile-Image
hankin
  • 5
  • centos7
  • docker
  • mysql
  • PostgreSQL
  • git/gitlab
  • ELK
  • python
    • python-Tornado
    • python-django
  • redis
  • nginx
  • kvm
  • proxmox
  • mongo
  • kubernetes
  • prometheus
  • GlusterFs
  • nfs
  • freeswitch
  • httpd
  • shell脚本
  • linux
  • fastdfs
  • nextcloud
  • openssl
  • openvpn
  • rabbitmq
  • sqlite
  • svn
  • java
  • ubuntu
  • vue2
  • wordpress
  • php
  • IOT物联网
  • 项目
  • 故障处理
  • 树莓派
  • 博客存档
  • 未分类
  • 杂项
  • #1742(无标题)
  • 新视野
  • 分类
    • 项目
    • 树莓派
    • 杂项
    • 未分类
    • 新视野
    • 故障处理
    • 博客存档
    • 交换机
    • wordpress
    • vue2
    • ubuntu
    • svn
    • sqlite
    • shell脚本
    • redis
    • rabbitmq
    • python-django
    • python
    • proxmox
    • prometheus
    • PostgreSQL
    • php
    • openvpn
    • openssl
    • nginx
    • nfs
    • nextcloud
    • mysql
    • mongo
    • linux
    • kvm
    • kubernetes
    • java
    • IOT物联网
    • httpd
    • GlusterFs
    • git/gitlab
    • freeswitch
    • fastdfs
    • ELK
    • docker
    • centos7
  • 页面
    • #1742(无标题)
  • 友链
      请到[后台->主题设置->友情链接]中设置。
Help?

Please contact us on our email for need any support

Support
    首页   ›   交换机   ›   正文
交换机

2025-08-21 09:49:40
11  0 0

华为交换机参考链接https://info.support.huawei.com/hedex/api/pages/EDOC1100277650/AZM1016J/03/resources/command/yunshan/dc_User_Command_Reference_title.html

###

配置文件相关
    display saved-configuration 查看已保存的配置文件内容

    display current-configuration(显示当前运行配置)
        保存输出:将结果保存到文件
        display current-configuration > flash:config.txt

    命令  显示内容    是否影响运行
    display current-configuration   当前运行的配置 否
    display saved-configuration 已保存的启动配置    否
    save    无显示,保存当前配置到启动文件 是

display transceiver 是华为交换机上用于查看光模块/电口模块信息的重要诊断命令
    查看所有光模块信息:
        <Huawei> display transceiver
    查看指定接口的光模块:
        <Huawei> display transceiver interface GigabitEthernet 0/0/1
    查看详细信息(含光功率等):
        <Huawei> display transceiver verbose

一、基础信息查询

查看设备信息
    display version          # 查看系统版本、运行时间
    display device           # 查看设备硬件信息(槽位、模块)
    display clock            # 查看系统时间

查看配置
    display current-configuration  # 查看当前运行配置
    display saved-configuration    # 查看已保存的启动配置
    compare configuration         # 对比运行配置与启动配置差异

二、接口状态查询

接口基础信息
    display interface brief              # 查看所有接口简要状态(UP/DOWN)
    display interface GigabitEthernet0/0/1  # 查看指定接口详情(流量、错包等)

光模块信息
    display transceiver                  # 查看所有光模块信息
    display transceiver interface GigabitEthernet0/0/1 verbose  # 查看光功率、温度等

接口统计
    display counters error               # 查看接口错误包统计
    reset counters interface GigabitEthernet0/0/1  # 清除接口计数器

三、VLAN与MAC地址查询

VLAN相关
    display vlan                         # 查看所有VLAN信息
    display vlan 10                      # 查看指定VLAN的端口成员

MAC地址表
    display mac-address                  # 查看整个MAC地址表
    display mac-address vlan 10          # 查看指定VLAN的MAC地址
    display mac-address dynamic          # 查看动态学习的MAC地址
    #display arp                          # 查看ARP表,三层交换机

四、路由与IP信息

路由表
    display ip routing-table            # 查看IPv4路由表
    display ipv6 routing-table          # 查看IPv6路由表

ARP表
    display arp                         # 查看ARP表,三层交换机
    display arp interface Vlanif10      # 查看指定接口的ARP

五、安全与ACL查询

ACL规则
    display acl all                     # 查看所有ACL规则

用户登录信息
    display users                       # 查看当前登录用户
    display ssh session                 # 查看SSH会话

六、日志与诊断

系统日志
    display logbuffer                   # 查看缓存日志
    display trapbuffer                  # 查看告警信息

CPU/内存状态
    display cpu-usage                   # 查看CPU利用率
    display memory-usage               # 查看内存占用

诊断工具
    ping 192.168.1.1                   # 测试连通性
    tracert 192.168.1.1                # 跟踪路径

七、其他实用命令

查看端口隔离/STP状态
    display port-isolate                # 查看端口隔离组
    display stp brief                   # 查看生成树状态

查看LLDP邻居
    display lldp neighbor              # 查看连接的邻居设备
使用技巧

过滤输出:用 | 管道符结合 include/exclude 筛选关键信息
    display interface brief | include UP  # 只显示UP的接口
评论 (0)

点击这里取消回复。

欢迎您 游客  

Copyright © 2025 网站备案号 : 蜀ICP备2022017747号
smarty_hankin 主题. Designed by hankin
主页
页面
  • #1742(无标题)
博主
tang.show
tang.show 管理员
linux、centos、docker 、k8s、mysql等技术相关的总结文档
213 文章 2 评论 201732 浏览
测试
测试