Home
VPN WorkPlace
Web Sites/Apps
Small Business
Other Apps
Contact
Guides
Ubuntu DHCP Server
Install and configure DHCP Server on Ubuntu 20.10
Install
sudo apt install isc-dhcp-server -y
Configure
First define LAN adapter
sudo nano /etc/default/isc-dhcp-server
Now configure your settings
sudo nano /etc/dhcp/dhcpd.conf
Now set ipv4 forwarding
sudo nano /etc/sysctl.conf
Uncomment the following
net.ipv4.ip_forward=1
Restart DHCP Service
sudo systemctl restart isc-dhcp-server.service
List Current DHCP Leases
dhcp-lease-list
Example Config
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.3.255;
option routers 192.168.3.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name "searchnorfolk.ca";
option ntp-servers 192.168.3.1;
ddns-update-style none;
authoritative;
subnet 192.168.3.0 netmask 255.255.255.0 {
range 192.168.3.50 192.168.3.60;
}
# pi4 2gb Time-Server
host pnode02 {
hardware ethernet dc:a6:32:ad:01:17;
fixed-address 192.168.3.2;
}
# pi4 4gb 1
host pnode03 {
hardware ethernet dc:a6:32:4a:02:37;
fixed-address 192.168.3.3;
}
# pi4 4gb 2
host pnode04 {
hardware ethernet dc:a6:32:4b:03:65;
fixed-address 192.168.3.4;
}
# pi4 4gb 3
host pnode05 {
hardware ethernet dc:a6:32:4a:04:69;
fixed-address 192.168.3.5;
}
# pi4 8gb
host pnode06 {
hardware ethernet dc:a6:32:b1:05:1c;
fixed-address 192.168.3.6;
}
# pi2 1gb
host pnode07 {
hardware ethernet b8:27:eb:a5:06:24;
fixed-address 192.168.3.7;
}
CAMM Services Application Design
Brantford PC
Norfolk County PC
R.D. Cookson Disposal Ltd.
Web Site Design Brantford, Ontario
Web Site & Application Development Norfolk County, Ontario
Various front loader and roll off bin rentals in Simcoe, Ontario
3D Marketing and Exhibit Specialists, Greater Toronto Area
Robert Jones Marine Technical Services