enable mode
#show mac address-table | include 0026.ab 2 0026.ab9f.99d2 dynamic ip,ipx,assigned,other GigabitEthernet2/5 |
vlan mac address type protocols port
顯示目前該switch看得到的開頭為00:26:ab的mac(注意格式為xxxx.xxxx.xxxx),最前面顯示是哪個vlan,最後會顯示從那個port來的。
#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge Device ID Local Intrfce Holdtme Capability Platform Port ID |
顯示目前該switch經cdp協定看得到所接連的cisco switch.
#show cdp neighbors detail |
亦可加detail得知更詳細資訊,如:各divce IP。