--- a/README Thu Feb 26 14:40:37 2015 +0200
+++ b/README Thu Feb 26 14:48:35 2015 +0200
@@ -31,15 +31,15 @@
$ bin/pvl.hosts-dhcp etc/hosts/test
host foo {
- option host-name "foo";
- hardware ethernet 00:11:22:33:44:55;
- fixed-address 127.0.0.1;
+ option host-name foo;
+ hardware ethernet 00:11:22:33:44:55;
+ fixed-address 127.0.0.1;
}
host bar {
- option host-name "bar";
- hardware ethernet 01:23:45:67:89:ab;
- fixed-address 127.0.0.2;
+ option host-name bar;
+ hardware ethernet 01:23:45:67:89:ab;
+ fixed-address 127.0.0.2;
}
=== Generated hosts ===
@@ -81,3 +81,31 @@
245.0.0 CNAME 245.240/29.0.0.10.in-addr.arpa.
246.0.0 CNAME 246.240/29.0.0.10.in-addr.arpa.
247.0.0 CNAME 247.240/29.0.0.10.in-addr.arpa.
+
+=== DHCP Options ===
+The hosts need not specify any fixed ip address, leaving IP address allocation to dhcpd:
+
+ [foo]
+ ethernet = 00:11:22:33:44:55
+
+ $ bin/pvl.hosts-dhcp etc/hosts/dhcp1
+ host foo {
+ option host-name foo;
+ hardware ethernet 00:11:22:33:44:55;
+ }
+
+=== DHCP Boot options ===
+The hosts can specify DHCP boot server/file options:
+
+ [foo]
+ ethernet = 00:11:22:33:44:55
+ boot = boot.lan:debian/wheezy/pxelinux.0
+
+ $ bin/pvl.hosts-dhcp etc/hosts/boot.dhcp
+ host foo {
+ option host-name foo;
+ hardware ethernet 00:11:22:33:44:55;
+ next-server boot.lan;
+ filename debian/wheezy/pxelinux.0;
+ }
+