Results 1 to 10 of 11
I have a few servers on my network, and I was wondering if there was a way to "find" them (by IP).
I basically dont want to have to hook ...
- 04-21-2005 #1Just Joined!
- Join Date
- Aug 2004
- Location
- SLC, UT
- Posts
- 67
Finding the IPs of other machines on my network
I have a few servers on my network, and I was wondering if there was a way to "find" them (by IP).
I basically dont want to have to hook up my monitor to remember what the IP is.
BTW - I am doing this from command (terminal)
Thanks!
- 04-21-2005 #2Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
How about this:
Code:root@insitt:~# nmap -sP 198.162.0.* Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-04-21 13:36 ART Host insitt (198.162.0.1) appears to be up. Host serzb0x (198.162.0.2) appears to be up. MAC Address: 00:0C:6E:49:3A:05 (Asustek Computer) Host zeol (198.162.0.3) appears to be up. MAC Address: 00:80:AD:05:42:CD (Cnet Technology) Host daniel (198.162.0.8) appears to be up. MAC Address: 00:0E:A6:B6:98:CD (Asustek Computer) Nmap finished: 256 IP addresses (4 hosts up) scanned in 8.991 seconds
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
- 04-21-2005 #3
i knew bout that command. and have used it myself in future.... but how do u get it to show the host names?? I have never worked out why it doesn't!
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 04-21-2005 #4Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
You have to add them to your /etc/hosts file.
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
- 04-21-2005 #5
well, i dont have the ip of all the computers on the network, but it doesn't show the ones that i do have in that file :s
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 04-21-2005 #6Linux Newbie
- Join Date
- Sep 2003
- Location
- St.Charles, Missouri, USA
- Posts
- 201
ping -b <a>.[b].<c>.255
Powered by Gentoo
never ever ever use the hardened option in make.conf!
- 04-21-2005 #7Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
How are you running the command and how does your /etc/hosts file look like?
Originally Posted by sdousley
nmap will "ping scan" what you tell it, if in the scan there's an ip that matches with an ip in /etc/hosts then it will show its hostname near its ip.
Do I explain myself?
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
- 04-22-2005 #8Linux User
- Join Date
- Oct 2004
- Location
- Serbia&Montenegro
- Posts
- 281
Nmap is probably the best way to do this. I tried that myself.
Linux registered user #358842
Human knowledge belongs to the world.
- 04-22-2005 #9
my /etc/hosts:
and when i run nmap -sP 192.168.0.0/24 i get:Code:127.0.0.1 localhost 192.168.2.9 homer 192.168.0.1 jebediah
See it doesn't show the ip for homer? (the computer i'm running it from)Code:homer root # nmap -sP 192.168.0.0/24 Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-04-22 13:34 BST Host jebediah (192.168.0.1) appears to be up. MAC Address: 00:01:02:0C:CF:02 (3com) Host 192.168.0.4 appears to be up. MAC Address: 00:40:D0:47:9E:FA (Mitac International) Host 192.168.0.9 appears to be up. Nmap run completed -- 256 IP addresses (3 hosts up) scanned in 5.753 seconds homer root #
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 04-22-2005 #10Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
In your /etc/hosts file, It's 192.168.0.9, not 192.168.2.9.
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"


Reply With Quote
