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
$ 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.



Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / ປ່ຽນ​ແປງ )

Twitter picture

You are commenting using your Twitter account. Log Out / ປ່ຽນ​ແປງ )

Facebook photo

You are commenting using your Facebook account. Log Out / ປ່ຽນ​ແປງ )

Google+ photo

You are commenting using your Google+ account. Log Out / ປ່ຽນ​ແປງ )

Connecting to %s

%d bloggers like this: