LX0-104 · Question #477
Your machine's IP address used to function, but it's only got the localhost "lo" entry now. What three client-mode commands could you possibly use to get a new DHCP address?
The correct answer is C. dhclient D. pump E. dhcpcd. When a Linux machine loses its network configuration, several client-side commands can be used to initiate a DHCP request and obtain a new IP address. These tools interact with a DHCP server to automatically configure network interfaces.
Question
Options
- Adhcpd
- Bipconfig
- Cdhclient
- Dpump
- Edhcpcd
How the community answered
(61 responses)- A10% (6)
- B3% (2)
- C87% (53)
Why each option
When a Linux machine loses its network configuration, several client-side commands can be used to initiate a DHCP request and obtain a new IP address. These tools interact with a DHCP server to automatically configure network interfaces.
dhcpd is the DHCP server daemon, which assigns IP addresses to clients, not a client-mode command used to obtain an address for the local machine.
ipconfig is primarily a command-line tool found on Windows systems to display and configure network interfaces, but it is not a standard DHCP client command on Linux; the equivalent Linux command for displaying config is ip addr or ifconfig.
dhclient is a commonly used DHCP client program in many Linux distributions to obtain an IP address and other network configuration details from a DHCP server.
pump is another DHCP client, primarily used in older Red Hat-based systems, to manage network interface configuration via DHCP.
dhcpcd is a popular DHCP client daemon that runs in the background to automatically configure network interfaces with DHCP and can be used to renew leases.
Concept tested: DHCP client commands
Source: https://man7.org/linux/man-pages/man8/dhclient.8.html
Topics
Community Discussion
No community discussion yet for this question.