Setting up simple DHCP Server using Webmin

A DHCP Server assigns IP addresses to client computers. This is very often used in enterprise networks to reduce configuration efforts.

Prerequisite:   First you need to install Webmin
on Centos 5.8 look at this post -> Webmin on Centos 5.8
if you prefer ubuntu 10.04 ->  Webmin on Ubuntu 10.04

 1. – Install DHCP server

Option A): Centos 5.8

# yum  install  dhcp

Set the DHCP service to start on boot

# chkconfig  dhcpd  on

Start DHCP service

# service dhcpd start

Option B): Ubuntu 10.04

sudo apt-get install dhcp3-server


2.- Setting up

My network design is the following:

Network name: Intranet
Network adsress:
Address range: –  (DHCP server can give 75 IPs)
Domain: mydomain.intranet
Default routers:
Broadcast address:
DNS servers: -> DNS Server Local (our own DNS Server, within our network) -> DNS Server External (ISP company)

Access webmin from any browser (use your own IP number):     https://your_IP:10000
First refresh modules:   Webmin -> Webmin Configuration -> Refresh Modules


Servers -> DHCP Server  – >  Add a new subnet.

Fill boxes and click create

Servers -> DHCP Server ->  Edit Client Options


Fill boxes   (Antención with dot at the end of intranet!!!!!!!!)

on the same screen mark Interim in “DNS update style” and click save

Finally start DHCP server