CISCO設備維護常用命令

 網絡維護中,如果要將某個用戶所在接口重新劃分VLAN,知道某個用戶的IP地址,現在要查出用戶所用接口,如下:

1、cisco-6506#show ip arp | include 172.16.16.27

Internet  172.16.16.27            0   e89a.8f6d.b8ed  ARPA   Vlan16  **這裏就會是顯示IP 地址對應的電腦的MAC地址e89a.8f6d.b8ae

2、cisco-6506#show mac-address-table dynamic address e89a.8f6d.b8ed

Legend: * - primary entry

        age - seconds since last seen

        n/a - not available

 

  vlan   mac address     type    learn     age              ports

------+----------------+--------+-----+----------+--------------------------

Supervisor:

*   16  e89a.8f6d.b8ed   dynamic  Yes          0   Gi3/3

*****這裏就表示接口在GI3/3,或連接GI3/3這個接口的交換機上

3、cisco-6506#show cdp neighbors GI3/3 detail ***通過這個命令查找與GI3/3接口相連接的交換機詳細信息,然後登錄上去同樣的方法就可以查到IP對應的交換機接口了。例如:

4、cisco-2#show mac-address-table dynamic address e89a.7c6d.b8ae

          Mac Address Table

-------------------------------------------

 

Vlan    Mac Address       Type        Ports

----    -----------       --------    -----

沒有是顯示出端口號,那麼說明還在下層交換機

5、cisco-2#show cdp neighbors g0/1 detail 

根據顯示的詳細信息再登錄下一層交換機,依據上面的方法再查看,直到找到爲止。

 

 

 

 

  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章