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

Networking and servers • Fixed IP address problem

$
0
0
I have a Raspberry pi0-2W on my home LAN on 192.168.0.100. It is working - as it has been for years. I'm having trouble setting up a second Rpi0-2W on the same LAN on 192.168.0.110

I set a fixed IP address with nmtui and reboot. I can log on with the new IP address but it can no longer resolve DNS calls, e.g. to google. And if I ping 192.168.0.1, its gateway, it just hangs.

This is what I've done:
For the second Rpi0-2W I loaded a new sd card with RpiOS trixie 64-bit using Rpi Imager v2.0.4.
Booted the pi, then

Code:

$ ping Google.comPING google.com (142.250.199.238) 56(84) bytes of data.64 bytes from nchkgb-an-in-f14.1e100.net (142.250.199.238): icmp_seq=1 ttl=117 time=4.66 msetc.etc.
stopped with ^C.

So that's fine. Then:

Code:

$ sudo nmtuiEdit a connectionWi-FiIPv4 CONFIGURATION    <Manual>                          <Hide>             Addresses 192.168.0.110/24_________ <Remove>                       <Add...>               Gateway 192.168.0.1_______________           DNS servers 1.1.1.1__________________ <Remove>                       8.8.8.8__________________ <Remove>                       <Add...>        Search domains <Add...>               Routing (No custom routes) <Edit...> [ ] Never use this network for default route [ ] Ignore automatically obtained routes [ ] Ignore automatically obtained DNS parameters [X] Require IPv4 addressing for this connection IPv6 CONFIGURATION    <Ignore>                         <Show>[X] Automatically connect[X] Available to all users                                                  <Cancel> <OK>
Then I log in with the new fixed IP address and ...

Code:

$ ping google.comping: google.com: Temporary failure in name resolution$ ping 192.168.0.1PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.[hangs]
if I Ctrl-C, it says e.g.

Code:

6 packets transmitted, 0 received, 100% packet loss, time 5111ms
There is a router connected to the ISP's modem (fiber) on 192.168.0.1
Another router, configured as an access point, is connected to the first router via a switch and is on 192.168.0.239
Both of the Rpi0-2Ws are connected to the access point, as the main router is out of WiFi range.

I have taken everything on the LAN down, and restarted one by one from the ISP's modem onwards.

I have several Rpis on this LAN on both bookworm and trixie, all working, with fixed IP addresses.

I've done so little since a clean install, just the nmtui and I can't see what I've done wrong.

I've run nmtui on the old pi0 2W to compare the setting and they are the same except for the IP address.
Any suggestions, please?

Statistics: Posted by roygrubb — Sat Jan 24, 2026 3:30 pm — Replies 2 — Views 50



Viewing all articles
Browse latest Browse all 7503

Trending Articles