In the middle of a Cisco switching network, how do I find out which port of the switch is connected to the IP address of a machine? The most convenient and quick way is to use the User tracking function of the CiscoWorks 2000 LMS network management software. The graphical interface is clear at a glance.
If you do not have this software, you can use the following manual analysis method to find the answer.
Example network: the core switch is 6509 switch engine SE using CatOS, MSFC running IOS software)
1. Find the MAC address corresponding to the IP Address:
You can view the ARP cache table of the system to find the MAC address corresponding to an IP address. Because ARP cannot be performed across VLANs, MSFC, the routing module connecting to each VLAN, is the best choice-generally, it has a port interface VLAN n in each VLAN ), correct ARP interpretation.
6509MSFC#ping 10.10.1.65 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.1.65, timeout is 2 seconds: Success rate is 100 percent 5/5), round-trip min/avg/max = 1/1/4 ms 6509MSFC#show arp | in 10.10.1.65 Internet 10.10.1.65 2 0006.2973.121d ARPA Vlan2 |
Through the above command, we know that the MAC address of 10.10.1.65 is 0006.2973.121d, which is the MAC address expression of IOS devices. In CatOS, it should be written as 00-06-29-73-12-1d.
2. Find the port corresponding to the MAC address on the vswitch
6509SE> enable) show cam 00-06-29-73-12-1d * = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry. X = Port Security Entry $ = Dot1x Security Entry VLAN Dest MAC/Route Des [CoS] Destination Ports or VCs / [Protocol Type] |