How to do automatic ISP sign-on at startup?
Hi network crowd!
I've just recently installed Mandrake v9.1 (first shot at Linux, I love it), and I've found I have a small conundrum on my hands.
At login/startup, I need to perform an telnet session with fixed parameters. How do set this up to run automatically? I suspect a reasonably simple shell script should do the trick, but I don't (yet) speak shellish. Help!
My eth0 is a (classic) "3Com 90x" connecting to my ISP via ADSL. This works fine and I do get an IP address from them, it's just the tedious manual login I'm looking to avoid. I have a tool to do this on WIndows, so it's gotta be possible on Linux too -- right? ;)
The telnet session is necessary because I have to sign on with my ISP in order to get the ADSL line up (otherwise I get no connectivity, only the IP). The sign-on is done by telnetting to "signon.telia.dk" on port 259, entering username and password, and then entering "1" to sign on. At this point the telnet session is dropped by the host.
Mandrake allows me to configure my eth0 toward the ISP and my eth1 toward my LAN, and this is working fine; but I can't seem to find a feature to sign on, so this is why I'm asking you guys.
If anybody can point me in the right direction, I'd be very helpful. Is there something in the Mandrake network configuration I've missed? Where in the manpages should I begin looking for scripting telnet?
Bonus cookies are awarded if you can tell me how to avoid rebooting to rerun the script, since the ISP signs me off after a few hours again. (Yeah, great ISP right? But it's cheap and fast.)
I'm looking forward to hearing from you! :)
just add it to your rc.local file should work
But add what?
I've been searching the web for some hint as to what MS-Batch files would be called in Linux, what to write them with, and how such writing should be done. So far, I've found nothing helpful.
I'll keep on looking. If any of you can shed some light, I'd appreciate that also.
MS Batch files equiv on a nix system are called scripts.
a good example of what you're trying to do.....
|All times are GMT -5. The time now is 06:17 PM.|