rohhie 082be086c1 DHCPサーバーに権威を持たせるための修正
dhcpd.confにauthoritativeを追加。
テスト環境においてDHCPNAKメッセージを返すようなことはなく、指定がなくても問題ないような気がするが、明示的に設定するようにした。
もし、権威を持たせたくない場合にはnot authoritativeに変更すればよい。
2022-10-30 13:44:38 +09:00

34 lines
750 B
ISCdhcpd

#-------------------------------
# Global options
#-------------------------------
authoritative;
option domain-name "hogeserver.hogeddns.jp";
option domain-name-servers 192.168.110.10;
option routers 192.168.110.10;
default-lease-time 86400; # 24 hours.
max-lease-time 604800; # 7 days.
lease-file-name "/var/lib/dhcp/dhcpd.leases";
#-------------------------------
# Subnet
#-------------------------------
subnet 192.168.110.0 netmask 255.255.255.0 {
range 192.168.110.100 192.168.110.199;
}
#-------------------------------
# Fixed address
#-------------------------------
host party {
hardware ethernet 00:0C:29:14:6E:24;
fixed-address 192.168.110.12;
}
host work {
hardware ethernet 00:0c:29:0a:83:af;
fixed-address 192.168.110.3;
}