Several ways to check the IP address of raspberry pie

Method 1: get raspberry pie IP through ARP scan

Environment: computer and raspberry pie link in the same network; ARP protocol is a data link layer protocol, responsible for the conversion of IP address and MAC address.

ARP scan tool can scan all IP addresses of LAN;

To install ARP scan:

mac os
brew install arp-scanUbuntu
sudo apt-get arp-scan

Scan Ethernet IP address:

arp-scan --interface en0 --localnet 

Here, en0 is the device name of the network card, which can be obtained by ifconfig command. When there are multiple network cards, be careful not to write them wrongly;
when there are multiple network cards, en0 is the device name of the network card

The MAC address of raspberry pie usually starts with B8, so I matched B8. My implementation results are shown in the figure

Read More: