====== DHCPサーバの構築 ====== ===== dhcpdのインストール ===== インストールは''apt''一発。(Ubuntu Serverの場合) $ sudo apt install isc-dhcp-server 設定ファイル等は''/etc/dhcp''以下に収められている。(Ubuntu 22.04.1 LTSで確認) kimi@sstw:/etc/dhcp$ cat dhcpd.conf # dhcpd.conf # option definitions common to all supported networks... option domain-name "***********"; option domain-name-servers 192.168.10.AAA, 192.168.10.BBB; default-lease-time 600; max-lease-time 7200; subnet 192.168.10.0 netmask 255.255.255.0 { range 192.168.10.XXX 192.168.10.YYY; # option domain-name-servers ns1.internal.example.org; # option domain-name "internal.example.org"; # option subnet-mask 255.255.255.224; option routers 192.168.10.ZZZ; # option broadcast-address 10.5.5.31; # default-lease-time 600; # max-lease-time 7200; } サーバの起動 $ sudo systemctl start isc-dhcp-server $ sudo systemctl status isc-dhcp-server