Finding addresses

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
Jim Isbell
Posts: 96
Joined: Mon 05 Nov 2007, 16:47

Finding addresses

#1 Post by Jim Isbell »

I have a 4 port router that is connected to my Cable modem. Connected to the four ports are two linux boxes running Puppy 4.1.2, one XP box, and one wireless transciever.

Earlier today we had a power failure. For some strange reason the addresses were scrambled after the power failure. The XP box, which had been at 192.168.1.103 was found at 192.168.1.101 I had to do a complete re setup of the LAN

I would like to find some software that I could invoke that could search and reveal ALL the devices connected to the router and return their addresses.

jamesjeffries2
Posts: 196
Joined: Mon 28 Apr 2008, 00:50

#2 Post by jamesjeffries2 »

install nmap from this thread: http://www.murga-linux.com/puppy/viewto ... b4c22524ca

then use this command:

nmap -sP 192.168.1.0/24

it shoudl list all the pingable nodes on your network

Jim Isbell
Posts: 96
Joined: Mon 05 Nov 2007, 16:47

#3 Post by Jim Isbell »

That worked perfectly.

Thanks for the link and information.

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#4 Post by trapster »

We lose power every once in a while here.
I have dsl with a Linksys wrt54g wireless router. We use a wireless HP6180 Photosmart Printer, 3 laptops and my puppy music server.
To find all the addresses after the router reassigns them, I use this (named "router") in a console:

Code: Select all

#!/bin/sh

wget --user=whatever --password=whatever 'http://192.168.1.1/DHCPTable.asp' 
grep -m 10 192 DHCPTable.asp | sed 's/<.*>//g'
results:

Code: Select all

 # router
--18:07:17--  http://192.168.1.1/DHCPTable.asp
           => `DHCPTable.asp.5'
Connecting to 192.168.1.1:80... connected.
HTTP request sent, awaiting response... 200 Ok
Length: unspecified [text/html]

    [ <=>                                            ] 4,880         --.--K/s

18:07:17 (59.27 KB/s) - `DHCPTable.asp.5' saved [4880]


 'compaqlaptop','192.168.1.100','00:14:A5:64:43:28','1 days, 23:05:19','100'
,'HP943EFC','192.168.1.101','00:18:FE:94:3E:FD','1 days, 23:05:25','101'
,'&nbsp;','192.168.1.102','00:1E:4C:61:05:53','23:21:58','102'
,'puppypc','192.168.1.103','00:0F:B5:EC:9B:54','23:24:44','103'
,'puppyserver','192.168.1.104','00:1E:2A:37:3D:6D','23:48:15','104'
The unamed addy is a Vonage phone.
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

Post Reply