1, if know 192.168.1.100 host address, how to view the port of the host connection switch
For use on core switches: show ARP | In 192.168.1.100
Internet 192.168.1.100-8480.2D0D.1CCC ARPA Vlan1
Know the MAC address of the 192.168.1.100 host through the above
2. Use: Test#show mac address-table Address 8480.2D0D.1CCC
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
8480.2D0D.1CCC DYNAMIC GI1/0/48
The above can be known that the host address is from the G1/0/48 interface learning from;
3. Use: Show CDP neighbors/detail to view the connection of local G1/0/48 interface;
Test#show CDP Neighbors (IP address of peer-to-peer device can be seen through detail)
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
LAB Gig 0/47 148 S I ws-c3750g Gig 2/0/2
4, check the connection to the specific device, log in to use this device:
Lab#show mac address-table Address 8480.2D0D.1CCC
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
8480.2D0D.1CCC DYNAMIC GI1/0/9
Thus learned that the 192.168.1.100 host is connected to the G1/0/9 port of the Switch lab;
View specific connected physical ports by IP address (CISCO)