Project

General

Profile

Actions

DHCP Server

This is installed on bridge.dev.ru.is, which is our router/bridge. eth1 is DevNet, so only have DHCP answer on that interface.
To keep things managable, we should use LDAP as our central host configuration database. Unfortunately, the ubuntu isc-dhcp-server-ldap package only appears to be in ubuntu versions later than 10.04. It may be time to upgrade.

Status:

  • I give up trying to make dhcpd work on the bridge machine because shorewall won't allow it on a bridge port. I am no moving it to gryla --foley
  • It is working on gryla. I have made a dns alias for dhcp.dev.ru.is --foley 2012-04-11

Possible software

There are also links on the OpenLDAP wiki page because of the possible integration efforts

Installation

  1. ssh dhcp.dev.ru.is
  2. sudo apt-get install dhcp3-server
  3. Copy the sample file to get started
    sudo cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp3/dhcpd.conf
  4. Edit heavily. Should include these lines
    authoritative;subnet 130.208.209.0 netmask 255.255.255.224 {
    # option definitions common to all supported networks...
      option domain-name "dev.ru.is";
      option domain-name-servers ns1.dev.ru.is, ns2.dev.ru.is;
      option subnet-mask 255.255.255.224;
      option broadcast-address 130.208.209.47;
      option routers 130.208.209.35;
      option domain-name-servers 130.208.209.35, 130.208.209.37;
      default-lease-time 600;
      max-lease-time 7200;
    
           # very limited because most are already allocated
           # we also don't dhcp for sigdor's machine in 33 and 34
           range 130.208.209.35 130.208.209.46;  
           host eir {
                hardware ethernet 00:06:5b:ec:3f:b0;
                fixed-address eir.dev.ru.is;
           }
    
    #.... more static hosts ...
    }
    
  5. restart the dhcp
    sudo service dhcp3-server restart

Updated by Joseph Foley over 9 years ago · 1 revisions