If the switches are all connected together, you may find the MAC address on a port which connects to a different switch, and you would then need to move to the switch on the connection and repeat the process until you find a host port. To get your public IP address from the Mac Terminal. For Wi-Fi connections, enter the command ipconfig getifaddr en0. For Ethernet connections, enter the command ipconfig getifaddr en1. You’ll likely find it in the Utilities subfolder of the Applications folder. Then, if your switch models have commands to do this, display the MAC address table of each switch to discover to which port the MAC address is connected. How to find your local IP address using the MacOS Terminal. You can ARP with the IP address to discover the MAC address. You need to relate the IP address to the MAC address. A switch doesn't strip off the frame to look at the IP headers (router do that). IP is a layer-3 protocol, and IP addresses are in the packet headers, which are encapsulated inside the ethernet frame. A switch will create and maintain a MAC address table, which relates each MAC address with the port to which the device with that MAC address is connected. ![]() Switches are layer-2 devices, and the ethernet headers contain MAC addresses. Switches will know the MAC addresses, but not the IP addresses.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |