[Dnsmasq-discuss] PXE Menu routing

Joe Giles jgiles at joeman1.com
Tue Jun 18 22:11:36 BST 2013


Hi Simon,

Thanks for the reply...

However, I am running into a little difficulty with an error. When I 
try to start the new configuration, all that is displayed is:

service dnsmasq restart
Shutting down Lightweight caching nameserver (dnsmasq):    [  OK  ]
Starting Lightweight caching nameserver (dnsmasq):
dnsmasq: error at line 12 of /etc/dnsmasq.conf
                                                            [FAILED]


Here is how the config file is set up. Perhaps you can see where the 
error is? The file name (ms_linux.menu) is a file under the 
tftpboot/pxelinux.cfg directory.

With out the addition of line 12, the config works without issue..

----------------------------------------------------------------
port=0
interface=eth0
listen-address=10.226.152.70,127.0.0.1
tftp-root=/var/lib/tftpboot
dhcp-ignore=tag:tobeignored
dhcp-boot=pxelinux.0
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt="Press F8 for boot menu", 0
pxe-service=tag:serial, "Moonshot boot", ms_linux.menu  
<------------------ This is line 12
pxe-service=X86PC, "Boot from network", pxelinux
pxe-service=X86PC, "Boot from local hard disk", 0
dhcp-range=10.226.152.70,proxy,255.255.254.0

# Technology Row DHCP Proxy Addresses
dhcp-range=10.226.11.254,proxy,255.255.254.0
dhcp-range=10.226.13.254,proxy,255.255.254.0
dhcp-range=10.226.15.254,proxy,255.255.254.0
dhcp-range=10.226.17.254,proxy,255.255.254.0
dhcp-range=10.226.21.254,proxy,255.255.254.0
dhcp-range=10.226.23.254,proxy,255.255.254.0
...

#Mac Address Block Filter for Ignite servers
dhcp-mac=set:tobeignored,00:30:6E:4A:42:43
dhcp-mac=set:tobeignored,00:30:6E:0C:7A:C2
dhcp-mac=set:tobeignored,00:30:6E:27:2C:FC
dhcp-mac=set:tobeignored,00:30:6E:08:3F:3B
...

#Moonshot Configuration
dhcp-mac=set:serial,38:ea:a7:0f:46:ba
dhcp-mac=set:serial,38:ea:a7:0f:46:bb
----------------------------------------------------------------


Thanks!
Joe


On 2013-06-18 11:01, Simon Kelley wrote:
> On 18/06/13 17:55, Joe Giles wrote:
>> Thanks Simon,
>>
>> I assume, based on the information you provided, we can also filter 
>> by
>> IP address and/or a range as well?
>
> Yes, there are lots of ways to set tags, which are then used to
> select pxe-service menu entries.
>
>
> Simon.
>
>>
>> Thanks again!
>> Joe Giles
>>
>> On 2013-06-18 2:39, Simon Kelley wrote:
>>> On 18/06/13 03:52, Joe Giles wrote:
>>>> Hi List,
>>>>
>>>> Not sure if this is possible, but would we be able to create a 
>>>> dnsmasq
>>>> config so that different mac addresses get different PXE menus?
>>>>
>>>> We have some new servers that only have a serial connection to pxe 
>>>> boot
>>>> so our graphical pxe menus just display garbage on the screen. We 
>>>> have
>>>> tested this by disabling the graphical menus and they came up 
>>>> fine. Only
>>>> problem is, we don't want to disable the graphical menus for all
>>>> machines.
>>>>
>>>> So, we were wondering if its possible to create tags with mac 
>>>> addresses
>>>> to point certain machines to different pxe menus. One group would 
>>>> get
>>>> the graphical menus and the other would get just a basic text 
>>>> menu.
>>>>
>>>> If this is possible could you provide some examples?
>>>>
>>>> Thanks so much!
>>>> Joe
>>>>
>>>>
>>>
>>> It's certainly possible:
>>>
>>> set a tag for serial machines with something like
>>>
>>> dhcp-mac=set:serial, 01:02:03:04:*:*
>>>
>>> Then disable the graphical pxe-service lines with
>>>
>>> pxe-service=tag:!serial,"menu text", filename.
>>>
>>>
>>> Which says to use that line only when the "serial" tag is NOT set.
>>>
>>>
>>>
>>> Cheers,
>>>
>>> Simon.
>>>
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list