Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[bash]: IP Discover Script

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
HyperY2K
Posts: 25
Joined: 2006-06-19 22:15
Contact:

[bash]: IP Discover Script

#1 Post by HyperY2K »

I've got a problem with an old router. This router has DHCP disabled and the hardware reset won't work.
So I've got to found the correct IP address by trying each one (192.169.x.y ones). I've thought on a shell script.
Did anyone have an idea?

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#2 Post by mzilikazi »

My router is 192.168.11.1. So you could scan the network w/ nmap something like so:

Code: Select all

nmap 192.168.11.0/24
That shows you every i.p. on the subnet.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G

Guest

#3 Post by Guest »

so , do you have an idea how this would work in a bash-script with a for-loop to "scan" across 192.168.0.0 until 192.168.255.0 networks?

plugwash
Posts: 2507
Joined: 2006-09-17 01:10
Contact:

#4 Post by plugwash »

if you know its in 192.168 just set the subnet mask on your interface to 255.255.0.0 and then do nmap 192.168.0.0/16

it'll take a while though

also if the hardware reset isn't working then it seems pretty likely that the unit may simply be dead

Post Reply