Matan Ziv-Av wrote:

On Sun, 23 Jan 2005, Eli Marmor wrote:

What I wanted was to store the IP address of a diskless machine (live-
CD based) when no DHCP server is available. I get it as input from the
user in the first boot, but I can't store it in the network, because I
can't access the network without this IP. And I don't want to depend on
an extra flash.


Is there no server at all? If there is you might be able to use RARP or BOOTP.

You can set the low bits of the IP as some hash of the MAC address. If you can give a whole class B (or even A) to this network, then the chance of collisions is small.

Alternativly you can automatically configure the IP of the machine using Zeroconf Link Local IPv4 (Also known as Auto IP in MS-Windows).


See:
http://www.upnp.org/download/draft-ietf-zeroconf-ipv4-linklocal-01-Apr.txt
man zcip

While not yet a standard, its widely supported - there are even home routers which support ad-hoc link local networks. IIRC several Linux distros support this out-of-the-box

--
Oded

::..
Excuses are the easiest things to manufacture, and the hardest things to sell.


================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to