[Dnsmasq-discuss] 2 PXE servers

Helmut Hullen Hullen at t-online.de
Wed Mar 30 11:52:00 BST 2011


Hallo, Miguel,

Du meintest am 29.03.11:


>> # Tipp von Clemens Fischer, dnsmasq-Mailingliste 12.6.2010
>>
>> dhcp-mac = set:fog, 00:0d:60:76:4f:1c
>> dhcp-mac = set:fog, 11:22:33:44:55:66
>> # may be repeated for other machines
>>
>> pxe-service = tag:fog,x86PC,"fog",gpxelinux,192.168.0.5
>> pxe-service = tag:!fog,x86PC,"Arktur",gpxelinux,192.168.0.1
>> #

> This is my current config in /etc/dnsmasq.conf:

> bogus-priv
> conf-file=/etc/dnsmasq/dhcp.conf
> dhcp-authoritative
> dhcp-lease-max=1000
> dhcp-mac = set:fog, 00:01:2e:bc:2e:49 #MAC for zbox in living room
> pxe-service = tag:fog,x86PC,"fog",gpxelinux,192.168.1.127 #xbmcMaster
> dhcp-boot=pxelinux.0
> dhcp-boot=192.168.1.182
> pxe-service=x86PC, pxelinux.0, pxelinux, 192.168.1.182
> domain-needed
> domain=EXAMPLE.com
> expand-hosts
> no-negcache
> strict-order
> user=nobody

> I'm assuming that we created the "tag" fog, then we are using it to
> identify systems? If so, I could call it anything I want correct?

"fog" and "Arktur" are just labels without any technical meaning; I've  
chosen the names of the corresponding hosts. The actual name is shown on  
the PXE-boot-screen of the client.

> I'm also assuming that it will read the config in sequence, so if it
> does not match the first PXE settings it will take the next as
> default.  Or do I have to now list all MAC addresses and assign them
> to a tag and PXE configuration?

Sorry - I don't know. I'm only a user, no code writer.
> Thanks for your prompt reply, wife has been sick so I have not had
> time to test this out.

> Cheers,
> Miguel



> On Mon, Mar 28, 2011 at 2:26 AM, Helmut Hullen <Hullen at t-online.de>
> wrote:

>> Hallo, Miguel,
>>
>> Du meintest am 28.03.11:
>>
>>> I need to know if there is a way to configure dnsmasq to send
>>> specific MACs to a different PXE server.  On my current setup I
>>> have a PXE server managed by cobbler, however I have some diskless
>>> clients that I need to go to a different PXE server.  So I have a
>>> "global" next-server line that points to my cobbler and would like
>>> (hoping it can be done) to have a next-server line specific to a
>>> client's MAC address.
>>
>>
>>
>> Viele Gruesse!
>> Helmut
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>


Viele Gruesse!
Helmut



More information about the Dnsmasq-discuss mailing list