lunes, 16 de enero de 2017

Cómo conocer las IPs y las direcciones MAC de los equipos conectados a tu red en GNU/Linux

Este comando permite saber las IPs y las direcciones MAC de los equipos conectados a tu red. Es muy útil para conocer la IP exacta del Raspberry Pi:

user@linuxmint ~ $ sudo nmap -sP 192.168.1.1-254
[sudo] password for users: 

Starting Nmap 6.47 ( http://nmap.org ) at 2017-01-16 16:47 CET
Nmap scan report for 192.168.1.1
Host is up (0.0031s latency).
MAC Address: D0:0E:D9:2A:DF:D4 (Unknown)
Nmap scan report for 192.168.1.33
Host is up (0.10s latency).
MAC Address: C4:8E:8F:63:33:2B (Unknown)
Nmap scan report for 192.168.1.34
Host is up (0.00089s latency).
MAC Address: FC:AA:14:21:2B:B5 (Giga-byte Technology Co.)
Nmap scan report for 192.168.1.39
Host is up (0.00071s latency).
MAC Address: B8:27:EB:16:66:59 (Raspberry Pi Foundation)
Nmap scan report for 192.168.1.36
Host is up.
Nmap scan report for 192.168.1.37
Host is up.
Nmap done: 254 IP addresses (6 hosts up) scanned in 4.70 seconds
user@linuxmint ~ $