|   | 1 | = DHCP Service = | 
          
          
            |   | 2 |  | 
          
          
            |   | 3 | The Dynamic Host Configuration Protocol (DHCP) provides a way to automate and manage the network configurations of all ORBIT attached devices. It has two main functions: | 
          
          
            |   | 4 |  | 
          
          
            |   | 5 |   1.) Assigning networking (IP) configuration | 
          
          
            |   | 6 |   2.) Support for PXE booting | 
          
          
            |   | 7 |  | 
          
          
            |   | 8 | == Configuration == | 
          
          
            |   | 9 |  | 
          
          
            |   | 10 | {{{ | 
          
          
            |   | 11 | authoritative; | 
          
          
            |   | 12 | use-host-decl-names on; | 
          
          
            |   | 13 | ping-check false; | 
          
          
            |   | 14 | ping-timeout 0; | 
          
          
            |   | 15 | default-lease-time 86400; | 
          
          
            |   | 16 | max-lease-time 86400; | 
          
          
            |   | 17 |  | 
          
          
            |   | 18 | subnet 10.11.0.0 netmask 255.255.0.0 { | 
          
          
            |   | 19 |         range  10.11.50.100 10.11.50.255; | 
          
          
            |   | 20 |         option routers 10.11.0.1; | 
          
          
            |   | 21 |         option domain-name-servers 10.0.0.9; | 
          
          
            |   | 22 |         option domain-name "sb1.orbit-lab.org"; | 
          
          
            |   | 23 |         option log-servers 10.11.0.10; | 
          
          
            |   | 24 |         option ntp-servers 10.11.0.10; | 
          
          
            |   | 25 |         ddns-updates off; | 
          
          
            |   | 26 |         ddns-domainname "sb1.orbit-lab.org"; | 
          
          
            |   | 27 |         next-server 10.11.0.40; | 
          
          
            |   | 28 |  | 
          
          
            |   | 29 |         host consolec.sb1.orbit-lab.org {hardware ethernet 00:40:63:D4:09:62; fixed-address consolec.sb1.orbit-lab.org;} | 
          
          
            |   | 30 |         host repository2.sb1.orbit-lab.org {hardware ethernet 00:04:23:9E:DF:58; fixed-address repository2.sb1.orbit-lab.org;} | 
          
          
            |   | 31 |         host node1-1.sb1.orbit-lab.org {hardware ethernet 00:0f:ea:4A:8B:5F; fixed-address node1-1.sb1.orbit-lab.org;} | 
          
          
            |   | 32 |         host node1-2.sb1.orbit-lab.org {hardware ethernet 00:0F:EA:84:C8:01; fixed-address node1-2.sb1.orbit-lab.org;} | 
          
          
            |   | 33 | } | 
          
          
            |   | 34 | }}} | 
          
          
            |   | 35 |  | 
          
          
            |   | 36 | === PXE Support === | 
          
          
            |   | 37 |  | 
          
          
            |   | 38 | The PXE protocol uses a very complex set of extensions to DHCP and/or BOOTP but most of the newer implementations seem to be able to boot with standard DHCP configuration.   | 
          
          
            |   | 39 |  | 
          
          
            |   | 40 | A DHCP configuration for PXE support is: | 
          
          
            |   | 41 |  | 
          
          
            |   | 42 | {{{ | 
          
          
            |   | 43 |         allow booting; | 
          
          
            |   | 44 |         allow bootp; | 
          
          
            |   | 45 |  | 
          
          
            |   | 46 |         # Standard DHCP configuration directives... | 
          
          
            |   | 47 |  | 
          
          
            |   | 48 |         # Needed for PXE | 
          
          
            |   | 49 |         filename "/pxelinux.bin"; | 
          
          
            |   | 50 |         option option-150 code 150 = text; | 
          
          
            |   | 51 |            | 
          
          
            |   | 52 |         # tftp server | 
          
          
            |   | 53 |         next-server 10.11.0.40; | 
          
          
            |   | 54 |  | 
          
          
            |   | 55 | }}} |