[Dnsmasq-discuss] basic configuration of bootp service

Simon Kelley simon at thekelleys.org.uk
Tue Nov 15 15:23:12 GMT 2011


On 15/11/11 15:01, Tim O'Gara wrote:
> I want to configure dnsmasq to provide a bootp service to an embedded
> device. I only want to set the IP address, net mask and possibly the
> gateway address. I don't need tftp or anything else that I know of.
> Basically, I want to have the functionality to change an IP
> address/netmask based on a hardware MAC address. I am trying to
> replicate the functionality of the Phoenix IPAssign.exe on a Linux box
> (RHEL WS 5.6)
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


Assume that your network is 192.168.1.0/24, ie netmask is 255.255.255.0

dhcp-range=192.168.1.0,static,255.255.255.0

# set IP address for host.
dhcp-host=00:11:22:33:44:55, 192.168.1.10


# set Gateway address to 192.168.1.45 for all hosts
dhcp-option = 3, 192.168.1.45


It doesn't make sense to set netmask per-host, but it might make sense 
for gateway, in which case something like


dhcp-host = set:host-10, 00:11:22:33:44:55, 192.168.1.10
dhcp-option = tag:host-10, 3, 192.168.1.46

will do it.

HTH


Simon.



More information about the Dnsmasq-discuss mailing list