/etc/dhcp3 /dhclient.conf and are documented in the
dhclient.conf man page. More than 100 options are also documented in
the dhcpoptions man page.
However, using DHCP is not very complicated. If you want to use DHCP and
know that there is a server on your network, you can quickly configure your
NIC by using the dhclient, as follows:
Click here to view code image
matthew@seymour:~$ sudo dhclient
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:90:f5:8e:52:b5
Sending on LPF/eth0/00:90:f5:8e:52:b5
Listening on LPF/virbr0/ee:1a:62:7e:e2:a2
Sending on LPF/virbr0/ee:1a:62:7e:e2:a2
Listening on LPF/wlan0/00:16:ea:d4:58:88
Sending on LPF/wlan0/00:16:ea:d4:58:88
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.1.106 from 192.168.1.1
DHCPREQUEST of 192.168.1.106 on wlan0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.106 from 192.168.1.1
bound to 192.168.1.106 -renewal in 35959 seconds.
In this example, the first Ethernet device, eth0, has been assigned IP address
192.168.1.106 from a DHCP server at 192.168.1.1. The renewal will take
place in 35959 seconds, or about 10 hours. (Cool tip: Google converts this for
you if you search for “35959 seconds in hours.”)
DHCP Software Installation and Configuration
Installation of the DHCP client and server is fairly straightforward, mainly
because Ubuntu already includes dhclient in a default installation but also
because installing software is easy using synaptic or apt-get.
DHCP dhclient
DHCP is automatically enabled when you install Ubuntu, so you do not need
to worry about having to enable it. The DHCP client, dhclient, sends a
broadcast message that the DHCP server replies to with networking