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

richardvoigt at gmail.com richardvoigt at gmail.com
Sun May 4 21:17:27 BST 2008


On Sun, May 4, 2008 at 6:00 PM, Sven Köhler <skoehler at upb.de> wrote:
> 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).

One is sending a client ID and one is not.  The fact that switching
them reverses it seems odd to me, since I would have a possible
explanation if it didn't...

Is there an entry in /etc/hosts or /etc/ethers?

>
>  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.
>
>
> _______________________________________________
>  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