README
changeset 480 7e44854e85d4
parent 452 d10f2b2188bb
child 483 19d084bb4afd
equal deleted inserted replaced
479:1e68e3a30b51 480:7e44854e85d4
    29 
    29 
    30 And the associated DHCP hosts:
    30 And the associated DHCP hosts:
    31 
    31 
    32     $ bin/pvl.hosts-dhcp etc/hosts/test
    32     $ bin/pvl.hosts-dhcp etc/hosts/test
    33     host foo {
    33     host foo {
    34             option host-name               "foo";
    34         option host-name foo;
    35             hardware ethernet              00:11:22:33:44:55;
    35         hardware ethernet 00:11:22:33:44:55;
    36             fixed-address                  127.0.0.1;
    36         fixed-address 127.0.0.1;
    37     }
    37     }
    38 
    38 
    39     host bar {
    39     host bar {
    40             option host-name               "bar";
    40         option host-name bar;
    41             hardware ethernet              01:23:45:67:89:ab;
    41         hardware ethernet 01:23:45:67:89:ab;
    42             fixed-address                  127.0.0.2;
    42         fixed-address 127.0.0.2;
    43     }
    43     }
    44 
    44 
    45 === Generated hosts ===
    45 === Generated hosts ===
    46 The hosts file format supports something similar to bind9's $GENERATE directive for hosts:
    46 The hosts file format supports something similar to bind9's $GENERATE directive for hosts:
    47 
    47 
    79     243.0.0                           CNAME 243.240/29.0.0.10.in-addr.arpa.
    79     243.0.0                           CNAME 243.240/29.0.0.10.in-addr.arpa.
    80     244.0.0                           CNAME 244.240/29.0.0.10.in-addr.arpa.
    80     244.0.0                           CNAME 244.240/29.0.0.10.in-addr.arpa.
    81     245.0.0                           CNAME 245.240/29.0.0.10.in-addr.arpa.
    81     245.0.0                           CNAME 245.240/29.0.0.10.in-addr.arpa.
    82     246.0.0                           CNAME 246.240/29.0.0.10.in-addr.arpa.
    82     246.0.0                           CNAME 246.240/29.0.0.10.in-addr.arpa.
    83     247.0.0                           CNAME 247.240/29.0.0.10.in-addr.arpa.
    83     247.0.0                           CNAME 247.240/29.0.0.10.in-addr.arpa.
       
    84 
       
    85 === DHCP Options ===
       
    86 The hosts need not specify any fixed ip address, leaving IP address allocation to dhcpd:
       
    87 
       
    88     [foo]
       
    89         ethernet    = 00:11:22:33:44:55 
       
    90     
       
    91     $ bin/pvl.hosts-dhcp etc/hosts/dhcp1 
       
    92     host foo {
       
    93         option host-name foo;
       
    94         hardware ethernet 00:11:22:33:44:55;
       
    95     }
       
    96 
       
    97 === DHCP Boot options ===
       
    98 The hosts can specify DHCP boot server/file options:
       
    99 
       
   100     [foo]
       
   101         ethernet    = 00:11:22:33:44:55
       
   102         boot        = boot.lan:debian/wheezy/pxelinux.0
       
   103 
       
   104     $ bin/pvl.hosts-dhcp etc/hosts/boot.dhcp 
       
   105     host foo {
       
   106         option host-name foo;
       
   107         hardware ethernet 00:11:22:33:44:55;
       
   108         next-server boot.lan;
       
   109         filename debian/wheezy/pxelinux.0;
       
   110     }
       
   111