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

Re: IP address depending on the MAC



On 03.10.2011 12:38, Darac Marjal wrote:

I'm not sure about hostname but there IS a way to assign a static IP
address to an interface based on it's MAC address. It's called StateLess
Address Autoconfiguration (SLAAC). Basically, you take the 48-bit mac
address, modify it a little (mainly adding FF:FE in the middle) and you
now have a 64-bit interface identifier. This becomes the second half of
your IP address.

For the first half of the address, you will either use the standard
link-local prefix, or if you can use a route-advertising daemon
(package: radvd), you can advertise a site-wide prefix to allow the
machines to be addressed from anywhere. I suspect, though, that the
link-local prefix should be fine for your purposes, though.

This is alright for the IPv6 addresses, but I'm using the IPv4. However, maybe I should migrate to IPv6. Thanks for the tip!

--
Ireneusz (Irek) Szczesniak
http://www.irkos.org


Reply to: