I have my own LAN for a computing cluster which is separate from my household LAN. The cluster LAN has a WiFi router in it which provides DHCP services. The cluster LAN has no connection to the public internet of its own, the public internet can be accessed from the household LAN only.
I have configured my desktop computer (Ubuntu 16.04) to share its internet access (which it gets from a WiFi connection to the household LAN) to the cluster LAN via Ethernet. I am doing this by setting the Ethernet settings in Ubuntu's Network Manager to "Shared to other computers". This works fine and when the desktop is powered up and connected to both WiFi and Ethernet, I can access the public internet from the cluster LAN.
However, if I boot the machines on the cluster LAN after the desktop is booted, they do not receive their reserved IP addresses from the DHCP server running on the WiFi router in the cluster LAN, but different addresses instead. I would assume that this is because Ubuntu's Network Manager also provides a DHCP server built-in and this is taking precedence over the DHCP server in the cluster LAN.
Is it possible to disable the DHCP server that network manager (presumably) provides when sharing internet connection in this way, or will I have to resort to a different method to share the internet connection only?
By sharing its internet connection, your desktop is acting as a router to the cluster LAN. You should be able to see the instance of dnsmasq running on your desktop that provides those IP addresses:
Note →
--dhcp-range=10.42.0.10,10.42.0.254,60m
. If you were to disable the DHCP assignment, the LAN computers would need to learn about the new route to the internet some other way.Perhaps better than having competing DHCP servers is to assign static IP addresses on devices. Or you could try using the shared internet connection range as your WiFi DHCP range too.