+ Post New Thread
Results 1 to 6 of 6
*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 ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29

    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?

    thanks

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    I'd set the static IP address in /etc/network/interfaces.

    Code:
    auto eth1
    iface eth1 inet static
            address 10.60.25.25
            netmask 255.0.0.0
            network 10.0.0.0
            gateway 10.0.0.1
    Replace other IPs with ones to match your network.

    You can then do sudo /etc/init.d/networking restart followed by ifconfig eth1 to check that it's being set.

  3. Thanks to webman from:

    reggiep (3rd September 2010)

  4. #3
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    Thanks Webman,
    When I went to edit that file I found

    auto eth0
    iface eth0 inet dhcp
    so I added

    auto eth1
    iface eth1 inet dhcp
    below and all is fine.

    Saved me yet again webman!

  5. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    Yep, that'll do! You're welcome

  6. #5

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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".

  7. #6
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    Quote Originally Posted by powdarrmonkey View Post
    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".
    That did cross my mind but wasn't sure how to do it and then along came another job!

SHARE:
+ Post New Thread

Similar Threads

  1. Ubuntu 10 headless PC won't boot
    By googlemad in forum *nix
    Replies: 2
    Last Post: 12th June 2010, 10:15 AM
  2. [Ubuntu] Using Ubuntu Box as Iscsi Device
    By glennda in forum *nix
    Replies: 3
    Last Post: 24th March 2010, 10:47 PM
  3. [ESXi] DC7900 won't pick up an IP Address
    By Zoom7000 in forum Thin Client and Virtual Machines
    Replies: 0
    Last Post: 2nd July 2009, 03:03 PM
  4. Replies: 9
    Last Post: 15th May 2009, 08:51 AM
  5. Vista Won't reconnect to Wireless after Reboot
    By cybernought in forum Windows Vista
    Replies: 2
    Last Post: 28th July 2008, 10:57 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •