13.2. dhclient

The Dynamic Host Configuration Protocol utility dhclient( 1M), allows the C5 system to obtain network information, such as a dynamically assigned IP address, or the IP addresses of the default router and name server, from a DHCP server at boot time. In order to boot using dhclient you must first embed the dhclient process into the C5 system image.

dhclient reads dhclient.cf (4CC) and dhcp.options(4CC).

Procedure 13.2. Embedding the dhclient process into the C5 system image

  1. In the build directory, edit the conf/mkimage/applications.xml file

  2. Add the dhclient reference in file list:

                 <type name='FileList'/>
                   <value index='size'><ref name='dhclient' /></value>
    
  3. By default, C5 boots using RARP. In order to boot using DHCP, you must change the sysadm.ini file. In the sysadm.ini file, you deactivate RARP by making the appropriate line into a comment and you activate DHCP by including the line corresponding to dhclient :

    # rarp ifeth0
    /image/sys_bank/dhclient ifeth0
    
  4. You must now build or re-build the C5 system image:

    host% make chorus

    Further information on building the system image is supplied with the C5 2.1 Installation Guide.