DHCP is a service that provides addresses to devices on a network. Devices use DHCP to find their current IP address and to find the address of a server that can provide them with new IP addresses. Linux supports DHCP by providing a dhcpcd daemon. dhcpcd listens on port 12345 for requests for an IP address and provides the requested address to the client. If you want to renew an IP address, you must first create a new dhcpcd configuration file and then reload it by running:

Reload dhcpcd

If you have not already done so, you should install the package named “dhcpcd” from the Debian repositories. You can also install it using:

apt-get install dhcpcd

Usage

Type the following command from the terminal prompt. If you are using a distro other than Ubuntu, make sure that your user account has sudo permissions, otherwise you might have to use su to switch to root before entering the command.

Output:

You can restart networking if you are having problems by using the following command: