<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