-2
我試圖使用udhcpd,在busybox中的一個DHCP服務器來獲取IP地址。 我正在研究一個帶有標準linux的ARM平臺。從udhcpd獲得的網絡掩碼的問題
根據udhcpd.conf文件中設置的範圍,但DHCP掩碼設置爲255.255.255.255,dhcp客戶端IP地址正常。 如果我手動將其更改爲255.255.255.0,服務完美工作,但我不明白爲什麼網絡掩碼設置爲此,可以修改哪些內容以使其自動生效。
的(簡單)的conf文件:
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# Values shown are defaults
# The start and end of the IP lease block
start 192.168.7.2
end 192.168.7.254
# The interface that udhcpd will use
interface usb0
option subnet 255.255.255.0 (tested with or without this option)
希望有人能夠幫助我undertand什麼