Monday, October 8, 2018

Dnsmasq & /etc/network/interfaces

This is a bit of a trivial use-case but nonetheless I am turning a raspberry pi into a pxe server. In a home setup I do not have ethernet which is required for pxe, so this is the workaround, just plug the raspberry pi in wherever required.

I set up the dhcp via dnsmasq, it works well enough but I get a bit of a conflict in /etc/network/interfaces. If I enable wifi I want that separate interface to use dchp, but if dnsmasq sees dchp used anywhere in the file then it simple does not work. It is kind of disappointing, because in the dnsmasq setup I have a line where I actively filter to ethernet, interface=eth0.

It is not crucial, I can switch between wifi and dhcp until I get all the relevant services onto the pi, and then manage the images via NFS.

Still it seems interesting, is this a hard limitation being imposed by dnsmasq, or is there a way around it?



No comments:

Post a Comment