LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 09-01-2003, 11:18 AM   #1
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Rep: Reputation: 25
Multiple Network Profiles


I just started using my laptop at work and have run into a problem. At home I use DHCP. At work I use a static IP. How could I switch between the two network profiles? One idea was to write some scripts that I just executed. Another idea, which I found here while searching was setting up another profile in lilo so I just choose whichever network I'm using and boot from that. Another idea was to have two eth adapters that point to the same device. Only problem with that is I still have to setup the dns when going to the static network. Any other ideas or HOW to do any of this? thanks. BTW I'm using Mandrake 9.1
 
Old 09-01-2003, 11:55 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
well I think it could be very easy to do.

Just edit your network boot script (/etc/init.d/network, probably) and then assign a static ip BEFORE the system try to get DHCP. So if the DHCP request fail, I suppose that you'll keep the static ip (and that you'll get a new ip if the request suceed).
I'm not sure about this, because having an assigned ip adress may force the DHCP to run on assigned adress broadcast (instead the global broadcast), but I think you should give a try
 
Old 09-01-2003, 02:00 PM   #3
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Original Poster
Rep: Reputation: 25
I was able to make some scripts that did it. I just went through linuxconf and watched what files it modified and what it did and just copied that over to a script. I have the files all zipped up and ready to post here till I realized that you can't attach files on this forum. I'll get it linked somewhere eventually, but for now if someone is interested in them, let me know and I'll send them.
 
Old 09-01-2003, 03:32 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
drop it in my anonymous ftp. Host is elf.homelinux.org
 
Old 09-01-2003, 06:27 PM   #5
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Original Poster
Rep: Reputation: 25
k, I'll throw it on my server too. Couldn't when I did that post because I was heading out

(update)
OK you can get it at the following address:

http://www.vrillusions.com/download.php?id=bash_ifcfg
(/update)

Last edited by vrillusions; 09-01-2003 at 06:41 PM.
 
  


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
Multiple browser profiles during multiple xsessions. Necessary? digorykirke Linux - Software 2 03-20-2005 05:31 PM
Multiple Network Profiles on a Laptop Bill Fox Linux - Laptop and Netbook 3 12-16-2004 07:22 PM
Network Profiles & Printing Thrasis Linux - Networking 2 11-22-2004 06:13 PM
Network User profiles KHAAAN Linux - Networking 1 07-30-2004 04:34 PM
Using multiple network profiles? thas Linux - Networking 2 03-31-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:20 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
Open Source Consulting | Domain Registration