Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4978

Beginners • Re: Static IP issues, instructions on the net dont work

$
0
0
But what if the Pi is supposed to become the DHCP server for the entire SOHO network?
That is exactly what I have on my network...a Pi4 running DHCP and DNS servers. It needs a static IP address for two reasons. These may be obvious, but restating them here for those who haven't sorted all this yet.
  • The DHCP server can't be used to configure it b/c Catch-22: The server isn't on the network to respond to the DHCP request (from itself :o )
  • /etc/resolv.conf on all the other systems on the network have an IP address for their DNS server, since they can't query the server to get its IP address if you don't know its address.
I set its static IP address with /etc/NetworkManager/system-connections/eth0.nmconnection:

Code:

[connection]id=eth0uuid=aafb8b76-81da-3a3e-b525-f5b9194ab3cbtype=ethernetautoconnect-priority=-999interface-name=eth0[ethernet][ipv4]method=manualaddress1=192.168.92.3/24gateway=192.168.92.1dns=192.168.92.3dns-search=mydomain.com.com[ipv6]addr-gen-mode=defaultmethod=disabled

Statistics: Posted by bls — Sun Feb 04, 2024 11:40 pm



Viewing all articles
Browse latest Browse all 4978

Trending Articles