[systemd-devel] Networkd: How to diagnose interface set to "unmanaged"

Ben Little ben.little at benlittle.dev
Fri Sep 13 18:19:36 UTC 2024


Original Message:
Hello this is related to an issue I am experiencing on Manjaro. I have
raised the issue here:
https://forum.manjaro.org/t/systemd-networkd-reports-device-as-unmanaged/167912

To restate the content of that post:

My networking configuration file:

# /etc/systemd/network/wired.network[Match]Name=en*
[Network]DHCP=yes

After system boot, I run networkctl and get

IDX LINK   TYPE    OPERATIONAL SETUP
  1 lo     looback carrier     unmanaged
  2 enp2s0 ether   off         unmanaged

I increased log verbosity to debug and see

enp2s0: Saved new link: ifindex=2, iftype=ETHER(1), kind=n/a
enp2s0: Saved original MTU 1500 (min: 68, max:9194)
enp2s0: Saved permanent hardware address: 00:00:de:ad:be:ef
enp2s0: Saved IPv6 link-local address generation mode: eui64
enp2s0: Flags change: +MULTICAST +BROADCAST
enp2s0: udev initialized link
enp2s0: Found driver: r8169
enp2s0: Link state is up-to-date
enp2s0: State changed: pending -> initialized
enp2s0: Unmanaging interface
enp2s0: State changed: initialized -> unmanaged

Those last two lines are the concerning ones. I don't know why the
interface is set to unmanaged. Is there any way to get networkd to
print why it's reaching that case?

Thanks,

--- Reply
Hi,

can you please show a

```bash
networkctl status enp2s0
```

This should show some more information.

Also, the `off` lloks suspicious, as there is no carrier or something else
shutting down the interface.

BR
Silvio

---

Sorry, I have emails set to "digest" so I can't figure out how to reply
directly.

Relevant info from networkctl status enp2s0:

Link File: /usr/lib/systemd/network/99-default.link
Network File: n/a
State: off (unmanaged)
Online state: unknown
...
enp2s0: udev initialized link
enp2s0: New interface name 'eth0' received from the kernel does not
correspond with the name currently configured on the actual interface
'enp2s0'. Ignoring.
...

Everything else is related to specific hardware info or redundant to the
journal output above.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240913/69679f66/attachment.htm>


More information about the systemd-devel mailing list