Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-10-2003, 06:01 AM   #1
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD v6.0
Posts: 123

Rep: Reputation: 15
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 "" 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!
Old 10-10-2003, 10:34 AM   #2
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
just add it to your rc.local file should work
Old 10-10-2003, 10:54 AM   #3
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD v6.0
Posts: 123

Original Poster
Rep: Reputation: 15
Hey thanks!
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.
Old 10-10-2003, 11:42 AM   #4
Col Panic
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
MS Batch files equiv on a nix system are called scripts.

a good example of what you're trying to do.....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Startup of Apache m2azer Linux - General 6 09-20-2004 07:39 AM
Automatic start of kde at startup thort Linux - Newbie 2 08-28-2004 01:36 PM
ISP Startup drycan Linux - Networking 1 09-20-2003 09:40 PM
gui startup--automatic hpglow Linux - Newbie 3 07-22-2003 12:07 PM
Automatic ISP reconnect? Swampy Linux - Networking 1 04-22-2003 07:52 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration