LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-10-2003, 07:01 AM   #1
KlaymenDK
Member
 
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 "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!
 
Old 10-10-2003, 11:34 AM   #2
kasperhans
Member
 
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, 11:54 AM   #3
KlaymenDK
Member
 
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, 12:42 PM   #4
Col Panic
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

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

http://www.linuxquestions.org/questi...002/07/4/26461

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


Reply


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 08:39 AM
Automatic start of kde at startup thort Linux - Newbie 2 08-28-2004 02:36 PM
ISP Startup drycan Linux - Networking 1 09-20-2003 10:40 PM
gui startup--automatic hpglow Linux - Newbie 3 07-22-2003 01:07 PM
Automatic ISP reconnect? Swampy Linux - Networking 1 04-22-2003 08:52 AM


All times are GMT -5. The time now is 03:25 AM.

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