LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-04-2006, 02:33 PM   #1
RonV
LQ Newbie
 
Registered: Apr 2005
Location: Hoffman Estates, IL
Distribution: Debian Sarge
Posts: 9

Rep: Reputation: 0
mutiple network configurations for eth0


I am using Debain on a laptop and one item I miss from my Thinkpad is access connections that would allow me to maintain multiple network configurations. Right now I have juggle the configurations in my interfaces file for eth0.

Is there a way to name configurations in the interfaces file so when I do the ifup command I can specify the proper configuration? What I am looking for is something simple:

ifup Home - Static Address
ifup Office - DHCP with Proxy
ifup Hotel - DHCP

Thanks
 
Old 12-04-2006, 03:20 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
On redhat,
i can do the same with
Code:
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/home
ifdown eth0
ipup home
or if you want to maintain both up at a same time, modify the /etc/sysconfig/network-scripts/home with DEVICE=eth0:1
 
Old 12-12-2006, 10:05 AM   #3
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Amit's idea should work. But if you need to change things like nameservers, it'll be a little trickier. Windows also has this problem which is solvable by applications such as Toshiba's ConfigFree (other laptop vendors have similar applications). This article might help you out:

http://linuxplanet.com/linuxplanet/tutorials/5779/1/
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple network configurations stubbe Linux - Networking 6 06-08-2006 01:40 PM
Two network configurations Groucho Slackware 3 01-17-2006 06:48 AM
nmap finding c++ compiler/ network configurations nanoprobe Suse/Novell 2 04-07-2005 03:32 PM
Two network configurations, dial-up and static IP? sia Linux - Networking 1 05-24-2004 05:31 PM
Multiple network configurations at boot time. HOW? FairyFighter Linux - General 14 03-10-2004 05:04 AM


All times are GMT -5. The time now is 01:04 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