Current location - Quotes Website - Collection of slogans - How to check the port by MAC address
How to check the port by MAC address
1. Enter enable to enter the privileged mode of the switch.

2. Check the ARP cache and enter part or all of the IP address you are looking for. If the IP address you are looking for contains 65. 158, you can enter the following command: show arp | include 65. 158, and you can get the following results. And know that the corresponding MAC address is 0021.85c6.cdef.

3. Continue to enter the following contents in privileged mode: show MAC-address-table | include cdef. Cdef is a part of 0021.85c6.cdef. Of course, you can enter it in more detail. In the result, we can see that the corresponding port number is Gi 1/6.

4. Enter show CDP neighbors gi 1/6 detail to view neighbor devices connected to gi1/6. From the results, we can see that the switch with the neighbor device of 3560 has the corresponding management IP of10.11.

5. Enter the privileged mode of the switch through 10.60.11,and enter show MAC-address-table | include cdef, where cdef is a part of the MAC address. In the result, you can see that the terminal IP is10. After successfully finding the switch and the port number where the switch is located, it can be maintained.