From the course: Linux System Engineer: Networking and SSH
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Analyze ARP table with arp and ip
From the course: Linux System Engineer: Networking and SSH
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.