LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-03-2004, 03:26 AM   #1
froggy-dk
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Cool boot up with different ip address?


Hi out there,

I just set up a mandrake 9.2 version a couple of days ago. Everything works fine, but it would be great if it is possible to choose between two different modes for booting.

the problem is that sometimes do I log in on a network that gives you an ip address automatically (DHCP) and other times I log in a network with a static ip adress...

Is it possible to set the system up like that?

I'm happy for an answer and look forward to get one :-)

Thnx so far :-)
 
Old 03-03-2004, 11:26 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
I may have a solution (I don't know if it'll work). You need two kernels. For the first add "dhcp" as EXTRAVERSION flag (in the main Makefile). For the second add "static" as EXTRAVERSION flag.
Then modify your boot scripts. In fact the script which brings eth0 up have to do a "uname -a" and look for example if static flag is present. If yes, start the script which assigns a static IP, If no start the dhcp script.
 
  


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
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
MAC Address during boot (lamer) vanvan Linux - Networking 0 02-03-2005 07:04 AM
bash script to detect scsi address at boot ewto Programming 2 10-20-2003 03:47 AM
changed local net address nfs is hanging at boot spooge Linux - Networking 2 08-20-2003 02:37 PM
Dynamically change ip address on boot up carolw Linux - Newbie 2 08-05-2003 03:08 AM


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