tonywhitmore.co.uk  

      blog : gallery : wiki : articles : projects : shell scripts : wallpaper : cv : links :
 Project Homepage

DHCP Client Deamon

Preparation

  1. Download the dhcpcd (DHCP client daemon) source code from http://www.phystech.com/download/.
  2. Burn the .tar.gz file to a CD. This page assumes that the subdirectory /apps is used for the .tar.gz file. The CD-ROM can be a multi-session disk.

Give me more details on this

Booting

  1. Boot your Core Linux PC.
  2. Login as root. You will need to enter the password at the prompt.

Give me more details on this

Extract the source

  1. Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under /mnt/cdrom.
  2. Change to the /apps directory on the CD-R.
  3. Copy the dhcpcd-1.3.22-p14.tar.gz file to the directory /usr/src.
  4. Change to the /usr/src directory and extract the source from the .tar.gz file.

Give me more details on this

Configure and compile

  1. Change to the /usr/src/dhcpcd-1.3.22-p14 directory.
  2. Run the ./configure script. You will need to add an argument specifying the architecture of the system, for example:
    ./configure --build=i686-pc-linux-gnu
  3. Run the make program.
  4. Run the make program with the argument install.

Give me more details on this

Initial Testing

  1. If your ethernet interface is already up, take it down.
  2. Start the dhcpcd client using /usr/local/sbin/dhcpcd eth0.
  3. Use ifconfig to check the IP address assigned to the interface.

Give me more details on this

Stopping dhcpcd

  1. Stop the dhcpcd client using kill.

Give me more details on this

Automating dhcpcd

  1. Append the following line to the /etc/rc.d/rc.mu script:
    /usr/local/sbin/dhcpcd eth0
    If you have previously configured the interface to be assigned a static IP address on boot, you will need to remove the ifconfig line from the script and replace it with the above line. You will also need to remove any lines containing route commands, as this information is set dynamically by the dhcp client. You can also add comments and echoes for your own information.
  2. Reboot the system and check that the interface has been assigned an IP address.

Give me more details on this

Creative Commons License
The text of this page is licensed under a Creative Commons License.


Valid CSS!     Valid HTML 4.0!     Valid RSS
Original design © For oswd.org by SquireCD