Changes between Version 60 and Version 61 of Download/SCDB


Ignore:
Timestamp:
Sep 15, 2008, 10:56:30 PM (16 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Michel Jouvin
Comment:

Rework DHCP/TFTP configuration part

Legend:

Unmodified
Added
Removed
Modified
  • Download/SCDB

    v60 v61  
    136136== DHCP and TFTPD installation ==
    137137
    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.
     138Install DHCPD and TFTPD server from OS distribution. You can do it with the following YUM command:
     139{{{
     140yum install dhcp tftp-server
     141}}}
     142
     143If 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
     147authoritative;
     148allow bootp;
     149#allow duplicates;
     150ddns-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)
     154option domain-name "lal.in2p3.fr";
     155option domain-name-servers nfsserv.lal.in2p3.fr;
     156option netbios-node-type 2;
     157
     158# Update to reflect your IP subnet
     159subnet 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
     174If 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{{{
     176include "/etc/dhcpd/quattor.conf";
     177}}}
     178
     179See `man dhcpd` and `man dhcpd.conf` for details about DHCP server configuration, in particular to support multiple subnets and other advanced features.
     180
     181TFTP 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
     183Note 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.
    145184
    146185