华为交换机常用查询命令


<YZ-SW3>display interface Ethernet brief 显示接口的运行状态和相关信息

<YZ-SW3>display interface description 显示接口的描述信息

<YZ-SW3>display interface brief 显示接口状态和配置的简要信息

<YZ-SW3>display ip interface brief 显示接口与IP相关的简要信息

<YZ-SW3>display ip interface description 显示接口与IP相关的简要信息

<YZ-SW3>display interface 显示接口的统计信息

<YZ-SW3>display counters 查看接口流量的统计数据

<YZ-SW3>display counters error 查看错误报文的统计信息

<YZ-SW3>display counters rate 查看接口的入方向或出方向流量速率

<YZ-SW3>display ip interface 查看接口和IP配置的相关信息

查询所有配置
display current-configuration interface   
查看逻辑接口ip地址配置概况:
display ip interface brief
查看所有接口概要信息
display interface brief
查看指定接口配置,例如g0/0/1:
display current-configuration interface g0/0/1
进入到指定接口下,再查看指定接口配置,例如g0/0/1:
interface g0/0/1
display this
如果交换机上配置了stp协议,可以查看接口角色等信息:
display stp brief
如果交换机上配置了vrrp协议,可以查看接口状态等信息:
display vrrp brief
查看哪些接口被划分到了哪个vlan:
display vlan
查看路由表,可以看到接口ip、路由等信息:
display ip routing-table


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM