This
is probably the best method and it is the one that we use.
- Firstly
to get this type of DHCP working you will need to locate and
download the file dhcp-2.0.tar.gz
which as usual is easily found on the Internet. Save it in
a directory you wish to work in, we recommend use your user
directory as its the best place (you can ftp straight to it,
and you always have permissions to do anything there).
- You will
then need to unzip and uncompressed it but using the following command
tar -xzvf dhcp-2.0.tar.gz
this will create a dhcp-2.0/
directory in the current directory, i.e. the one you just uncompressed
the files in.
- Now
you need to compile configure and then run the DHCP Client
for Linux. To do this it is always best to first read the
README, that is what they are for, it should tell you exactly
what to do to install and get the software working. To view
and read the readme you just type cat
README | more and this will display it one screen at
a time, to move down a screen just hit SPACE or to move down
one line at a time hit ENTER. To compile the source code the
first thing you need to do it type ./configure
which will work out that exact OS and version you are running
and then it will create a Makefile which will allow you to
easily compile it. Once you've run configure, just type make,
and after a while you should have a DHCP server. Once you
have successfully gotten the DHCP Distribution to build, you
can install it by typing make
install. If you already have an old version of the
DHCP Distribution installed, you may want to save it before
typing make install.
(this installs the DHCP server and client, but we are only
concerned with the client).
- You
must now edit the /etc/dhclient.conf
file on your system, this must be setup to send the correct
information to Optus@Home, and
where it says send
host-name you can either remove this line, leave it
blank or put your Optus@Home
hostname (this hostname is the old co3XXXXXX-a number you
should have been given when your install was done - prior
to November 2001).
- To
now run DHCP Client all you have to do is run it from the
directory which you installed DHCP, e.g. if you followed our
suggestion all you have to do is type /sbin/dhclient
eth0 and you should then be assigned the correct IP from Optus@Home
and be able to go online. Once again to test it just start
X-Windows and run Netscape Navigator as show above in "The
PUMP Method".
An alternative
isto install the RPM version, this can be found in the file
dhcp-2.0-5.i386.rpm,
and installed with the following command rpm
-ivh dhcp-2.0-5.i386.rpm, then you can edit the dhclient.conf
file and run dhclient
eth0. (This file can be downloaded from the Files section
of this site, also it is on the Red Hat CD in the directory
/RedHat/RPMS/)
Since
you want to use DHCP you can also use the ifup
and ifdown
scripts instead of writing your own, these should both located
in your /sbin/
directory. The only editting that they should require is to
put your Optus@Home hostname
into the appropriate field (i.e. your co3XXXXXX-a
number).
Just
another thing that I should mention, even though you need
to send your hostname (co3XXXXXX-a)
to Optus@Home in order to get
your IP address assigned to you, you don't actually have to
name your box that (I only just found this out). This means
that you can call it whatever you want and it helps to make
your network use the naming scheme you want. In order to change
this all you need to do is type hostname
<new_name> and it will be changed, simple enough
right?, to test it just type hostname
and it should tell you the same name as you just typed in.
|