Basis - DHCP

Why should i use a DHCP server

Which one

There are lot s of dhcp server, but we talk about ISC-DHCP.

Role Of a Dynamic Host Config Protocol

When you start your computer, the network interface bring up and query an ip to the DHCP server. Without it, you must specify each time your network address, and it will be very annoying to communicate with your computer. Your IP, and your DNS name is unknown for everybody.

But with DHCP server, you can get a valid IP and a DNS name, but also a ntp config or nis config or more (cf rfc2132)

What i need for a DHCP server

Requiremement

  • Linux Server.
  • ISC-DHCP.
  • DHCP Client.
  • Optional DNS.

Config file

Explanations

DHCP simple setup

We will work with include sub command and many config files, it will be easier to understand what we need and the difference between all configurations.

The config files have many parts.

  • A section with global parameters.
  • A section of Class and subclalss, where we define some properties or exceptions.
  • A section of subnet, where we define our network topology.
  • A section for DNS updating.

A redundant DHCP server is needed

Like DNS, and even more, we need a secondary DHCP server. In fact, without DNS we can use network, it s hard but we can. without DHCP and if we don't know the topology network, it's impossible to use a network computer.

Because DHCP give you ip (and more) parameters, is will be less difficult to act as multiple server. You computer send a broadcast and all servers can give an answer, the first will be notify and managing it. We can see here that DHCP server must know and share all knowledge in real time, and of course must have the exact same config.