| 20 | | ''Information primarily on how to configure DHCP. Maybe attach a sample file'' |
| | 20 | To support PXE we need a DHCP server. This server does not necessarily need to be instantiated at the same machine as the TFTP server, but it's configuration needs to point to it. |
| | 21 | |
| | 22 | Installing a DHCP server on Debian is as simple as: |
| | 23 | |
| | 24 | {{{ |
| | 25 | % apt-get install dhcp |
| | 26 | }}} |
| | 27 | |
| | 28 | '''Are we using "dhcp3"?''' |
| | 29 | |
| | 30 | To support PXE, we need to add to /etc/dhcpd.conf something like: |
| | 31 | |
| | 32 | {{{ |
| | 33 | option domain-name "example.com"; |
| | 34 | |
| | 35 | default-lease-time 600; |
| | 36 | max-lease-time 7200; |
| | 37 | |
| | 38 | allow booting; |
| | 39 | allow bootp; |
| | 40 | |
| | 41 | # The next paragraph needs to be modified to fit your case |
| | 42 | subnet 192.168.1.0 netmask 255.255.255.0 { |
| | 43 | range 192.168.1.200 192.168.1.253; |
| | 44 | option broadcast-address 192.168.1.255; |
| | 45 | # the gateway address which can be different |
| | 46 | # (access to the internet for instance) |
| | 47 | option routers 192.168.1.1; |
| | 48 | # indicate the dns you want to use |
| | 49 | option domain-name-servers 192.168.1.3; |
| | 50 | } |
| | 51 | |
| | 52 | group { |
| | 53 | next-server 192.168.1.3; |
| | 54 | host tftpclient { |
| | 55 | # tftp client hardware address |
| | 56 | hardware ethernet 00:10:DC:27:6C:15; |
| | 57 | filename "/tftpboot/pxelinux.0"; |
| | 58 | } |
| | 59 | } |
| | 60 | |
| | 61 | }}} |
| | 62 | |
| | 63 | '''Where are we getting the 'pxelinux.0' file from? Is that in an apt, or should we add that to our "orbit-pxe-server" package?''' |
| | 64 | |
| | 65 | After you have edited the dhcpd configuration file, restart it with "/etc/init.d/dhcpd restart". |