rpi4 lost eth0

Problems with packages? Post here, using [tags] of the package name.

Re: rpi4 lost eth0

Postby graysky » Sun Nov 20, 2022 1:44 pm

It's systemd nonsense, who knows :/
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: rpi4 lost eth0

Postby jessbo » Sun Nov 20, 2022 8:47 pm

Ran into this but had no ethernet access. Forgot about IPtables filtering by interface. So as a heads up, make sure you update any firewall rules to match.
jessbo
 
Posts: 5
Joined: Tue Dec 22, 2020 4:52 pm

Re: rpi4 lost eth0

Postby graysky » Sun Nov 20, 2022 9:24 pm

Good advice... likely way easier to disable this systemd silliness to just keep eth0.
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: rpi4 lost eth0

Postby telsch » Mon Nov 21, 2022 10:48 pm

Looks like upstream archlinux x86_64 (laptop) and arm32v7 (rpi3) are not affected. Also I'm pretty sure I had never create a /etc/systemd/network/en.network configuration file on my raspberry pi 4 (aarch).
telsch
 
Posts: 5
Joined: Wed Jan 29, 2020 12:54 pm

RPI v4 lost networking

Postby kitenski » Tue Nov 22, 2022 4:30 pm

Afternoon,

I recently updated my system using pacman -Syu, however when rebooting it didn't reappear on the network.

It was running headless, after connecting it up to a screen and keyboard I see that my ethernet port that was named eth0 is now end0

So I copied & renamed eth0.network. to end0.network, but I still have no networking?

if I try a ping command I get the following even if I try and ping the router at 192.168.0.1

Network is unreachable

I've been googling all afternoon, I can't copy command output over from the Pi without a network but

# systemctl list-units| grep -iE '(net|wicd|dhcp|conn)'

shows systemd-network-generator-service as exited
and
systemd-networkd-wait-online-service as failed

ip address show is in the screenshot attached
Attachments
IMG_4693.jpeg
IMG_4693.jpeg (85.72 KiB) Viewed 3179 times
kitenski
 
Posts: 20
Joined: Sat Jul 07, 2012 12:44 pm

Re: RPI v4 lost networking

Postby kitenski » Tue Nov 22, 2022 4:44 pm

& picture of output of systemctl status systemd-networkd followed by the end0.network file
Attachments
IMG_4695.jpeg
IMG_4695.jpeg (234.98 KiB) Viewed 3178 times
kitenski
 
Posts: 20
Joined: Sat Jul 07, 2012 12:44 pm

Re: rpi4 lost eth0

Postby graysky » Tue Nov 22, 2022 6:39 pm

MOD NOTE - merged, please search before posting
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: rpi4 lost eth0

Postby codedwrench » Tue Nov 22, 2022 6:57 pm

For anyone curious what could possibly have caused systemd to do this.
I've looked into it, it's devicetree, the end probably stands for devicetree.
The commit message explains as to why they did it.

https://github.com/systemd/systemd/commit/65c2ad985a8debdf6d7d11fee5b466f280260f4b#diff-74ecd06b7b5ba73ee97dbca326e44e3dddf6e8841bda2e073b06bdc4d8bd158dR682

The short of it is that it adds predictability for ARM-devices (and other devices that define ethernet in their devicetrees) with more than a single ethernet card.
codedwrench
 
Posts: 1
Joined: Tue Nov 22, 2022 6:52 pm

Re: rpi4 lost eth0

Postby 6arts » Wed Nov 23, 2022 5:24 pm

Hello!

just to let you know that, this is documented in archlinux wiki: https://wiki.archlinux.org/title/Networ ... face_names

and here is the explanation of this change: https://systemd.io/PREDICTABLE_INTERFACE_NAMES/

hope it helps :)
6arts
 
Posts: 6
Joined: Wed Feb 08, 2017 11:50 pm

Re: rpi4 lost eth0

Postby koogas » Fri Nov 25, 2022 9:44 pm

Also had this problem today unfortunately.
The changes on /etc/systemd/network/* file worked ok. My file had eth0 hardcoded.
koogas
 
Posts: 3
Joined: Sat Jun 04, 2022 2:03 pm

PreviousNext

Return to Packages

Who is online

Users browsing this forum: No registered users and 3 guests