Results 1 to 3 of 3

Thread: DHCP server is not starting in startup

  1. #1
    Join Date
    Aug 2009
    Beans
    4

    Question DHCP server is not starting in startup

    How to configure DHCP server to start in Boot.

    I have configured DHCP server and it is working fine if I give the command
    /etc/init.d/dhcp3-server start

    but after every reboot I have to give this command manually ,please provide the information to start DHCP server automatically while booting

    Thanks in advance

  2. #2
    Join Date
    Dec 2008
    Beans
    89
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: DHCP server is not starting in startup

    The simple solution would be to add a script to your Autostart menu. If you use KDE, this is

    Code:
    nano ~/.kde/Autostart/scriptname
    >> #!/bin/bash
    >> /etc/init.d/dhcp3-server start
    sudo chmod +r ~/.kde/Autostart/scriptname
    Don't know about other DM/DEs, sorry, but most have something in a settings menu somewhere.

    The other possibility is that your network manager (which is just a frontend to /etc/network/interfaces ) either does not have "auto interfacename" line in it, or it is not set to dhcp. (The relevant parts of) my /etc/network/interfaces look like this;

    Code:
    auto eth0
    iface eth0 inet dhcp
    Make sure you have both lines, the only thing that should be different is eth0 (and even then it probably won't be different). Be careful when editing your /etc/network/interfaces, make a backup if you're new to it (like this)

    Code:
    sudo cp /etc/network/interfaces /etc/network/interfaces.backup
    and if it all goes to hell,

    Code:
    sudo cp /etc/network/interfaces.backup /etc/network/interfaces
    Check the man page (man interfaces) for more details.

    PS. Your network manager may or may not complain about you editing your interfaces file. For example, if you're using wicd, it sets the mode to "manual", and breaks if you change it. YMMV

  3. #3
    Join Date
    Apr 2010
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: DHCP server is not starting in startup

    I have the same problem as the original poster.

    I'm running dhcp3-server and everything works perfectly... until I reboot.

    I have to manually start the dchp3-server with /etc/init.d/dhcp3-server start

    Any help would be greatly appreciated.

    Edit: I found the fix thanks to phil123:
    http://ubuntuforums.org/showthread.p...35#post9144235
    Last edited by shaferwr; April 19th, 2010 at 04:01 PM. Reason: found the fix

Tags for this Thread

Bookmarks

Posting Permissions

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