udhcpdがDHCP要求に応答しないのはなぜですか?

udhcpdがDHCP要求に応答しないのはなぜですか?

udhcpd.confアドレス 192.168.100.30 で DHCP サーバーを構成しようとしています。ファイルの内容は次のとおりです。

# Sample udhcpd configuration file (/etc/udhcpd.conf)

# The start and end of the IP lease block

start       192.168.100.25  #default: 192.168.0.20
end         192.168.100.29  #default: 192.168.0.254


# The interface that udhcpd will use

interface   eth0        #default: eth0


# The maximim number of leases (includes addressesd reserved
# by OFFER's, DECLINE's, and ARP conficts

#max_leases 254     #default: 254


#Examles
opt dns 8.8.8.8
option  subnet  255.255.255.240
opt router  192.168.100.30
option  dns 8.8.8.4     # appened to above DNS servers for a total of 3
option  domain  local
option  lease   864000      # 10 days of seconds

その後、別のコンピュータで実行すると

dhclient -v -d -s 192.168.100.30 eth0

明らかにする

/# dhclient -v -d -s 192.168.100.30 eth0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:60:eb:02:f7:c1
Sending on   LPF/eth0/b6:60:eb:02:f7:c1
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 192.168.100.30 port 67 interval 8
DHCPDISCOVER on eth0 to 192.168.100.30 port 67 interval 9
DHCPDISCOVER on eth0 to 192.168.100.30 port 67 interval 13

サーバーで tcpdump を使用すると、要求を受け取ることがわかるので、クライアントが機能しているようです。それにもかかわらず、サーバーは要求に応答しません。問題を解決する方法をご存知ですか?

ベストアンサー1

クライアントにまだIPv4がないため、これはオプション-s <ip>では機能しません。dhclient

おすすめ記事