Using Classes on ISC-DHCP-SERVER

  Рет қаралды 2,913

Linux Tech School

Linux Tech School

3 жыл бұрын

HOw to use classes on ISC-DHCP-SERVER
Hi,
In this video I’ll show you how to use Classes on ISC-DHCP-SERVER to configure smaller pools for different clients.
I’ll be using Ubuntu Server for the ISC-DHCP-SERVER service, Ubuntu Desktop, Windows 10 and Tinycore as clients on this experiment.
You can get tinycore at:
tinycorelinux.net/downloads.html
####Here are the commands:
cd /etc/dhcp
nano dhcpd.conf
####The configuration:
class "UBUNTU" {
match if (substring(option host-name,0,6) = "UBUNTU");
}
class "WINDOWS" {
match if (substring(option host-name,0,7) = "WINDOWS");
}
class "TINYCORE" {
match if (substring(hardware,1,5) = 08:00:27:AA:AA);
}
subnet 10.10.0.0 netmask 255.255.255.0 {
pool {
range 10.10.0.11 10.10.0.20;
option subnet-mask 255.255.255.0;
option routers 10.10.0.254;
option domain-name-servers 1.1.1.1,8.8.8.8;
default-lease-time 1800;
max-lease-time 3600;
allow members of "UBUNTU";
}
pool {
range 10.10.0.21 10.10.0.30;
option subnet-mask 255.255.255.0;
option routers 10.10.0.254;
option domain-name-servers 1.1.1.1,8.8.8.8;
default-lease-time 1800;
max-lease-time 3600;
allow members of "WINDOWS";
}
pool {
range 10.10.0.31 10.10.0.40;
option subnet-mask 255.255.255.0;
option routers 10.10.0.254;
option domain-name-servers 1.1.1.1,8.8.8.8;
default-lease-time 600;
max-lease-time 1200;
allow members of "TINYCORE";
}
}
####Starting the service and checking status:
systemctl restart isc-dhcp-server
systemctl status isc-dhcp-server
Please check my other videos and Playlist dedicated to DHCP for service installation.
#### Monitoring:
tcpdump -vv -i enp0s9 port 67
NOTE: adapt to your ethernet interface
dhcp-lease-list
Hope you have enjoyed this video. Please comment below. Thanks!
Regards,
Rodrigo Matias
LINUX TECH SCHOOL

Пікірлер: 1
@gendisayuningtyas1343
@gendisayuningtyas1343 Жыл бұрын
hallo, How to make dhcp pool for router ? or maybe the name dhcp helper
How To Install And Configure Kea For Ubuntu Or Debian
34:13
Tech Tutorials - David McKone
Рет қаралды 9 М.
OpenSSH for Absolute Beginners
23:00
Veronica Explains
Рет қаралды 103 М.
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 3,1 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 23 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 12 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 195 МЛН
Moving to KEA DHCP from ISC DHCP!
17:55
GaryH Tech
Рет қаралды 2,5 М.
How To Install DHCP Server In Linux (Watch Newer Kea DHCP Video Instead)
34:38
Tech Tutorials - David McKone
Рет қаралды 14 М.
Create DNS forward & reverse zones using BIND9
31:04
Linux Tech School
Рет қаралды 2,4 М.
Using the Kea DHCP Server - Session 1 of 6. DHCP Fundamentals
1:04:41
Internet Systems Consortium
Рет қаралды 9 М.
Kea DHCP Spring 2023 Webinar series - Stork
50:52
Internet Systems Consortium
Рет қаралды 4,5 М.
Red Hat Satellite 6 power user tips and tricks
47:56
Red Hat Summit
Рет қаралды 23 М.
DHCP Relay Agent
4:20
ITFreeTraining
Рет қаралды 49 М.
4858 Migrating from ISC DHCP to Kea
11:51
NANOG
Рет қаралды 2,4 М.
Using NTP to sync time on your network
13:50
Linux Tech School
Рет қаралды 7 М.
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 2,7 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 474 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,3 МЛН