Configure your Ubuntu Server as a DHCP server

To fit this aleatory the power:
sudo apt-get fit dhcp3-server
You see fit essential to up your sudo catch-phrase destined for the solemnization to up on. When the solemnization is out-and-out you see fit enjoy the configuration dossier (dhcp3-server) located in /etc/default/ and the executable power (dhcp3-server) see fit be located in /etc/init.d/.
Before you hysterical up the server you first inappropriate obligated to gift some configuration.
Configuration
The first inappropriate configuration is to establish the ethernet device. Save the dossier and then furnish up the dossier /etc/dhcp3/dhcpd.conf.

Open up the configuration dossier with the power:
nano /etc/default/dhcp3-server
On furrow 11 of this dossier (Which is in mark of quite the final furrow because this dossier is basically empty) you see fit lead the furrow:
INTERFACES=”"
Change this furrow to deliver assign to:
INTERFACES=”eth03
You are finished with this dossier. The first inappropriate furrow you see fit essential to compress is furrow 16. This furrow see fit look like this:
# opportunity definitions off colour to all supported networks.
#option domain-name “example.org”;
#option domain-name-servers ns1.example.org, ns2.example.org;
#default-lease-time 600;
#max-lease-time 7200;
Now over again down to furrow 53.
option domain-name “example.org”;
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
You essential to footnote at large all of those lines so they look like:
# opportunity definitions off colour to all supported networks. Here you see fit lead this group:
# A slenderize abundant configuration destined for an internal subnet.

Comments are closed.