Mikkel Damgaard

< All Topics
Print

DHCP Relay configuration

DHCP (Dynamic Host Configuration Protocol) simplifies network management by automatically assigning IP addresses, gateways, DNS servers and many other options to devices. It saves time, minimizes errors, and prevents IP conflicts.

A Linux-based DHCP server is ideal because it is stable, flexible, secure, and free. With open-source solutions like ISC DHCP, it can be customized for both small and large networks, making administration efficient and cost-effective.

Step 1: Update and Upgrade

sudo apt update && sudo apt upgrade -y 

Step 2: Install ISC-DHCP-RELAY

sudo apt install isc-dhcp-relay -y

Step 3: Run the DHCP relay command

Hint use command “ip address” to see a list of all interfaces

# Change whats within the <>
dhcrelay -i <interface_towards_clients> <ipaddress_of_DHCP_server>

Step 4: Copy DHCP files to system location

cp /lib/systemd/system/isc-dhcp-relay.service /etc/systemd/system/isc-dhcp-relay.service
cp /lib/systemd/system/isc-dhcp-relay6.service /etc/systemd/system/system/isc-dhcp-relay6.service

Step 5: Restart and verify ISC-DHCP-SERVER Service

sudo systemctl start isc-dhcp-relay
sudo systemctl status-dhcp-relay
Tags:
Table of Contents

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top