Page 2 of 2

Re: Setting up a static IP address

PostPosted: 22 Mar 2010, 14:52
by CronoCloud
Why not just shut off the udhcp service if you're not using it?

Ron Rogers Jr. (CronoCloud)

Re: Setting up a static IP address

PostPosted: 22 Mar 2010, 21:11
by Larry214
I'm new to linux and did not know how to do that. From the other article on udhcpc, the service starts before the kboot prompt, and I was unclear on what to do after that. The way I modified the start file seems to work. But if you know a better way, please let me know! :)

Thanks!

Re: Setting up a static IP address

PostPosted: 04 Apr 2010, 12:54
by dan_f14
Larry214 wrote:Dan,

I am having the same problem. I am building a cluster of 8 PS3s. A few of them have the same problem you described. The issue is with the udhcpc service . See this link (viewtopic.php?f=19&t=4963&p=27810&hilit=udhcpc#p27810).

My solution is to add a command to the start file that basically restarts the network service after the system initializes. To do this edit etc/rc.local file.
Add the line /sbin/service network restart and then save and reboot.

This should get your static IP to come up each time. I did this earlier today and it still seems to be working.

Good Luck!

Larry


I've tried adding the line /sbin/service network restart to the file etc/rc.local however it does not seem to do anything :( It doesn't seem to restart the network connection and I have to do the old ifdown eth0 ifup eth0 to get it on the correct ip address. Am I doing anything wrong?

Cheers
Dan

Re: Setting up a static IP address (SOLUTION!)

PostPosted: 06 Jan 2012, 21:10
by faken
I also had this problem, and the rc.local solution didn't really work. Restarting the network after login did work, which means that there's stuff happening after the commands in rc.local are executed. More specifically, the wicd service is always the last one to configure network settings, and it resets the configuration set in the network manager, or respective configuration files. So the solution is simple, disable the wicd service. It's working for me so far.

Re: Setting up a static IP address

PostPosted: 24 Jun 2012, 13:19
by mahmoud1468
Dear All,

Altough I changed my /etc/rc.local to run the command "/sbin/service/network restart" it does not work properly for me. Actually when I restart my network, eth0 ip becomes true, but after some minutes, and maybe some hours, it changes to a dynamic ip. Finally I decided to run a service that restart my network every 15 minutes. I think it's the final way.

Regards,
MV