Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

information for your host. After it has this, you’re done.


You can, however, fine-tune how dhclient works and where and how it
obtains or looks for DHCP information. You probably will not need to take
this additional effort, but if you do, you can create and edit a file named
dhclient.conf and save it in the /etc directory with your settings.


CAUTION
You should not just go ahead and overwrite your dhclient.conf with
any old file because doing so could lead to painful networking problems.
Instead, copy the file like this:

Click here to view code image
matthew@seymour:~$ sudo cp
/etc/dhcp3/dhclient.conf/etc/dhcp3/dhclient.conf.backup


This    way,    if  anything    goes    wrong,  you can use the backup  to  restore the
original settings by copying it back to its original location in place of the
modified file.

A few of the dhclient.conf options include the following:


timeout time    ;—How   long    to  wait    before  giving  up  trying. (The
default is 60 seconds.)
retry time ;—How long to wait before retrying. (The default is 5
minutes.)
select-timeout time ;—How long to wait before selecting a
DHCP offer. (The default is 0 seconds.)
reboot time ;—How long to wait before trying to get a previously
set IP address. (The default is 10 seconds.)
renew date ;—When to renew an IP lease, where date is in the
form weekday year /month/day hour:minute:second, such as 3
2018/7/11 22:01:01 for Wednesday, July 11, 2018, at 10:01 p.m.

See the dhclient.conf man page for more information on additional
settings.


DHCP Server

The easiest way to install the DHCP server on your computer is to use either
synaptic or apt-get to retrieve the dhcp3-server package. If you
are so inclined, you can go to the Internet Software Consortium (ISC) website

Free download pdf