[Dnsmasq-discuss] Fw: dnsmasq not assigning static IP [SOLVED]
C.Keschnat at vervum.de
C.Keschnat at vervum.de
Mon Sep 22 15:33:40 BST 2014
I got it working, although there is repitition of the MAC now:
dhcp-mac=set:fcyo,08:00:27:2a:e0:d2
dhcp-host=08:00:27:2a:e0:d2,192.168.4.124,fcyo,infinite
dhcp-option=tag:fcyo,3,192.168.4.253
dhcp-boot=tag:fcyo,fai/pxelinux.0,fai2,192.168.4.11
----- Weitergeleitet von Chris Keschnat/infoquenz am 2014-09-22 04:32 PM
-----
Von:
Chris Keschnat/infoquenz
An:
dnsmasq-discuss at lists.thekelleys.org.uk
Datum:
2014-09-18 10:50 AM
Betreff:
dnsmasq not assigning static IP
Hey,
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.
So far this worked:
dhcp-mac=hal,ac:22:0b:52:b0:d1
dhcp-host=hal,192.168.4.70,infinite
dhcp-option=hal,3,192.168.4.253
This still works with my installed machines - I can change the static IP,
delete the lease and the machine gets the new IP.
But this doesn't work:
dhcp-mac=fcyo,08:00:27:2a:e0:d2
dhcp-host=fcyo,192.168.4.110,infinite
dhcp-option=fcyo,3,192.168.4.253
dhcp-boot=tag:fcyo,fai/pxelinux.0,fai,192.168.4.49
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).
The IP is not in the leases file but dnsmasq offers a different IP:
Sep 18 10:18:49 dnsmasq-dhcp[17291]: 1221326698 DHCPDISCOVER(eth0)
08:00:27:2a:e0:d2
Sep 18 10:18:49 dnsmasq-dhcp[17291]: 1221326698 DHCPOFFER(eth0)
192.168.4.122 08:00:27:2a:e0:d2
Sep 18 10:18:49 dnsmasq-dhcp[17291]: 1221326698 DHCPREQUEST(eth0)
192.168.4.122 08:00:27:2a:e0:d2
Sep 18 10:18:49 dnsmasq-dhcp[17291]: 1221326698 DHCPACK(eth0)
192.168.4.122 08:00:27:2a:e0:d2
Only the dhcp-host line doesn't work. The client gets the gateway and the
PXE-Server correctly.
I have tried all this with a physical machine and the problem persists, so
I don't think it is related to Virtualbox.
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).
I have no more ideas. Any hints?
Below is a snippet of dnsmasq.conf. I left out the comments, some other
static IPs and the parts for samba4 with Active Directory:
log-queries
log-dhcp
log-facility=/var/log/dnsmasq.log
dhcp-option=tag:gateway1,3,192.168.4.253
dhcp-option=tag:gateway2,3,192.168.4.254
dhcp-range=set:gateway2,192.168.4.80,192.168.4.252,255.255.255.0,12h
mx-target=iq.vervum.local
domain-needed
bogus-priv
filterwin2k
dhcp-authoritative
expand-hosts
domain=vervum.local
dhcp-option=1,255.255.255.0
dhcp-option=6,192.168.4.18,192.168.4.22
dhcp-option=44,192.168.4.22
dhcp-option=4,192.168.4.22
dhcp-option=42,192.168.4.22
dhcp-boot=linux/pxelinux.0,opsi3,192.168.4.45
dhcp-mac=hal,ac:22:0b:52:b0:d1
dhcp-host=hal,192.168.4.70,infinite
dhcp-option=hal,3,192.168.4.253
dhcp-mac=tywin,00:0c:29:9c:c2:92
dhcp-host=tywin,192.168.4.71,infinite
dhcp-option=tywin,3,192.168.4.253
dhcp-mac=fai,08:00:27:e5:8d:1f
dhcp-host=fai,192.168.4.49,infinite
dhcp-option=fai,3,192.168.4.253
dhcp-mac=fcyo,08:00:27:2a:e0:d2
dhcp-host=fcyo,192.168.4.110,infinite
dhcp-option=fcyo,3,192.168.4.253
dhcp-boot=tag:fcyo,fai/pxelinux.0,fai,192.168.4.49
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20140922/35635ab9/attachment.html>
More information about the Dnsmasq-discuss
mailing list