LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2008, 10:23 AM   #1
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Rep: Reputation: 17
Question creating multiple connections


i use dsl connection to cnnct to the internet through my ubuntu pc.
In ubuntu,at first i had to run pppoeconf command to enter my user name and password(this edits the dsl-provider file)..now each time i connect to the net i use the pon dsl-provider command..
what i want to know is stated below -

# i have three username-passwrds that cnnct to the internet..
only the 1st one has unlimited broadband priviledge but it is much slower than the others

each time if i wish to cnnct by different usernames, i have to run the pppoeconf command and scan my devices and provide my 2nd or 3rd username and paswrd ..
when i will shift to my 1st one...i have to repeat this tedious procedure again....
i guess ..u all will agree with me that this is a frustrutaing thing to do all the time...
in windows xp i can create many simultaneous connections (eg. MyConnection1,MyConnection2,MyConnection3 etc)...and cnnct through wichever i wish with just 2 piece of clicks


---- so,how can i keep simultaneous 2,3 connection files and cnnct through which ever i like without the pppoeconf shit all the time??
 
Old 09-29-2008, 10:43 AM   #2
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Do you mean you are using the connections at the same time? Or just that you use one or another at different times? I suspect the later...

I use multiple connections (but not at the same time) which creates a problem because the connections have different nameservers in /etc/resolv.conf. Rather than reconfiguring each time, make different copies of your "dsl-provider file" and run the whole thing with a script that copies the correct one in first:

Code:
#!/bin/sh

cp /etc/pppoe/providerfile.copy1 /etc/pppoe/providerfile &&
pppoe-up (or whatever command you use)
Just call that script "connect1" and that's all you'll have to type next time. I don't use pppoe so I'm not familiar with how to launch it, but hopefully the logic here is clear: the destination file of the copy is the real name of the file that pppoe uses, the source file is one version of what it should look like.

Important: use the double ampersand (&&) after the cp command to make sure it completes successfully before you attempt to connect.
 
Old 09-29-2008, 10:58 AM   #3
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
that was nice..
let me try first
 
  


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
creating multiple connections ritam_bkp Linux - Software 2 09-29-2008 10:56 AM
creating multipe connections ritam_bkp Linux - Networking 1 09-28-2008 05:06 AM
Multiple internet connections kojie Linux - Networking 2 12-08-2004 04:19 PM
Multiple Wireless Connections vanv101 Slackware 7 10-24-2004 08:39 AM
Creating Secure SMB Connections scottpioso Linux - Networking 17 12-03-2003 09:07 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration