On an Ubuntu Server running the ISC DHCP daemon, you have already configured your address pool in /etc/dhcp/dhcpd.conf. When the service starts, however, it still attempts to bind to every active network interface. Company policy requires that the DHCP server listen only on interface ens33. Which configuration file must you edit to set the INTERFACESv4 variable so that dhcpd starts exclusively on ens33?
Debian-based distributions such as Ubuntu control which interfaces the isc-dhcp-server daemon binds to through a shell file read by the unit at start-up. The file /etc/default/isc-dhcp-server (or its legacy dhcp3-server equivalent) contains the INTERFACES or INTERFACESv4 variable; assigning the desired interface name (for example, INTERFACESv4="ens33") limits dhcpd to that device. Editing dhcpd.conf alone cannot guarantee interface binding, /etc/sysconfig/dhcpd is used only on Red Hat-based systems, and /etc/network/interfaces configures the kernel's NIC settings rather than dhcpd itself. Therefore, the correct file to modify on Ubuntu is /etc/default/isc-dhcp-server.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the INTERFACESv4 variable do in the /etc/default/isc-dhcp-server file?
Open an interactive chat with Bash
Why can't the configuration in dhcpd.conf ensure interface binding?
Open an interactive chat with Bash
What is the difference between /etc/default/isc-dhcp-server and /etc/sysconfig/dhcpd?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access