What's new

dnsmasq DHCP options

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

snbJules

New Around Here
I used to use the isc dhcp server on a Linux box and was able to assign the same IP to two different mac addresses so that RDP, SSH, etc would work seamlessly when I switched my laptop between wired & wireless networks.

I've done some digging on the dnsmasq options and I THINK this should do what I need:

dhcp-host=xx:xx:xx:xx:xx:xx,yy:yy:yy:yy:yy:yy,192.168.1.40.

I've created a dnsmasq.postconf script to append that line onto /etc/dnsmasq.conf and I see it in the .conf file after the router's booted.

My machine takes the right address on the wired mac, but not on the wifi.

Can anyone shed some light on making this work? or on replacing dnsmasq with isc dhcp on the router?
 
I have a similar setup but use dnsmasq.conf.add instead.

Code:
dhcp-host=xx:xx:xx:xx:xx:xx,yy:yy:yy:yy:yy:yy,HostName,10.10.10.2
 
Last edited by a moderator:
Thank you!

I had tried a .add file before with the same results as the postconf, but adding the hostname fixed it.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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