华为交换机常用查询命令

时间:2021-02-04 11:51:55   收藏:0   阅读:0

<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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!