Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-04-2006, 02:33 PM   #1
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

Old 12-04-2006, 03:20 PM   #2
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
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
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:


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
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 / openSUSE 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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:52 AM.

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