Re: IP address depending on the MAC



On Sun, Oct 02, 2011 at 05:31:59PM BST, Ireneusz Szcześniak wrote:
I'm planning to install an image of Debian to a number of computers.
Each of these computers will have the same configuration except the
hostname and the IP address. The IP configuration has to be static.
I can't use a DHCP server.

QUESTION; Is there a way to assign a hostname and a static IP
address at boot time depending on the MAC address of the computer's
network interface card?

I was about to suggest preseeding as well - works great if you combine
it with pxelinux, even if you need to set up a DHCP server on a small
subnet only for that purpose. But if it doesn't, your option is a
script - try some scripts/rules from ifupdown* packages and/or maybe
combined them with one of the IP autoconfig utils found in Debian.

Regards,
--
Raf


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20111002203733.GA21107@xxxxxxxxxxxxx



Relevant Pages

  • Re: IP address depending on the MAC
    ... Each of these computers will have the same configuration except the ... Is there a way to assign a hostname and a static IP address at ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: IP address depending on the MAC
    ... I'm planning to install an image of Debian to a number of computers. ... Each of these computers will have the same configuration except the ... Is there a way to assign a hostname and a static IP address at ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • IP address depending on the MAC
    ... Each of these computers will have the same configuration except the hostname and the IP address. ... Is there a way to assign a hostname and a static IP address at boot time depending on the MAC address of the computer's network interface card? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: IP address depending on the MAC
    ... Each of these computers will have the same configuration except the ... Is there a way to assign a hostname and a static IP address ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: IP address depending on the MAC
    ... can't use a DHCP server. ... I'm planning to install an image of Debian to a number of computers. ... Is there a way to assign a hostname and a static IP address at ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)