LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-06-2006, 04:28 PM   #1
ernesto_cgf
Member
 
Registered: Nov 2003
Location: Havana, Cuba
Distribution: Ubuntu 9.04 "Jaunty Jackalope"
Posts: 153

Rep: Reputation: 30
Switching network settings quickly


What if I have a laptop with Linux and I use it on several locations with several different networks. I have to manually change my network settings every time I change location. What are my options? Is there any tool to aid me on this? Maybe something on which I can configure the three or four settings for my locations and an icon in the notification area to quickly switch between settings?
 
Old 12-07-2006, 08:53 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
http://www.linuxquestions.org/questi...d.php?t=507449
 
Old 12-11-2006, 12:43 PM   #3
ernesto_cgf
Member
 
Registered: Nov 2003
Location: Havana, Cuba
Distribution: Ubuntu 9.04 "Jaunty Jackalope"
Posts: 153

Original Poster
Rep: Reputation: 30
Sorry, I read that post, but I still do not understand what should I do. Is there any software I need to install first?

Thanks anyway
 
Old 12-12-2006, 09:48 AM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
No you are not supposed to install any software for this. At first you got make 4 copies of your /etc/sysconfig/network-scripts/ifcfg-eth0 with the names you want them to refer as ;

e.g.
cp ../ifcfg-eth0 ../ifcfg-texas
cp ../ifcfg-eth0 ../ifcfg-havana
cp ../ifcfg-eth0 ../ifcfg-delhi

& then edit these three files with different specifications you want. Please also make sure that you should not have ONBOOT=yes in these three secondary addresses.

Now you are done !

Suppose you have now moved to delhi location; So you can do
Code:
ifdown eth0 & 
ifup delhi
or now you have moved to texas;
Code:
ifdown delhi &
ifup texas
Lets hope that you'll make it working now.
 
  


Reply

Tags
network, settings


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching network card, Debian Woody Wordan Linux - Networking 7 06-11-2006 02:18 AM
Network Switching Script 65_289 Linux - Networking 0 07-06-2005 12:24 PM
switching between/activate network devices snow_bound Mandriva 3 06-04-2005 12:48 AM
Quickly switching to root artificialGekko Linux - Newbie 9 03-09-2005 06:44 AM
General Strategy for switching Windows -> Linux network? mcle Linux - General 0 12-29-2004 11:55 AM


All times are GMT -5. The time now is 06:17 AM.

Main Menu
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