[Dnsmasq-discuss] dhcpd3 to dnsmasq : grouping using the network-id

Simone 3nomis at gmail.com
Wed Feb 3 10:17:20 GMT 2010


Hi Simon,

 thank you very much for help.

2010/2/2 Simon Kelley <simon at thekelleys.org.uk>:
> Simone wrote:

> You need to take advantage of the ability to give more than one tag in
> dhcp-boot and dhcp-option. The tags are ANDed together, so the line is only
> valid if both tags exist.
>
> dhcp-boot=net:pxe,net:ns1,/ltsp/i386/pxelinux.0,ltsp-server,192.168.11.252
> dhcp-boot=net:eth,net:ns1,/ltsp/i386/pxelinux.0,ltsp-server,192.168.11.252
>
> dhcp-boot=net:pxe,net:ns2,/ltsp/i386/pxelinux.0,ltsp-server,192.168.11.253
> dhcp-boot=net:eth,net:ns2,/ltsp/i386/pxelinux.0,ltsp-server,192.168.11.253
>
> And then set either tag ns1 or tag ns2, depending on which host is in use
>
> dhcp-host=00:0c:30:20:b3:13,192.168.11.101,ltsp001,net:ns1
> dhcp-host=00:0c:10:11:d1:23,192.168.11.102,ltsp002,net:ns1
> dhcp-host=00:0c:10:50:c3:12,192.168.11.103,ltsp003,net:ns2
> dhcp-host=00:0c:40:30:b4:15,192.168.11.104,ltsp004,net:ns2

I tried your code and it worked great :)

Simone



More information about the Dnsmasq-discuss mailing list