From the course: Linux System Engineer: Networking and SSH

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Analyze ARP table with arp and ip

Analyze ARP table with arp and ip

From the course: Linux System Engineer: Networking and SSH

Start my 1-month free trial

Analyze ARP table with arp and ip

- [Instructor] The Address Resolution Protocol, or ARP, is a protocol responsible for resolving IP addresses to MAC addresses. Each network device contains a cache of known MAC and IP address mappings. This cache is called the ARP Cache. The legacy command to see this cache is called arp and is part of the net-tools package. Be sure to have net-tools installed before trying to run it. In a terminal, type in arp and hit Enter. This shows the MAC address, IP address, and network card for all hosts that your computer currently knows about on the local network. These entries will expire once the timeout is met. This is to keep stale entries from messing up our network communications. We can also use the newer ip command to get the same information. Continuing our trend of having overly complicated commands replace simple ones, let's type ip -s neighbor list, and hit enter. The -s switch is for status, and neighbor shows the ARP table.

Contents