Set up a dhcp server

From Linuxintro
Revision as of 20:58, 2 July 2012 by imported>ThorstenStaerk

To set up a dhcp server find out your distribution and proceed accordingly:


This is an example that works with SUSE Linux 11.4. We use br0 as network card to offer the dhcp service, as network where to take the IP addresses from, and as name servers and as gateway.

  • install the dhcp server software:
yast -i dhcpd
  • edit /etc/dhcpd.conf, enter the following:
ddns-update-style interim;
default-lease-time 600;
max-lease-time 3600;
option broadcast-address;
option routers;
option domain-name-servers,;
option domain-name "";

subnet netmask {
  • edit /etc/sysconfig/dhcp, set
  • start the dhcp daemon:
/etc/init.d/dhcpd start