| 138 | | Install DHCPD and TFTPD server from OS distribution. Do a basic configuration of DHCPD server (name servers...). |
| 139 | | |
| 140 | | Template for dhcp configuration can be found in aii-server package, under {{{/usr/share/doc/aii-1.0.44/eg/dhcpd.conf}}}. |
| 141 | | |
| 142 | | Template for tftpd configuration (by xinetd at {{{/etc/xinetd.d/tftp}}}) can be found in aii-server package, under {{{/usr/share/doc/aii-1.0.44/eg/tftp.example}}}. |
| 143 | | |
| 144 | | Note that prefered location for quattor tftp installation is {{{/osinstall/nbp}}}, but it should work under {{{/tftpboot}}} as well. |
| | 138 | Install DHCPD and TFTPD server from OS distribution. You can do it with the following YUM command: |
| | 139 | {{{ |
| | 140 | yum install dhcp tftp-server |
| | 141 | }}} |
| | 142 | |
| | 143 | If the DHCP server is to be used for Quattor usage only, a basic DHCP configuration (`/etc/dhcpd.conf`) may be: |
| | 144 | {{{ |
| | 145 | # DHCP server configuration |
| | 146 | |
| | 147 | authoritative; |
| | 148 | allow bootp; |
| | 149 | #allow duplicates; |
| | 150 | ddns-update-style none; |
| | 151 | #omapi-port 7921; # Use a non standard port (standard = 7911) |
| | 152 | |
| | 153 | # Edit to reflect your DNS domain name and name servers (a comma-separated list is allowed) |
| | 154 | option domain-name "lal.in2p3.fr"; |
| | 155 | option domain-name-servers nfsserv.lal.in2p3.fr; |
| | 156 | option netbios-node-type 2; |
| | 157 | |
| | 158 | # Update to reflect your IP subnet |
| | 159 | subnet 134.158.72.0 netmask 255.255.255.254 { |
| | 160 | |
| | 161 | # Parameters for the installation via PXE using pxelinux |
| | 162 | filename "quattor/pxelinux.0"; |
| | 163 | #option dhcp-class-identifier "PXEClient"; |
| | 164 | option vendor-encapsulated-options 01:04:00:00:00:00:ff; |
| | 165 | |
| | 166 | # This is now a required line in DHCP configuration. This |
| | 167 | # option gives the behavior of the previous versions. |
| | 168 | ddns-update-style ad-hoc; |
| | 169 | |
| | 170 | option routers 134.158.72.1; |
| | 171 | } |
| | 172 | }}} |
| | 173 | |
| | 174 | If you want to share DHCP between Quattor and non Quattor usage, it's probably better to move the last part (`subnet...`) into a separate file, like `/etc/dhcpd/quattor.conf` and replace it in the main configuration file by: |
| | 175 | {{{ |
| | 176 | include "/etc/dhcpd/quattor.conf"; |
| | 177 | }}} |
| | 178 | |
| | 179 | See `man dhcpd` and `man dhcpd.conf` for details about DHCP server configuration, in particular to support multiple subnets and other advanced features. |
| | 180 | |
| | 181 | TFTP server is run by `xinetd`. In the default configuration, it is disabled. Enable it by editing `/etc/xinetd.d/tftp`, modifying `disable` parameter from `yes` to `no`. |
| | 182 | |
| | 183 | Note that default location for TFTP root in AII configuration files is {{{/osinstall/nbp}}}. It must be explicitly defined if you want to use {{{/tftpboot}}} or another location. |