Re: Dynamically assign IP based on MAC



DEBEDb wrote:
Hi all,

I understand how to assign static IP addresses with DHCP
based on MAC. But here's what I'd like to do: I'd like to dynamically
assign an IP address to a MAC based on some rule (the rule really
is: look up this MAC in a table and give the IP address from that table,
unless it doesn't exist, in which case assign a new one and enter it
into the table). In other words, you'll get the same IP every time you
connect with the same MAC, but we don't know all MACs beforehand.


IME DHCP tends to give the same IP to the same machine unless it
gets starved for addresses and reuses it. Not sure what the underlying
rules are though.
.



Relevant Pages

  • Re: Preventing DHCP from allocating IPs
    ... Each segment is physically separate with a Linux ... unknown MAC addresses firstly don't get a DHCP ... >> wants access to your network, they will have to come to you to obtain ...
    (Security-Basics)
  • Re: Secure your DHCP
    ... I can only think of allocating via dhcp reservation using network card ... Create an exclusion of your whole DHCP scope (So no IP's are free to be ... assign each mac address an Ip address from what was in your pool. ...
    (microsoft.public.windows.server.sbs)
  • Re: static IP addresses on LAN
    ... One Mac is an intel iMac, ... it is connected to the network and internet... ... If I instead configure it to use DHCP, then it gets assigned the wrong IP ... The other possibility is that you have more than 1 router. ...
    (comp.sys.mac.system)
  • Re: works on desk computer but not on wireless laptop
    ... RARP server, the DHCP server, or manually? ... So I chose that and now it wants to know the DHCP Client ID. ... And a 12 character number like a Mac ID. ... The OEM computer MAC address is the same as the DHCP ...
    (alt.internet.wireless)
  • Re: Iptables port 5353 -
    ... I would think she must have access to the DNS server provided by ... don't recall what was done and I am lost whenever I use her Mac ... ... server supplied by the DHCP server. ...
    (Fedora)