Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Dynamic Host Configuration Protocol (DHCP) is a network protocol used to assign IP addresses and provide configuration information to devices such as servers, desktops, or mobile devices, so they can communicate on a network using the Internet Protocol (IP).

Step-by-step guide

Install the package using apt-get tool.

Installing the package
root@dilos:~# apt-get install isc-dhcp-server

Edit the configuration file /etc/dhcp/dhcpd.conf for IPv4 or /etc/dhcp/dhcpd6.conf for IPv6.

IPv4 example
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
#  range 10.5.5.26 10.5.5.30;
#  option domain-name-servers ns1.internal.example.org;
#  option domain-name "internal.example.org";
#  option routers 10.5.5.1;
#  option broadcast-address 10.5.5.31;
#  default-lease-time 600;
#  max-lease-time 7200;
#}

Now you can run the server

starting the service
root@dilos:~# svcadm enable isc-dhcp-server

Check the result by svcs tool:

Checking problem services
root@dilos:~# svcs -xv
root@dilos:~#

That means the service works, and you may relax (wink)

If you see some services in the output of svcs -xv, this means the services were configured incorrect. Check their configuratiuon files and then try to do command svcadm clear service



  • No labels