[oclug] Router problem

The Linux Doctor linuxdoctor at leitersolutions.com
Tue Feb 10 00:12:51 EST 2009


On Mon, 09 Feb 2009 23:19:23 -0500
Andy Civil <andycivil at gmail.com> wrote:

> The Linux Doctor wrote:
> > Alternately, if the ADSL modem is set to log onto the Internet
> > itself using PPP and the LAN is set to DHCP, one can tell the
> > DI-604 to use DHCP over it's WAN connection.  This has the
> > advantage of allowing you to switch from the router to direct
> > connect without having to do any reconfigurations of the boxes
> The thing about that arrangement, though, is that you can't "see"
> your login info, can you? I mean, it'll be in the modem, and you
> can't access that from the LAN side of the router.
> 
> Or do you know how to set up a static route, to specifically route
> that address out?
> 
> My Internet service has been pretty good, but I still need to check
> my login status once in a while...
> 

Well, you can by using the Viking CLI command interface using telnet.
Login to the unit via telnet and then issue the command "get ip
address".  You can then write a shell script to grab that info via
telnet.

The output is in this format:


$get ip address
Ip Address        Mask               If Name      BCast Addr        MaxReasm
----------------------------------------------------------------------------
aa.bb.cc.dd       255.255.255.255    ppp-0        1                 65535     
127.0.0.1         255.0.0.0          lo-0         1                 65535     
192.168.1.2       255.255.255.0      usb-0        1                 65535     
192.168.1.254     255.255.255.0      eth-0        1                 65535     

$get ppp ipinfo

IfName          : ppp-0               Status          : Opened          
Self Ip Address : aa.bb.cc.dd         Peer Ip Address : ee.ff.gg.hh   
Prim DNS Server : 67.55.0.11          Sec DNS Server  : 66.49.220.95    

That might help.

Interestingly, the GNet BB2060 has the same software in it that runs
the Trendnet TCM-C400 ADSL modem.

>>>--fja->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://oclug.on.ca/pipermail/oclug/attachments/20090210/d9ed8646/signature.pgp


More information about the OCLUG mailing list