In windows, I can use netview to see all the computers on the LAN network, but what's the corresponding command on linux?
3 Answers
yes you can.
open your terminal and type as who -a . that will list all information .
else you can use nmap also . great network tool.
you can get it by sudo apt-get install nmap
if you assume you IP starts from
192.168.1.1 then you can list all Computers connected with the LAN with this command
nmap 192.168.1.1-255 The above command will scan from 192.168.1.1 to 192.168.1.255 IP's and list you which is up and which is down .
1You can type
arp -a
commandin terminal to see computers on Lan.
1net view on Windows is used for Active Directory. You can emulate this with Samba.
Use:
$ sudo apt-get install sambaThis will install net commands that you can use to join the Windows domain, such as:
$ net help join
Usage:
net rpc join -U <username>[%%password] <type> Join a domain username Name of the admin user password Password of the admin user, will prompt if not specified type Can be one of the following: MEMBER Join as member server (default) BDC Join as BDC PDC Join as PDCYou can also use arp-scan, found here, if you're only looking to discover hosts on the network.