Differences between revisions 6 and 16 (spanning 10 versions)
Revision 6 as of 2017-12-10 21:23:25
Size: 877
Comment:
Revision 16 as of 2021-12-31 03:56:28
Size: 1344
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The DHCP server is a must in any network. We will use ISC's DHCP server, and configure two servers to make a redundant system. The two servers will be able to synchronized the dhcp leases between servers and update the DNS too. The DHCP server is a central part of the network. We will use ISC's DHCP server, and configure two servers to make a redundant system. The two servers will be able to synchronize the dhcp leases between servers and update the DNS too. They will be running in an active/passive setup.
Line 5: Line 5:
In this setup we use the following IP-addresses for the master and slave: In this setup we use the following IP-addresses for the primary and secondary:
Line 7: Line 7:
    192.168.1.36 master
    192.168.1.37 slave
 * 192.168.1.38 primary
 * 192.168.1.39 secondary
Line 10: Line 10:
Configure the master, then the slave.  Configure the [[DHCP Primary|primary]], then the [[DHCP Secondary|secondary]].
Line 12: Line 12:
== Software == == Maintenance ==
Line 14: Line 14:
{{{
apt-get install dhcp
}}}
Once the two servers are configured, you will notice that there is only a small difference between them. The difference is in `/etc/dhcp/dhcpd.conf`, which includes `/etc/dhcp/dhcpd.conf_primary` for the DHCP primary and `/etc/dhcp/dhcpd.conf_secondary` for the DHCP secondary. This is on purpose and will make configuration changes much easier. The config files on the two servers has to be identical. If they are not identical, the DHCP servers will most likely not start. Make a strategy where configuration changes are made on the primary and then copied to the secondary. Just avoid overwriting `/etc/dhcp/dhcpd.conf`.
Line 18: Line 16:
== Network ==

We will give the DNS master a static IP-address. Edit `/etc/networking/interfaces` and make the following changes.

{{{
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp

auto eth0
iface eth0 inet static
        address 192.168.1.36
        network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
}}}
The descriptions below apply to both the DHCP primary and the DHCP secondary, meaning that any configuration changes will have to be made on both DHCP servers in identical ways.

DHCP

The DHCP server is a central part of the network. We will use ISC's DHCP server, and configure two servers to make a redundant system. The two servers will be able to synchronize the dhcp leases between servers and update the DNS too. They will be running in an active/passive setup.

In this setup we use the following IP-addresses for the primary and secondary:

  • 192.168.1.38 primary
  • 192.168.1.39 secondary

Configure the primary, then the secondary.

Maintenance

Once the two servers are configured, you will notice that there is only a small difference between them. The difference is in /etc/dhcp/dhcpd.conf, which includes /etc/dhcp/dhcpd.conf_primary for the DHCP primary and /etc/dhcp/dhcpd.conf_secondary for the DHCP secondary. This is on purpose and will make configuration changes much easier. The config files on the two servers has to be identical. If they are not identical, the DHCP servers will most likely not start. Make a strategy where configuration changes are made on the primary and then copied to the secondary. Just avoid overwriting /etc/dhcp/dhcpd.conf.

The descriptions below apply to both the DHCP primary and the DHCP secondary, meaning that any configuration changes will have to be made on both DHCP servers in identical ways.

None: DHCP (last edited 2021-12-31 03:56:28 by Kristian Kallenberg)