[Dnsmasq-discuss] dhcp-host ignore help

Simon Kelley simon at thekelleys.org.uk
Fri Jan 11 16:40:19 GMT 2013


On 11/01/13 00:25, Joe Giles wrote:
> Hi List,
> 
> I have been needing a dhcp proxy in our environment spicifically to proxy pxe requests to a tftp server. I am using
> RHEL6.3 and have the following versions installed:
> 
> dnsmasq-2.48-6.el6.x86_64
> 
> I have also tried the latest to see if there were bugs related to this that got fixed.
> 
> The DHCP server is another Linux server and uses next-server to pass requests to the proxy DHCP server (dnsmasq server)
> and for the most part works like a charm.
> 
> However, I am not able to ignore spicific hosts based on mac address. Here is my conf file:
> 
> port=0
> listen-address=192.168.0.5
> log-dhcp
> tftp-root=/var/lib/tftpboot
> dhcp-boot=pxelinux.0
> dhcp-option=vendor:PXEClient,6,2b
> dhcp-no-override
> pxe-prompt="Press F8 for boot menu", 0
> pxe-service=X86PC, "Boot from network", pxelinux
> pxe-service=X86PC, "Boot from local hard disk", 0
> dhcp-host=1c:c1:de:20:3b:0a,ignore
> dhcp-range=192.168.0.5,proxy
> 
> As you can see, I have a host listed with mac address and ignore listed. But, when this host network boots, it 
> is still routed to the pxelinux menus.
> 
> I have tried the follownig - Not all at once, however:
> 
> dhcp-host=1c:c1:de:20:3b:0a,net:nopxe
> 
> and
> 
> dhcp-ignore=tobeignored
> dhcp-mac=tobeignored,1c:c1:de:20:3b:0a


Try

dhcp-ignore=tag:tobeignored
dhcp-mac=set:tobeignored,1c:c1:de:20:3b:0a


That _should_ work, I think.


Cheers,

Simon.

> 
> Neither of these work.
> 
> Here are some bits from my log:
> 
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 Available DHCP subnet: 192.168.0.5/255.255.255.0
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 Vendor class: PXEClient:Arch:00000:UNDI:002001
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 PXE(eth1) 1c:c1:de:20:3b:0a proxy
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 tags: known, eth1
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 bootfile name: pxelinux.0
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size:  1 option: 53:message-type  05
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size:  4 option: 54:server-identifier  192.168.0.5
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size:  9 option: 60:vendor-class  50:58:45:43:6c:69:65:6e:74
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size: 17 option: 97:client-machine-id  00:35:38:33:39:31:34:55:53:45:30:35:30...
> Jan 10 10:15:46 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size: 82 option: 43:vendor-encap  06:01:02:09:30:80:00:11:42:6f:6f:74:20...
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 Available DHCP subnet: 192.168.0.5/255.255.255.0
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 Vendor class: PXEClient:Arch:00000:UNDI:002001
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 PXE(eth1) 192.168.0.101 1c:c1:de:20:3b:0a pxelinux.0
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 tags: known, eth1
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 bootfile name: pxelinux.0
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 next server: 192.168.0.5
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size:  1 option: 53:message-type  05
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size:  4 option: 54:server-identifier  192.168.0.5
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size:  9 option: 60:vendor-class  50:58:45:43:6c:69:65:6e:74
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size: 17 option: 97:client-machine-id  00:35:38:33:39:31:34:55:53:45:30:35:30...
> Jan 10 10:15:47 DL380G7G44U10 dnsmasq-dhcp[24739]: 3743431434 sent size: 35 option: 43:vendor-encap  47:04:80:00:00:00:0a:17:00:50:72:65:73...
> Jan 10 10:15:47 DL380G7G44U10 snmpd[1979]: Connection from UDP: [127.0.0.1]:42914->[127.0.0.1]
> ...
> 
> 
> As you can see, it sees the correct mac address, but looks like it converts it to some sort of ID. So, I tried this:
> 
> 
> dhcp-host=1c:c1:de:20:3b:0a,id:*,ignore
> 
> and this did not work either.
> 
> Anyone have any ideas how I can get this to work?
> 
> Thanks so much!
> Joe
> 
> _______________________________________________
> 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