#!/bin/bashįor dest in `arp -a | tail +5 | awk '' Note that these will all be local (same LAN) addresses since any connections for outside the local network will just go through the default router. The following script prints just the destination addresses (IP addresses or names) for which MAC addresses have been cached. address at the top of the list, for example, indicates that is a Cisco device. Using a tool like the one at, you can determine the manufacturer of each of the network interfaces listed. The netmasks are all 255.255.255.255 since all the references are host-specific. The network interface (there may be more than one) and each host the system is reaching through that interface and its physical address is listed. Other addresses may be static as well as the one indicated above, but these entries were picked up as a response to network traffic, not statically added to the table through a deliberate arp -s command. ![]() ![]() P = publish (i.e., explicitly added by an arp -s command) In this display, the following flags have been used: S = static
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |