[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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


Reply to: