내 DHCP 서버가 있고 IP 범위를 10.53.70.100 - 10.53.70.200으로 구체적으로 설정했지만 때때로 이 범위를 벗어나는 IP를 얻습니다. 예를 들어, 제가 만든 마지막 서버의 IP는 10.53.70.245였는데, IP 범위 설정이 작동하지 않는 이유를 알고 싶습니다.
이를 위해 dhcpd 서비스 대신 dnsmasq를 사용하고 있습니다.
다음은 DHCP 서버의 로그입니다.
Mar 20 10:32:46 dhcp dnsmasq-dhcp[7657]: 1927259932 available DHCP range: 10.53.70.100 -- 10.53.70.200
Mar 20 10:32:46 dhcp dnsmasq-dhcp[7657]: 1927259932 client provides name: dnstest
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 DHCPDISCOVER(ens192) 10.53.70.245 00:50:56:8f:d4:6f
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 tags: ens192
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 DHCPOFFER(ens192) 10.53.70.177 00:50:56:8f:d4:6f
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 requested options: 1:netmask, 28:broadcast, 2:time-offset, 121:classless-static-route,
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 requested options: 15:domain-name, 6:dns-server, 12:hostname,
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server,
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 requested options: 26:mtu, 119:domain-search, 3:router, 121:classless-static-route,
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 requested options: 249, 33:static-route, 252, 42:ntp-server
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 next server: 10.53.70.5
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 1 option: 53 message-type 2
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 54 server-identifier 10.53.70.5
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 51 lease-time 12h
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 58 T1 6h
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 59 T2 10h30m
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 1 netmask 255.255.255.0
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 28 broadcast 10.53.70.255
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 6 dns-server 10.53.70.5
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 9 option: 15 domain-name example.io
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 sent size: 4 option: 3 router 10.53.70.1
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 available DHCP range: 10.53.70.100 -- 10.53.70.200
Mar 20 10:32:49 dhcp dnsmasq-dhcp[7657]: 1927259932 client provides name: dnstest
Mar 20 10:32:52 dhcp dnsmasq-dhcp[7657]: 2099714365 available DHCP range: 10.53.70.100 -- 10.53.70.200
Mar 20 10:32:52 dhcp dnsmasq-dhcp[7657]: 2099714365 client provides name: dnstest
보시다시피 다음 줄이 있습니다.
DHCPOFFER(ens192) 10.53.70.177 00:50:56:8f:d4:6f
범위 내에 있으므로 올바른 IP입니다. 그러나 나는 다음 줄을 보았습니다.
DHCPDISCOVER(ens192) 10.53.70.245 00:50:56:8f:d4:6f
그래서 결국 서버는 .245로 끝나는 IP를 사용했는데, 제 질문은 왜 허용 범위 밖의 IP를 사용했느냐는 것입니다.
감사해요.