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

Networking and servers • Re: Repair network configuration

$
0
0
It's not the use of Network Manager preventing /etc/network/interfaces[.d] from working, it's the removal of the ifupdown package from a default installation of RPiOS.

If you had a network connection you could try installing it. But as you don't...

Given you're trying to do this via an Ubuntu PC, I'm assuming your Pi is headless and only accessible over a network.

You could try the following but I've not tested it:
  1. Backup all files in /etc/NetworkManager/system-connections
  2. Delete all files in /etc/NetworkManager/system-connections
  3. Remove everything you have added in /etc/network/interfaces and /etc/network/interfaces.d
  4. Reboot Pi
With luck, you should get a default connection on your ethernet interface. You'll probably need to re-entry your WiFi credentials.

If you can login to your PI, rather than the above use nmtui to delete the existing connection(s) and to create a new minimal connection (DHCP only with no additional customisation).

If you need an example to copy, try this one taken from one of my Pi:

Code:

[connection]id=Wired connection 1type=ethernetautoconnect-priority=-999interface-name=eth0[ipv4]method=auto
Best way to fix this, and most, network issue(s) is with a login to the Pi that doesn't rely on a working network. That's either a directly connected keyboard, monitor, and mouse or a serial (UART) connection.

For UART you'll need a 3.3v TTL connection and, for the Pi5, a cable that will connect to the debug header. These days I use https://www.raspberrypi.com/products/debug-probe/ which comes with cables that can be used with any Pi model.

Statistics: Posted by thagrol — Mon Sep 22, 2025 11:10 pm



Viewing all articles
Browse latest Browse all 7604

Trending Articles