Re: how to get the ip address from a linksys router from my linux box

From: David Efflandt (efflandt_at_xnet.com)
Date: 10/30/03


Date: Thu, 30 Oct 2003 22:43:31 +0000 (UTC)

On Thu, 30 Oct 2003, Randy Mackie <spam_trap_rlm862@yahoo.com> wrote:
> hello everyone, and thanks in advance for your help.
>
> i have a linksys router to which i have 4 computers attached (two linux
> and two windows).

Can your Linksys do remote logging? I set my Linksys WAP11 v2.2 to log to
my Linux IP. I set my Linux syslogd to accept remote logging (-r switch).
So the WAP11 logs to my Linux syslog (/var/log/messages). In that case
you could run a script that would tail your logs to monitor any IP from
your router.

However, my Dlink DI-704 gateway had no remote logging and its login page
was a confusing jumble of frames and JavaScript. So I hacked its firmware
to display its WAN IP on its login page (replaced html text with
variables) and monitored its WAN IP using Perl LWP daemon script (per
daemonize in perldoc perlipc). It grabbed login page every 5 minutes, and
updated my dynamic DNS if IP changed (using Sys::Syslog to log hourly or
on IP change).

But I have been using Linux as adsl masq/gateway lately, so I
automatically update my DNS from /etc/ppp/ip-up during any
connect/reconnect.

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/