DHCP Setup for Linux (Generic)
You must have root access on you box
in order to use these directions.
- Get
this file. This is the source for the dhcp client.
- Find a place on your system to un-tar the source.
(/usr/local/src is a reasonable place)
- Un-tar it! (tar -zxvf filename usually does the trick)
You should now have a directory called
dhcp-2.0b1pl6.
- cd into the new directory
- type ./configure
- type make
- when the make is done type make install
When the make install is done you should now have
a program called dhclient
installed in /sbin/dhclient
- Now you need to modify your start-up scripts to run
/sbin/dhclient at boot time:
- Find your network start-up script(s): most of the time they are in
/etc/rc.d/rc.inet1 or /etc/rc.#d/ (where "#"
is a single digit)
- If you have an /etc/rc.d/rc.inet1 file then you
just need to add the following line after your "ifconfig
eth0" line:
- Once you have changed your start-up scripts, reboot to make
sure that everything works properly after a reboot.
- If all went well, after you have rebooted you should have a
new IP address assigned to your box and be able to pass
traffic!