Загрузка страницы

How To Install DHCP Server In Linux

In this video, we show you how to install DHCP server in Linux using Ubuntu 20.04 LTS and ISC DHP server

We'll also set up a DHCP Relay Agent and firewall rules to service DHCP requests in a different submet

=====================================
Support the channel:
Buy Me a Coffee - https://buymeacoffee.com/dmckone
Donate to the channel - https://paypal.me/DavidMcKone
Become a monthly contributor on Patreon - https://www.patreon.com/dmckone

=====================================
Useful links:
https://https://ubuntu.com/download/server

=====================================

Configuration example:
1) Install Ubuntu and update the OS

2) Install the ISC ( Internet Systems Consortium) DHCP service
sudo apt install isc-dhcp-server

3) Bind DHCP to a specific interface
cd /etc/default
sudo cp isc-dhcp-server isc-dhcp-server.bak

Check the interface name
ip addr

Edit the config file
sudo nano isc-dhcp-server

INTERFACESv4="ens192"
INTERFACESv6="ens192"

4) Configure the DHCP service
cd /etc/dhcp
sudo cp dhcpd.conf dhcpd.conf.bak
sudo nano dhcpd.conf

# Global settings
option domain-name "templab.lan";
option domain-name-servers 172.16.17.10;

default-lease-time 600;
max-lease-time 7200;

# Disable DDNS
ddns-update-style none;

# Server is the authoritative DHCP server i.e. the only one
authoritative;

# Local subnet for network topology
subnet 172.16.17.0 netmask 255.255.255.0 {
}

# Pool to lease IP addresses from
subnet 172.16.19.0 netmask 255.255.255.0 {
range 172.16.19.100 172.16.19.250;
option routers 172.16.19.254
}

# Reserved IP address for a specific host
host PC2 {
hardware ethernet 00:0c:29:a9:d1:4c;
fixed-address 172.16.19.40;
}

5) Start and check DHP service
sudo systemctl start isc-dhcp-server
sudo systemctl status isc-dhcp-server

6) DHCP Relay Agent
Configure a DHCP Relay Agent on Layer 3 gateways to point to the DHCP server

7) Firewall Rules to allow DHCP traffic
Allow UDP traffic from the LAN subnet ,source port 68, to the DHCP server, destination port 67

8) Check leasing
dhcp-lease-list
NOTE: This does not show reserved IPs. Check the config file for that

Credits:
LoveLife | Instrumental Prod. Blue Mango | EQMUSEQ.COM by Don Da Vinci
https://soundcloud.com/eqmuseq/lovelife?in=eqmuseq/sets/royalty-free-music-for-youtube

How To Install DHCP Server In Linux,install dhcp server ubuntu 20.04,install ubuntu dhcp server,how to install dhcp in linux,linux dhcp,linux dhcp server,linux dhcp server configuration,linux dhcp server ubuntu,linux dhcp settings,ubuntu dhcp,ubuntu dhcp service,ubuntu dhcp dns server,ubuntu dhcp server 20.04,isc dhcp server,isc dhcp server configuration,isc dhcp show leases,pfsense dhcp relay firewall rules

00:00 Intro
00:35 Planning
04:01 Install & Configure DHCP
22:50 Test DHCP
27:40 DHCP Relay Agent

Видео How To Install DHCP Server In Linux канала Tech Tutorials - David McKone
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
5 апреля 2021 г. 2:48:56
00:34:38
Яндекс.Метрика