Quantcast
Viewing all articles
Browse latest Browse all 4878

Networking and servers • Re: Pi 4B Cluster DHCP Server Help

Seems redoing the head pi's Ubuntu install and setting up NetworkManager and then doing DHCP server stuff worked! I see the second raspberry pi when doing `dhcp-lease-list` and can connect to it! Woo hoo!
Excellent!
The second pi seems quite slow when trying to sudo apt upgrade/update... I'm hoping that's just my internet rather than being extremely slow due to it going through the head pi...
I also can't use pi@pi1.local when already ssh'd into the head pi, "ssh: Could not resolve hostname pi1.local: Temporary failure in name resolution" so I'll figure out how to do that extra name server stuff tomorrow. Using the IP assigned by the dhcp server to connect works as expected.
If you're going to keep multiple Pis updated, you might want to consider setting up apt-cacher-ng, so that you only download packages from the internet once. I have a fast internet connection and it's STILL worth it. Search the internet for info on it for your server OS

The .local domain uses MDNS and probably gets wonky with multiple network interfaces, depending on what you're trying to access from where. Since you have a DHCP server you're halfway to a proper DHCP/DNS integrated server. If you're interested in having them work together you could have a look at ndm which could be interesting for you if you ever rebuild the system on whch your DHCP server is running.
I've also recorded all the commands and steps I've taken to set up the head node and the second node, so I can mess around and try other things and reset everything and easily get back to this point, so I'll check out that IP masquerade thing tomorrow.

Thank you very much! o7
I started out my Pi experience with a long list of steps to be taken every time I built a new system. It drove me crazy! I built a tool that does it all for me (and many others) pretty much automatically. Unfortunately it's only for RasPiOS so won't help you with ubuntu.

But if you ever switch to RasPiOS you should have a look at it: https://github.com/gitbls/sdm. sdm can, for instance, build you up a system with literally everything configured (DHCP, DNS, multiple network interfaces, all your favorite commands, SSH keys, etc etc) in a few minutes.

Statistics: Posted by bls — Wed Oct 30, 2024 2:55 am



Viewing all articles
Browse latest Browse all 4878

Trending Articles