Raspberry Pi: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Network == === Detect all Raspberry Pi on local network === From [http://raspberrypi.stackexchange.com/questions/13936/find-raspberry-pi-address-on-local-network]. <source...")
 
Line 4: Line 4:
<source lang=bash>
<source lang=bash>
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
</source>
where <code>192.168.1.*</code> will be your local network mask.

We can also simply look for string <code>Raspberry</code> since <code>nmap</code> correctly identifies pi mac address:

<source lang=bash>
sudo nmap -sP 192.168.1.0/24 | grep -B2 Raspberry
</source>
</source>
where <code>192.168.1.*</code> will be your local network mask.
where <code>192.168.1.*</code> will be your local network mask.

Revision as of 05:24, 27 April 2015

Network

Detect all Raspberry Pi on local network

From [1].

sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'

where 192.168.1.* will be your local network mask.

We can also simply look for string Raspberry since nmap correctly identifies pi mac address:

sudo nmap -sP 192.168.1.0/24 | grep -B2 Raspberry

where 192.168.1.* will be your local network mask.