A simpler solution to that (after writing a similiar script) is running -
html2text http://checkip.dyndns.org | grep Current | cut -d : -f2
When you access one of the checkmyip sites it get's the router's
external ip and that way no sshing is needed.
Lior.

On 6/29/05, Noam Meltzer <[EMAIL PROTECTED]> wrote:
> Hi Lior,
>  Installing noip service on the router is not wise. You don't have much
> persistent storage there, and not many tools (perl as i recall is not avail.
> there).
>  I have this router, and I tried (unsuccessfully) to enable SNMP on it to
> achieve this data.
>  Instead, I wrote a small script in perl which telnet/ssh to the router and
> retrieves the data that way.
>  
>  Noam
> 
> 
> On 6/29/05, Lior Kesos <[EMAIL PROTECTED]> wrote:
> > 
> > Ello,
> > I'm trying to set up my router (eci b-focus 312) to update the noip
> > service of it's ip.
> > I've used cable pptp till now so I always had my "external" ip an ifconfig
> away.
> > But my question is do I have to install the noip software on the 
> > router or is there a more standard and elegent way.
> > I guess I can cross compile the small tgz to mips and run it on the
> > router (which I'll do anyway because it sounds fun :) ).
> > Anyway what is you're solution for dynamic dns from behind an adsl 
> > router that does masuarading.(in my case to a 10.0.0.x subnet).
> > regards
> > Lior.
> > --
> > Peace Love and Penguins -
> > Lior Kesos
> > 
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> > 
> > 
>  
>  


-- 
Peace Love and Penguins -
Lior Kesos

================================================================To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to