Linux Commands Helper
💬 Your AI-powered Linux assistant
dhclient Command - DHCP Client
The dhclient command is used to obtain or release an IP address from a DHCP server on Linux systems. It is commonly used to configure network interfaces dynamically.
Syntax
dhclient [options] [interface]
Examples
dhclient eth0
Request an IP address for the eth0
network interface.
dhclient -r eth0
Release the current DHCP lease for eth0
.
dhclient
Request IP addresses for all available interfaces.
Notes
- Root privileges are usually required to run
dhclient
. - Releasing and renewing IP addresses can help resolve network connectivity issues.
- Some distributions may use
NetworkManager
orsystemd-networkd
instead ofdhclient
.