LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-05-2008, 08:38 AM   #1
vexersa
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: Disabled
Switching between different ADSL accounts Ubuntu 8.04


Hi all,

This may be indeed a n00b question, but it is something I require Linux to be able to do.

I have multiple ADSL account connections which i swap between frequently, well, in Windows anyway.

I use one for torrenting etc, and the other is for general use, eg browsing etc.

Is there an app which can give me a simple option of disconnecting one account, connecting another etc, much like that in Windows?

Any help would be appreciated,

Thanks
 
Old 05-05-2008, 10:22 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I guess this is the matter of network interfaces,then this

Code:
sudo ifconfig eth0 down
sudo ifconfig eth1 up
will do,that's if you are using ethernet interfaces.Don't know if there is a gui app for that.Check with synaptic.
 
Old 05-05-2008, 10:29 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Actually you can have multiple configurations on a single Ethernet interface..

Quote:
10.6.2 High level network configuration using ifupdown logical interface definitions

suppose your computer is a laptop that you transport between home and work. When you connect the computer to the corporate network or to your home LAN you need to configure eth0 accordingly.

First define two logical interfaces home and work (instead of eth0 as we did earlier) which describe how the interface should be configured for the home network and the work network, respectively.

iface home inet static
address 192.168.0.123
netmask 255.255.255.0
gateway 192.168.0.1

iface work inet static
address 81.201.3.123
netmask 255.255.0.0
gateway 81.201.1.1

Then physical interface eth0 can be brought up for the home network with the appropriate configuration by specifying it on the command line:

# ifup eth0=home

To reconfigure eth0 for the work network issue the commands:

# ifdown eth0
# ifup eth0=work

Note that with the interfaces file written as above it will no longer be possible to bring up eth0 by doing ifup eth0 alone. The reason is that ifup uses the physical interface name as the default logical interface name and now in our example no eth0 logical interface is defined.
There is more info in the Network Docs that explain how to automatically identify which connection you are plugged into etc...
 
  


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
switching from suse 10.3 to ubuntu jerseyjoe Linux - Newbie 1 12-06-2007 10:22 PM
handling 1mb adsl + 1mb adsl on one ubuntu router? sarthor Linux - Server 0 10-03-2007 06:57 AM
Login Manager errors When switching Accounts Vor Kragresh Slackware 4 04-19-2007 07:53 PM
Importing Mandrake Accounts into Ubuntu Cinematography Ubuntu 4 05-23-2005 07:29 PM
Switching to ADSL from dialup with Fedora Core 1 st00 Linux - Networking 3 06-13-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration