Determining IP addr via script?
Net Llama!
netllama
Mon May 17 11:34:34 PDT 2004
hrmmm...while i'm sure its possible, this prolly isn't a straightforward
or simple task. i've read of cases where you can telnet into the router,
and determine its config (including IP) that way. you might want to poke
around at groups.google.com and look for the brand/model of your linksys
to see what others have accomplished.
On Mon, 8 Jul 2002, Michael Hipp wrote:
> I have a Linux box behind a LinkSys NAT router that gets a public address
> from DSL on the WAN side. I'm wanting to be able from the Linux box to
> determine what addr has been assigned by SWBell to the LinkSys box.
>
> Thanks,
> Michael
>
> On Monday 08 July 2002 04:27 pm, Net Llama! wrote:
> > This really is a loaded question. If you're not looking for the IP bound
> > to your NICs primary interface, then you're getting into all kinds of
> > other issues, such as NAT, IP-Masq, protocols, and the like.
> >
> > http://www.whatismyip.com is hardly accurate unless you have a very
> > simplisitic setup.
> >
> > On Mon, 8 Jul 2002, Michael Hipp wrote:
> > > Anyone know a simple way to determine what your public IP address
> > > appears to be via a shell script? I can do it with a web browser by
> > > going to http://www.whatismyip.com .
> > >
> > > (BTW, I'm not talking about the IP addr assigned to a NIC and readable
> > > by ifconfig.)
> > >
> > > Thanks,
> > > Michael
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo http://netllama.ipfox.com
More information about the Linux-users
mailing list