课程: Linux System Engineer: Networking and SSH

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Analyze ARP table with arp and ip

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.

内容