DHCP interfering


Forum: Networking
Topic: DHCP interfering
started by: Kastr0

Posted by Kastr0 on Jan. 16 2004,07:26
well i installed dsl werked fine ,   but in order for me to use the webmonkey server behind my router i need to give the machine a static ip ------but everytime i boot it up it does [backgrounding] on the dhcp ---- i did do the netcardconfig  it works fine for that time -- but everytime i restart it it doesnt go online - but after i do the netcardconfig again -- with all teh same inputs  - it werks --------BUt how do i make it static ip , i guess it what it boils down to?


V0.5

Posted by John on Jan. 16 2004,19:26
You can modify /etc/init.d/knoppix-autoconfig to skip dhcp, the section is between 743 and 756.  Just commenting out that section should do the trick.
Posted by hawki on Jan. 16 2004,21:04
If you have installed DSL to harddisk and ran netcardconfig once your settings are saved but not used during bootup.  You can return to your previous settings by stopping and starting eth0.  Try the following commands.

sudo ifdown eth0
sudo ifup eth0

works for me.

Posted by scj on Jan. 17 2004,03:02
Quote (Kastr0 @ Jan. 16 2004,02:26)
well i installed dsl werked fine ,   but in order for me to use the webmonkey server behind my router i need to give the machine a static ip ------but everytime i boot it up it does [backgrounding] on the dhcp ---- i did do the netcardconfig  it works fine for that time -- but everytime i restart it it doesnt go online - but after i do the netcardconfig again -- with all teh same inputs  - it werks --------BUt how do i make it static ip , i guess it what it boils down to?


V0.5

start an xterminal
write "sudo su" + return
start nedit from xterminal
load file "/etc/lilo.conf for editing.
find line : append="hda=scsi hdb=scsi hdc=scsi.............

write "nodhcp" at the end of line.

My line:

append="hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce nodhcp "

save lilo.conf
quit nedit
run lilo from xterminal.

Then it should work after next reboot.

Thats it !!

Posted by Kastr0 on Jan. 17 2004,06:27
thx , alright dhcp disabled , now      everytime i reboot it doesnt recognize that its online --- if i do "sudo ifup eth0 " it werks after that --- or i can do netcardconfig with same settings as before and after taht it willwerk-- but how do i get it to werk without doing that
Posted by scj on Jan. 17 2004,15:16
Quote (Kastr0 @ Jan. 17 2004,01:27)
thx , alright dhcp disabled , now      everytime i reboot it doesnt recognize that its online --- .................................

Hmmm - Here at my computer it works.

Sure you have run "lilo" as root after adding "nodhpc" to lilo,conf and before logging out ?

scj

Posted by Etienne on Jan. 18 2004,16:45
Hi there.

I have the same problem.  I added "nodhcp" to the lilo.conf file and I ran lilo right after doing it just like you instructed.  DSL doesn't DHCP at bootup anymore, but it doesn't load the eth0 interface either.  I have to run ifup eth0 if I want it to work.

Is there any other way of doing this? Please help, as I have spent quite a few hours trying to fix the problem.

Thank You.

Posted by minuscule on Jan. 18 2004,20:21
I have spent many hours on this too and here are my results so far. I hope this will help you people.

To use static IP configuration, I did like this:

1) add nodhcp in /etc/lilo.conf and run lilo afterwards.
2) run netcardconfig and enter all my specific configuration.

But I have one last problem. If eth0 happens to be up when I reboot or halt my system, the file /etc/network/ifstate is not cleared. The next time my system boots, it thinks that eth0 is already up. I thought that adding a Kxxnetworking symbolic link to ../init.d/networking in my /etc/rc0.d and /etc/rc6.d directories would do the trick but it does not work. As a quick and dirty fix, I stopped using reboot or shutdown directly and wrote a two-line script that first clears /etc/network/ifstate.

Am I missing something? What is the proper way of making sure /etc/network/ifstate is cleared when I halt or reboot the system?

Posted by Joshua Montgomery on Jan. 27 2004,03:46
Vi /etc/init.d/knoppix-halt and search for Shutdown

Right above the tailing "fi" of the shutdown network if command add the line: echo "" > /etc/network/ifstate

This will clear the interface state and allow the interface to come up propperly on boot.

Posted by Kastr0 on Jan. 27 2004,05:06
Joshua Montgomery--THX
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.