Cisco switches useful commands

发布时间 2023-07-27 10:48:04作者: Expl

useful show commands 34

COMMAND

DESC

sh log

Will show the log

sh run

Will show the switch config

sh run int g0/1

Will show the config for g0/1

sh int status

Will show all interfaces status

sh mac address-table

Will show mac address table

sh ip arp

Will show ARP table

sh cdp neighbors

Print Cisco connected devices

 

 

 

 

 

 

 

 

 

 

 

 

然后是知道某电脑的IP,怎么查其接的交换机哪个口?

1、首先查ARP表中该IP对应的mac

sh ip arp | inc 24.62

2、然后根据得到的mac在mac地址表里查对应的端口

sh mac address-table | inc e78d