Hello everyone,
I’ve been struggling for the past 2 days with setting up a network of virtual machines running Fedora. I’ve made significant progress, but I keep hitting an issue that prevents me from moving forward. Specifically, I’m encountering an error when trying to start the DHCP server (dhcpd.service) on the central-dhcp-dns host, and I’ve been unable to resolve it. Here’s a breakdown of my task and the issue I’m facing:
Job for dhcp.service failed because the control process exited with error code. See 'systemctl status dhcpd.service' and 'journalctl -xeu dhcpd.service' for details.
I’ve followed many guides and attempted several configurations, but I always seem to hit the same error. I’ve checked the logs and reviewed my configuration multiple times, but I haven’t been able to get the DHCP service running.
option domain-name "central.local";
option domain-name-servers 172.20.0.1;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 172.20.0.0 netmask 255.255.255.0 {
range 172.20.0.100 172.20.0.200;
option routers 172.20.0.1;
option broadcast-address 172.20.0.255;
}
Additionally, I’ve edited /etc/default/bind9 to include the line RESOLVCONF=yes to enable DNS resolution.
Also, if possible, could you review the general approach I’m taking for setting up these virtual machines and confirm whether it looks correct?
I would appreciate any advice or suggestions on how to get this working!
Thanks a lot for your help!
I’ve been struggling for the past 2 days with setting up a network of virtual machines running Fedora. I’ve made significant progress, but I keep hitting an issue that prevents me from moving forward. Specifically, I’m encountering an error when trying to start the DHCP server (dhcpd.service) on the central-dhcp-dns host, and I’ve been unable to resolve it. Here’s a breakdown of my task and the issue I’m facing:
Task Overview:
I am trying to set up 4 virtual hosts as part of my networking lab using Fedora in VirtualBox. The setup includes two hosts in the central office and two in the remote office. Here's what I need to accomplish:- Central Office:
- One host (central-dhcp-dns) should act as the DHCP server and DNS server.
- The second host (central-client) should get an IP address dynamically through DHCP.
- Internet access must be provided to the central office via NAT.
- Remote Office:
- One host (remote-router) should act as the router between the central and remote office, with static IP addresses.
- The second host (remote-client) should also have a static IP address.
- Network Configuration:
- The central office network should use the subnet 172.20.0.0/24.
- The remote office network should use the subnet 172.23.0.0/24.
- The router network for communication between the two offices should be 192.168.194.0/30.
- DHCP and DNS Configuration:
- ISC DHCP Server (isc-dhcpd) will be used to assign dynamic IPs to hosts in the central office.
- BIND will be used for DNS resolution.
- The DHCP server should also automatically update DNS records with client IPs.
Problem:
For the past two days, I’ve been trying to set up the DHCP server on central-dhcp-dns and the service always fails with this error:Job for dhcp.service failed because the control process exited with error code. See 'systemctl status dhcpd.service' and 'journalctl -xeu dhcpd.service' for details.
I’ve followed many guides and attempted several configurations, but I always seem to hit the same error. I’ve checked the logs and reviewed my configuration multiple times, but I haven’t been able to get the DHCP service running.
Configuration:
Here’s the part of the configuration file /etc/dhcp/dhcpd.conf that I’m using:option domain-name "central.local";
option domain-name-servers 172.20.0.1;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 172.20.0.0 netmask 255.255.255.0 {
range 172.20.0.100 172.20.0.200;
option routers 172.20.0.1;
option broadcast-address 172.20.0.255;
}
Additionally, I’ve edited /etc/default/bind9 to include the line RESOLVCONF=yes to enable DNS resolution.
My Request:
Could anyone please help me understand what might be causing this error and point me in the right direction? I’ve been stuck for two days now, and I really need some guidance on resolving the DHCP issue.Also, if possible, could you review the general approach I’m taking for setting up these virtual machines and confirm whether it looks correct?
I would appreciate any advice or suggestions on how to get this working!
Thanks a lot for your help!