Setting up a DHCP server on a LAN with Ubuntu 9.10. These instructions should also basically work on Ubuntu 10.x.
# File: HOWTO Configure a DHCP Server on Ubuntu.notes # Date: 2010/03/24 # Refs: https://help.ubuntu.com/community/dhcp3-server # http://www.ubuntugeek.com/how-to-install-and-configure-dhcp-server-in-ubuntu-server.html # Desc: Setting up a DHCP server on a LAN with Ubuntu 9.10 # Install DHCP3 sudo apt-get install dhcp3-server # Specify the interface(s) that dhcp3-server should manage # in /etc/default/dhcp3-server INTERFACES="eth0" # Set a static IP for the DHCP server itself on the # interfaces that it will manage in /etc/network/interfaces auth eth0 iface eth0 inet static address 192.168.72.1 netmask 255.255.255.0 network 192.168.72.0 gateway 192.168.72.254 broadcast 192.168.72.255 # Edit the etc/dhcp3/dhcpd.conf configuration file # I'm going to be running a 192.168.72.0 host-only # vmnet on eth0 with fixed addresses for several machines # in my example here ddns-update-style none; log-facility local7; authoritative; subnet 192.168.72.0 netmask 255.255.255.0 { option routers 192.168.72.254; option subnet-mask 255.255.255.0; option broadcast-address 192.168.72.255; option domain-name-servers 192.168.72.1; option ntp-servers 192.168.72.1; default-lease-time 7200; max-lease-time 86400; host helium { hardware ethernet 00:0c:29:c6:de:09; fixed-address 192.168.72.2; } host lithium { hardware ethernet 00:0c:29:d8:d5:7f; fixed-address 192.168.72.3; } host beryllium { hardware ethernet 00:0c:29:b6:93:41; fixed-address 192.168.72.4; } host boron { hardware ethernet 00:0c:29:3f:c6:f3; fixed-address 192.168.72.5; } }