Cisco交換機IP與MAC地址查詢對應埠
阿新 • • 發佈:2018-11-14
交換機:Cisco 2960\Cisco 3560
1、檢視IP對應交換機介面MAC地址
Switch_master#show arp | include 10.0.3.85 Internet 10.0.3.85 0 94de.80ff.c61a ARPA Vlan30
2、通過MAC地址檢視對應交換機埠
Switch_master#show mac address-table dynamic address 94de.80ff.c6aa Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 30 94de.80ff.c61a DYNAMIC Gi1/0/3 Total Mac Addresses for this criterion: 1
3、通過介面檢視對應的裝置
Switch_master#show cdp neighbors gigabitEthernet 1/0/3 Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay Device ID Local Intrfce Holdtme Capability Platform Port ID switch_slave Gig 1/0/3 140 S I WS-C3750X Gig 1/0/1 Total cdp entries displayed : 1
#對應介面為Cisco交換機,繼續登陸交換機查詢
switch_slave#show mac address-table dynamic address 94de.80ff.c6aa Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 30 94de.80ff.c61a DYNAMIC Gi1/0/11 Total Mac Addresses for this criterion: 1
#先檢視對應埠下活動的MAC地址,來判斷介面下的活躍的裝置
switch_slave#show mac address-table dynamic interface gigabitEthernet 1/0/11 Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 30 94de.80ff.c61a DYNAMIC Gi1/0/11 Total Mac Addresses for this criterion: 1
4、通過交換機埠檢視對應介面裝置IP
#檢視介面對接裝置的mac地址
switch_slave#show mac address-table dynamic interface gigabitEthernet 1/0/11 Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 30 94de.80ff.c61a DYNAMIC Gi1/0/11
#通過mac地址檢視你對應裝置IP
switch_slave#show arp | include 94de.80ff.c6aa Internet 10.0.3.85 0 94de.80ff.c61a ARPA Vlan30