*nix Thread, My Ubuntu box, moodle, won't keep its IP address on reboot? in Technical; My moodle server had a power supply problem this morning and crashed. I swapped out the the hard drive to ...
3rd September 2010, 11:23 AM #1
My Ubuntu box, moodle, won't keep its IP address on reboot?
My moodle server had a power supply problem this morning and crashed. I swapped out the the hard drive to a new machine and booted up again. I had a few errors about NFS not mounting and realised that even though I had given the Ip address in DHCp the box was not getting it.
I found that if I type ifconfig eth1 10.60.25.25 that the box gets that Ip and is happy until I reboot and then it loses it again.
Can anyone suggest what might be happening here?
3rd September 2010, 11:45 AM #2
I'd set the static IP address in /etc/network/interfaces.
Replace other IPs with ones to match your network.
iface eth1 inet static
You can then do sudo /etc/init.d/networking restart followed by ifconfig eth1 to check that it's being set.
Thanks to webman from:
reggiep (3rd September 2010)
3rd September 2010, 12:50 PM #3
When I went to edit that file I found
so I added
iface eth0 inet dhcp
below and all is fine.
iface eth1 inet dhcp
Saved me yet again webman!
3rd September 2010, 12:51 PM #4
Yep, that'll do! You're welcome
7th September 2010, 09:51 AM #5
Alternatively, and to save headaches, re-map the device in your udev rules so that it again appears as eth0.
This stops your successor going "whaaaat? there's only one card in this machine, it should be eth0".
7th September 2010, 10:27 AM #6
That did cross my mind but wasn't sure how to do it and then along came another job!
Originally Posted by powdarrmonkey
By googlemad in forum *nix
Last Post: 12th June 2010, 10:15 AM
Last Post: 24th March 2010, 10:47 PM
By Zoom7000 in forum Thin Client and Virtual Machines
Last Post: 2nd July 2009, 03:03 PM
By HMCTech in forum Hardware
Last Post: 15th May 2009, 08:51 AM
By cybernought in forum Windows Vista
Last Post: 28th July 2008, 10:57 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)