Configure DHCP on Ubuntu Server and link it to another machine.
Configure DHCP on Ubuntu Server and link it to another machine.
I understand how network addresses function and how to connect computers to a server. Check if your virtual box setup matches the server's network configuration. The server uses its own network card for internet access, while another card connects to the local machine. On the internet, the server assigns a name to the second card. It should match what you see online. Ensure the IP addresses are correctly assigned on both devices. The server’s interface has one NIC (enp0s3) with DHCP enabled, giving it an IP and gateway. On the connected computer, you entered 10.10.10.2, which matches the server's address. Both are on the same network, but ping isn’t working. You didn’t install DHCP, so it might be missing. The command to install it is sudo apt install isc-dhcp-server. If you sent photos, verify everything is set up properly.
The setup requires a server VM with two network interfaces—one for external communication and another for internal use. The client VM needs just one internal interface. These VMs must communicate through the internal interface, while the server handles routing to send internal traffic to your physical network and the wider internet.
Yes, I understand the server needs two network cards, so I've configured VirtualBox. Check if that's acceptable. I realize Ubuntu only requires one master card, which is why it's set to use VirtualBox. I entered the gateway address and the server's internal network mask in Ubuntu. Could you review the photos I provided to confirm the setup?
The Ubuntu NIC name needs to match the server's internal network card name. A ping can connect the server to the computer even without DHCP because other methods like static IP or manual configuration can establish the link.