macaddrs.html

Previous: dhcp.config.html Next: ?

You MUST COLLECT THE MAC ADDRESSES.

To collect MAC addresses the first time, you will want to try booting each and every cluster node in turn, after setting the proper boot variables in Open Firmware, such that OF looks for our $dhcp_server, before giving up and booting MacOS.

Since you don't already know the mac addresses of the machines, and since our $dhcp_server's dhcpd.config is set to 'deny unknown-clients', the dhcpd will log denial messages to the systems log files in the /var/log directory.

Use grep to extract the logged MAC addresses. Simple.

Example: grep -i unknown /var/log/* > macaddresses.txt

Once you have them neatly trimmed you can add them to /etc/dhcpd.config as 'host' stanzas.

Example:

	host slave002 {
	  fixed-address 192.168.2.2;
	  hardware ethernet  00:30:65:B8:4C:98;
	}

You can put it all one line too if you like. I used a one line, command line perl program to extract the mac addresses and add them to /etc/dhcpd.config in the correct format. WHen I find it in the logs I will show it in this document. Sucker.