<font size=2 face="sans-serif">Hey,</font>
<br><font size=2 face="sans-serif">I am trying to assign static IPs based
on MACs. So far it has worked for my machines but now I can't seem to get
it working for new machines.</font>
<br><font size=2 face="sans-serif">So far this worked:</font>
<br><font size=2 face="sans-serif">dhcp-mac=hal,ac:22:0b:52:b0:d1</font>
<br><font size=2 face="sans-serif">dhcp-host=hal,192.168.4.70,infinite</font>
<br><font size=2 face="sans-serif">dhcp-option=hal,3,192.168.4.253</font>
<br>
<br><font size=2 face="sans-serif">This still works with my installed machines
- I can change the static IP, delete the lease and the machine gets the
new IP.</font>
<br><font size=2 face="sans-serif">But this doesn't work:</font>
<br><font size=2 face="sans-serif">dhcp-mac=fcyo,08:00:27:2a:e0:d2</font>
<br><font size=2 face="sans-serif">dhcp-host=fcyo,192.168.4.110,infinite</font>
<br><font size=2 face="sans-serif">dhcp-option=fcyo,3,192.168.4.253</font>
<br><font size=2 face="sans-serif">dhcp-boot=tag:fcyo,fai/pxelinux.0,fai,192.168.4.49</font>
<br>
<br><font size=2 face="sans-serif">The MAC is of a Virtualbox machine (bridged
network) and I'm booting SystemRescueCD just to be sure it's not a client
problem. I have tried with addresses within and outside the dhcp-range
( 80 - 252).</font>
<br><font size=2 face="sans-serif">The IP is not in the leases file but
dnsmasq offers a different IP:</font>
<br><font size=2 face="sans-serif">Sep 18 10:18:49 dnsmasq-dhcp[17291]:
1221326698 DHCPDISCOVER(eth0) 08:00:27:2a:e0:d2</font>
<br><font size=2 face="sans-serif">Sep 18 10:18:49 dnsmasq-dhcp[17291]:
1221326698 DHCPOFFER(eth0) 192.168.4.122 08:00:27:2a:e0:d2</font>
<br><font size=2 face="sans-serif">Sep 18 10:18:49 dnsmasq-dhcp[17291]:
1221326698 DHCPREQUEST(eth0) 192.168.4.122 08:00:27:2a:e0:d2</font>
<br><font size=2 face="sans-serif">Sep 18 10:18:49 dnsmasq-dhcp[17291]:
1221326698 DHCPACK(eth0) 192.168.4.122 08:00:27:2a:e0:d2</font>
<br>
<br><font size=2 face="sans-serif">Only the dhcp-host line doesn't work.
The client gets the gateway and the PXE-Server correctly.</font>
<br><font size=2 face="sans-serif">I have tried all this with a physical
machine and the problem persists, so I don't think it is related to Virtualbox.</font>
<br>
<br><font size=2 face="sans-serif">I read the other (old) threads but nothing
works. The IP is definitely not in /var/lib/misc/dnsmasq.leases (I deleted
the line by hand and restarted dnsmasq).</font>
<br><font size=2 face="sans-serif">I have no more ideas. Any hints?</font>
<br>
<br><font size=2 face="sans-serif">Below is a snippet of dnsmasq.conf.
I left out the comments, some other static IPs and the parts for samba4
with Active Directory:</font>
<br><font size=2 face="sans-serif">log-queries</font>
<br><font size=2 face="sans-serif">log-dhcp</font>
<br><font size=2 face="sans-serif">log-facility=/var/log/dnsmasq.log</font>
<br>
<br><font size=2 face="sans-serif">dhcp-option=tag:gateway1,3,192.168.4.253</font>
<br><font size=2 face="sans-serif">dhcp-option=tag:gateway2,3,192.168.4.254</font>
<br>
<br><font size=2 face="sans-serif">dhcp-range=set:gateway2,192.168.4.80,192.168.4.252,255.255.255.0,12h</font>
<br>
<br><font size=2 face="sans-serif">mx-target=iq.vervum.local</font>
<br>
<br><font size=2 face="sans-serif">domain-needed</font>
<br><font size=2 face="sans-serif">bogus-priv</font>
<br><font size=2 face="sans-serif">filterwin2k</font>
<br><font size=2 face="sans-serif">dhcp-authoritative</font>
<br><font size=2 face="sans-serif">expand-hosts</font>
<br><font size=2 face="sans-serif">domain=vervum.local</font>
<br><font size=2 face="sans-serif">dhcp-option=1,255.255.255.0</font>
<br><font size=2 face="sans-serif">dhcp-option=6,192.168.4.18,192.168.4.22</font>
<br><font size=2 face="sans-serif">dhcp-option=44,192.168.4.22</font>
<br><font size=2 face="sans-serif">dhcp-option=4,192.168.4.22</font>
<br><font size=2 face="sans-serif">dhcp-option=42,192.168.4.22</font>
<br><font size=2 face="sans-serif">dhcp-boot=linux/pxelinux.0,opsi3,192.168.4.45</font>
<br>
<br><font size=2 face="sans-serif">dhcp-mac=hal,ac:22:0b:52:b0:d1</font>
<br><font size=2 face="sans-serif">dhcp-host=hal,192.168.4.70,infinite</font>
<br><font size=2 face="sans-serif">dhcp-option=hal,3,192.168.4.253</font>
<br>
<br><font size=2 face="sans-serif">dhcp-mac=tywin,00:0c:29:9c:c2:92</font>
<br><font size=2 face="sans-serif">dhcp-host=tywin,192.168.4.71,infinite</font>
<br><font size=2 face="sans-serif">dhcp-option=tywin,3,192.168.4.253</font>
<br>
<br><font size=2 face="sans-serif">dhcp-mac=fai,08:00:27:e5:8d:1f</font>
<br><font size=2 face="sans-serif">dhcp-host=fai,192.168.4.49,infinite</font>
<br><font size=2 face="sans-serif">dhcp-option=fai,3,192.168.4.253</font>
<br>
<br><font size=2 face="sans-serif">dhcp-mac=fcyo,08:00:27:2a:e0:d2</font>
<br><font size=2 face="sans-serif">dhcp-host=fcyo,192.168.4.110,infinite</font>
<br><font size=2 face="sans-serif">dhcp-option=fcyo,3,192.168.4.253</font>
<br><font size=2 face="sans-serif">dhcp-boot=tag:fcyo,fai/pxelinux.0,fai,192.168.4.49</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Chris<br>
</font>