(20)
https://techexpert.tips/ja/ubuntu-ja/ubuntu-linux%E3%81%AEdhcp%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC/
apt update
apt -y install isc-dhcp-server
cp -p /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.orig
vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
allow booting;
allow bootp;
default-lease-time 28800;
max-lease-time 43200;
authoritative;
log-facility local7;
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.35 10.10.10.36;
option routers 10.10.10.1;
option domain-name-servers 8.8.8.8;
}
dhcpd -t
systemctl restart isc-dhcp-server
systemctl status isc-dhcp-server
-- リース確認
tail -f /var/lib/dhcp/dhcpd.leases
(10)
http://www.maibun.org/~nt/technicalnote/debian10/dhcp.html
apt update
apt -y install isc-dhcp-server
cp -p /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.orig
vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
allow booting;
allow bootp;
default-lease-time 28800;
max-lease-time 43200;
authoritative;
log-facility local7;
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.37 10.10.10.38;
option routers 10.10.10.1;
option domain-name-servers 8.8.8.8;
}
dhcpd -t
vim /etc/default/isc-dhcp-server
INTERFACESv4="ens192"
INTERFACESv6=""
systemctl restart isc-dhcp-server
systemctl status isc-dhcp-server
-- リース確認
tail -f /var/lib/dhcp/dhcpd.leases
(7)
https://www.rem-system.com/centos76-dhcpd/
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.30 10.10.10.33;
option domain-name-servers 8.8.8.8;
option routers 10.10.10.1;
option broadcast-address 10.10.10.255;
default-lease-time 28800;
max-lease-time 43200;
}
dhcpd -t
systemctl restart dhcpd
systemctl status dhcpd
-- リース確認
tail -f /var/lib/dhcpd/dhcpd.leases
- Windows Server
(2019)
https://www.hitoriit.com/entry/2019/03/31/110200
役割と機能の追加から「DHCPサーバー」をインストール
サーバーマネージャー -> ツール-> DHCP
からDHCP管理ツールを起動し、スコープを追加する