What's new

Bad DHCP host name error

cdikland

Regular Contributor
To manually Assign IP around the DHCP list, I added "dhcp-hostsfile=/jffs/etc/dnsmasq/static_leases" to /jffs/configs/dnsmasq.conf.add and created a script (/jffs/etc/dnsmasq/static_leases) that contains 1 record for each IP I want to assign.

Record Example: E8:39:35:CC:E7:34,HP Printer,192.168.1.246,10080m

When I reboot the router these names are not assigned and the system log file indicates "bad DHCP host name at line n of /jffs/etc/dnsmasq/static_leases" for each entry.

I know the names are fine because I can manually enter them on the LAN/DHCP Server page. Seems I must have an error in the way I structured this script file.

Anyone know what I have wrong in the record structure in this file??


Using N66U router with Firmware:3.0.0.4.374.39 (Merlin build)
 
Last edited:
Valid hostnames cannot contain spaces.
 
Valid hostnames cannot contain spaces.

Which I originally assumed to be the culprit however, these
00:16:76:b6:2c:78,DIMENSION9200,192.168.1.232,infinite
a4:ba:db:fb:84:ae,ALIENWAREPC,192.168.1.230,infinite

failed as well:confused:


I stand corrected. Removing the spaces from host names and I no longer get the error noted above however...
The script will not manually assign IP around the DHCP list. I have this feeling I have been led astray here. I have found that my rather large list can be added manually with

nvram set dhcp_staticlist="<18:B4:30:02:5D:FC>192.168.1.200>Nest Thermostat.... many many more ........ <EC:1A:59:68:5D:19>192.168.1.201>Foyer Motion \
<A4:BA:CB:FB:84:AE>192.168.1.230>ALIENWAREPC<B8:AC:6F:A4:16:7A>192.168.1.231>Studio-XPS"
nvram commit
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
Jeje2 DHCP Manually assigned IP not used ASUS Wi-Fi 13
Jeje2 Solved DHCP - listing of IP leases? ASUS Wi-Fi 3

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top