Usando o nmap , você pode ver máquinas que estão ativas e retornará os dois nomes de host (se encontrados) e endereços IP:
Por exemplo, se sua rede for 192.168.1.X, use:
nmap -sP 192.168.1.0/24
ou se for 192.168.0.X:
nmap -sP 192.168.0.0/24
Exemplo de saída:
Host somedummyhost (192.168.1.22) is up (0.0040s latency).
Host atinylaptop (192.168.1.32) is up (0.013s latency).
Host 192.168.1.44 is up (0.00019s latency).
Host 192.168.1.58 is up (0.020s latency).
Host 192.168.1.70 is up (0.018s latency).
Nmap done: 256 IP addresses (5 hosts up) scanned in 11.63 seconds