@
swordsmile dnsmasq.conf 是未配置状态,只有一行 log-facility=/dev/null ,似乎配置内容都在/etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option localservice '1'
option min_cache_ttl '3600'
option dns_redirect '1'
option ednspacket_max '1232'
option noresolv '1'
option localuse '1'
option logqueries '1'
list server '127.0.0.1#7874'
config dhcp 'lan'
option interface 'lan'
option start '50'
option limit '200'
option leasetime '12h'
option dhcpv4 'server'
option ra 'server'
list ra_flags 'other-config'
option max_preferred_lifetime '2700'
option max_valid_lifetime '5400'
config host
option name 'Raspberry-pi'
option dns '1'
list mac '**:**:**:**:88:46'
option ip '192.168.70.30'
option leasetime 'infinite'
list match_tag 'known'
我删除了/tmp/dhcp.leases 文件后,在树莓派上 dhclient -v -r ,反馈
Listening on LPF/eth0/**:**:**:**:88:46
sending on LPF/eth0/**:**:**:**:88:46
DHCPRELEASE of 192.168.70.59 on eth0 to 192.168.70.1 port 67
然后 dhclient 获取到的依然是 70.59ip
openwrt 的网络-dhcp/dns-静态地址分配处显示如图: