You are not logged in.
Is there a handy terminal command that can show this data for me? Iptraf can show hardward addresses, but I am looking for IPs
Offline
Most ISPs have a web interface for this. I.E, I use "gateway.2wire.net" to manage my firewall settings and such (well, that one anyway).
Unless you need to use the command output. Then I don't know offhand what you can use.
Offline
$ nmap 192.168.1.0/24
Starting Nmap 5.21 ( http://nmap.org ) at 2010-10-14 22:09 ART
Nmap scan report for 192.168.1.1
Host is up (0.0075s latency).
Not shown: 995 filtered ports
PORT STATE SERVICE
20/tcp closed ftp-data
21/tcp closed ftp
23/tcp closed telnet
80/tcp open http
113/tcp closed auth
Nmap scan report for 192.168.1.2
Host is up (0.00056s latency).
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
2049/tcp open nfs
3306/tcp open mysql
Nmap done: 256 IP addresses (2 hosts up) scanned in 11.51 seconds
This is quite handy
Offline
That does look handy. Although my running that command turns up no hosts... Am I doing something wrong?
Offline
You just need the correct network/netmask.
Try these instead:
ip neigh
arp -a
ping -b 192.168.0.255
You can fill out /etc/hosts to translate hostnames <--> IPs.
Offline
This is what I do:
$ ifconfig wlan0|grep inet
inet addr:192.168.0.198 Bcast:192.168.0.255 Mask:255.255.255.0
Where wlan0 is the interface that I am currently using. If you use ethernet it is probably eth0.
Edit: I now see that computers was written in plural. I apologize if this is of no interest.
Last edited by Nichollan (2010-10-15 07:20:36)
Offline
nmap -sP -n 192.168.0.0/24|grep ^Host
Does this job for me
Offline
Interestingly, no luck yet
arp -a
? (10.0.1.1) at (address) on wlan0
Could all computers share the same ip?
ping -b 192.168.0.255
239 packets transmitted, 0 received 100% packet loss
ip neigh
10.0.1.1 dev wlan0 lladdr ............ STALE
nmap -sP -n 192.168.0.0/24|grep ^Host
Nothing(I wrote this, it was blank)
Last edited by duke11235 (2010-10-16 01:46:18)
Offline
You need to read and learn about basic networking first.
As I said before, you have to provide the correct network, you can't just cut and paste.
The arp cache is flushed after each reboot. You won't have any entries other than your gateway if the other hosts aren't up or you haven't connected/pinged them during the current session.
Offline
If your router assigns LAN IPs, then it probably has a list somewhere on its web interface.
Offline
Hi,
The routine I always do is:
arp -a
This shows every host that has contacted your PC - if you want to fully know every PC on the LAN, it would help to have documented the thing beforehand...
But, I do follow fphilips fully, try to get a grip of the thing before you try exotic stuff, read this to get you rolling:
http://www.comptechdoc.org/independent/ … ing/guide/
Wellness
Thor
Offline