Automatic IP Configuration with DHCP Server on Ubuntu

Automatic IP Configuration with DHCP Server on Ubuntu

This article is a work in progress.

$ sudo apt-get install dhcp3-server
  # /etc/default/dhcp3-server # This is not needed on Ubuntu 8.04 Hardy
$ sudo nano -w /etc/dhcp*/dhcpd.conf
# dhcpd.conf for Helia labs
# Copyright 2006 Tero Karvinen
# License: GNU General Public License, version 2 or later
# ChangeLog:
# 2006-03-27	Initial version, testing in Helia labs
# Don't set "authoritative" until everything else is correct in dhcpd.conf
authoritative;	# Warning: this overrides other DHCP servers
# Default options in Ubuntu:
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
# Subnet row defines server's network card. Also set in "/etc/default/dhcp3-server"
# 'ifconfig' shows subnet (ipaddress, zeroes as in mask) and netmask
subnet netmask {
	host terotestaa {
		# 'ping target_host', 'arp' shows MAC address
		# only give DHCP information to this computer:
		hardware ethernet 00:0D:56:73:F0:0D;
		# Basic DHCP info (see 'ifconfig', 'route', 'cat /etc/resolv.conf')
		option subnet-mask;
		option routers;
		option domain-name-servers,;
		# Non-essential DHCP options
		option domain-name "";
# 'sudo /etc/init.d/dhcp3-server force-reload'
 $ sudo /etc/init.d/dhcp3-server stop

Now that you have DHCP working, you could try Ubuntu PXE.

Posted in Old Site | Tagged , , , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *