1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DHCP Questions

Discussion in 'Tomato Firmware' started by michse, Jun 22, 2011.

  1. michse

    michse Addicted to LI Member

    Hi,

    I offer my Laptop a single IP via
    Code:
    dhcp-host=vlan2,00:21:6A:09:xx:xx,00:1E:33:0C:xx:xx,FS-Laptop,192.168.3.109,10h
    but if I have WLAN and cable connected, the second device get an IP from dhcp-range.

    What is wrong?

    michse

    WRT54GL 1.28.7616 -Toastman ND VPN
     
  2. ntest7

    ntest7 Network Guru Member

    Nothing wrong. dnsmasq (wisely) won't assign the same IP to two devices.
     
  3. michse

    michse Addicted to LI Member

    of course, but I tell dnsmasq, that mac one and two get the same IP if they ask. mac two should get no IP adress, if mac one still have the one. I should tell dnsmasq, don't deliver an IP to a mac, that corresponding mac hase still an IP.

    michse
     
  4. ntest7

    ntest7 Network Guru Member

    It's a design decision about what should happen if a MAC is assigned an IP already in use. Choices are to piss off users by not handing out an address at all, or piss off users by handing out a new address.

    You can check the dnsmasq docs or dnsmasq forum to see if it has an option to control how this is handled. I don't think it does.

    IMHO assigning two MACs to the same IP is asking for trouble.
     
  5. michse

    michse Addicted to LI Member

    the background is to give an laptop only one ip at all, even lan and wlan are connected.

    thank you michse
     
  6. ntest7

    ntest7 Network Guru Member

    "the background is to give an laptop only one ip at all, even lan and wlan are connected."

    Right. That feature is broken by design.
     
  7. Victek

    Victek Network Guru Member

    ntest7, who broke it? RAF is working without problems
     
  8. ntest7

    ntest7 Network Guru Member

    You misunderstand me, RAF is awesome. The dnsmasq feature that allows one to assign a single IP to two MACs is poorly designed and doesn't (and likely never will) work reliably. This is a dnsmasq design issue and has nothing (directly) to do with Tomato.

    With some equipment under proper conditions it may work most of the time, so I expect some "works great for me" testimonials. But that doesn't make it a reliable feature.

    So, a note to anyone interested in using this feature: If it works for you, great. If it doesn't, don't spend too much time trying to fix it.
     
  9. Victek

    Victek Network Guru Member

    Understood .. thanks :wink:
     

Share This Page