Basic DHCP Server Setup

From CSLabsWiki
Revision as of 20:41, 4 January 2015 by Beadleha (talk | contribs) (Minor changes)

Jump to: navigation, search

What is this?

This page describes the setup of a basic dhcp server for the 144 subnet to get the lab machines in COSI and the ITL online using a host with only one NIC. The setup described was used in January 2014 to quickly get the lab back online using CRUX 3.1.


Install a dhcp server. On CRUX, this is:

prt-get depinst dhcp

This will place a startup script in /etc/rc.d/. (At least with sysV) You may want to enable it to run on startup.

You need to set a static IP on the DHCP server box. Instructions to do this can be found elsewhere. You need to pick one in the 144 subnet if you only have one NIC.

Once you have a static IP, configure the DHCP server by modifying /etc/dhcpd.conf. The example below assumes that the address of the PXE server (if applicable) is 128.153.145.AAA. Pick your IP range carefully. In this example it goes from to

option domain-name-servers;
option subnet-mask;
option routers;
subnet netmask {
allow booting;
allow bootp;
next-server 128.153.145.AAA;
filename "/pxe/pxelinux.0";

Then, just start dhcpd and it should hopefully work.