[Dnsmasq-discuss] DHCP: different IPs for same same MAC

Sven Köhler skoehler at upb.de
Sun May 4 19:00:04 BST 2008


Hi,

here's the leases file from a currently running dnsmasq installation:
86400 00:12:f0:a1:81:7d 10.1.2.233 bert 01:00:12:f0:a1:81:7d
86400 00:12:f0:a1:81:7d 10.1.2.22 * 
ff:65:74:68:31:00:01:00:01:0e:91:06:82:00:00:f0:7a:14:04

How can that be? Same MAC-addresses, but different IPs?

Well, if i boot Linux on this comuter, it get's the 10.1.2.22.
If i boot Windows, then it get's the 10.1.2.233. Why is that?
(BTW: if i delete the leases file, restart dnsmasq, and boot windows 
first, then windows get's the 22 and linux get's the 233).

dnsmasq's DHCP is driving me crazy.
I want my computer to get the same IP, no matter what OS.


BTW: my dnsmasq.conf looks like this:
interface=br0
resolv-file=/tmp/resolv.dnsmasq
domain=sven.home-net
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=238
dhcp-option=lan,3,10.1.2.1
dhcp-option=44,10.1.1.1
dhcp-option=6,10.1.1.1
dhcp-authoritative
dhcp-range=lan,10.1.2.16,10.1.2.253,255.255.255.0,1440m
dhcp-option=lan,3,10.1.2.2
dhcp-option=121  ,  10.1.1.0/24,10.1.2.2  ,  0.0.0.0/0,10.1.2.2
dhcp-option=249  ,  10.1.1.0/24,10.1.2.2  ,  0.0.0.0/0,10.1.2.2
dhcp-host=00:00:F0:7A:14:04  ,  10.1.2.21 #bert
dhcp-host=00:12:F0:A1:81:7D  ,  10.1.2.22 #bert-wlan


Any idea's, how to solve that?

Note, that there's a reservation for the computer that occurs twice in 
the leases file above. That makes it even stranger, that Windows gets an 
IP different from the one Linux gets.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20080504/7aa6977c/signature.pgp


More information about the Dnsmasq-discuss mailing list