-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Saturday 2006-03-18 at 22:17 +0100, houghi wrote:
> On Sat, Mar 18, 2006 at 10:03:54PM +0100, Carlos E. R. wrote:
> > So in my case it can be a small power glitch that forced my router to
> > reset and retrain, or something on my ISP side.
>
> Contact your provider and ask them if they are able to tell what is
> happening or why they give a new IP or at least when they give out a new
> IP.
>
> Depending on the quality of the helpdesk, this might need to be answerd
> by somebody not on thephone (2nd or even 3rd level)
That's nearly impossible here, those people seem to be paid to bounce
questions! I know, I worked for them, on another branch.
And anyway, it doesn't matter that much to me.
>
> > If I can discover a way to log the IP number the router gets, then I could
> > investigate. I can ssh to my router and learn the IP, but it is not easy
> > to automatize.
>
> It depends on your router. If you can get it with something else then SSH
> (e.g. via a website) then it should be very easy.
There is a command on the router (it runs linux 2.4.17) that tells the
IP:
[warning: long lines]
] -> wan show
] VCC Con. Catego. Service Interface Proto. IGMP Nat
QoS State Status DialMod IP
] ID Name Name
address
] 0.8.32 1 UBR pppoe_8_32 ppp_8_32_1 PPPoE Disable
Enable Enable Enable Up Direct 88.*.*.*
] 0.8.36 1 UBRwPCR pppoe_8_36_1 ppp_8_36_1 PPPoE Disable
Enable Enable Enable PPP Down Direct
If I wanted, I would just have to write a script sshing to the router and
issuing the "wan show" command. Perhaps there is another way after I read
the manual someday.
For example, I might get some info with snmp, if I learn how it works:
[EMAIL PROTECTED]:~> snmpget -v 1 -c public router system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Broadcom Bcm963xx Software Version 2.20L.01
But I have no idea what command strings it has, nor how to learn them :-(
[...]
Perhaps this:
snmpwalk -v 2c -c public router
it gives 251 parameters, but none seems the IP. Pity.
> I have a script that look each minute if the IP adress on my router has
> changed.
Another way is to send myself an email and parse the headers.
And, this router has also support for dyndns or something similar. But, as
I said, I don't need it (yet), it is just a curiosity.
> It should not be too difficult to change it to log your IP changed and the
> time the changes occour.
True. One day I'm bored enough ;-)
- --
Cheers,
Carlos Robinson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFEHL7LtTMYHG2NR9URAsD4AJwM/izZ/tRUO7bWcHwhn6uD5osvNwCghWaf
YnriJJTHRub0yJuPj9K5OAA=
=yztV
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]