All of lore.kernel.org
 help / color / mirror / Atom feed
From: info@benjaminmarty.ch
To: yocto@lists.yoctoproject.org
Subject: ifupdown with systemd
Date: Thu, 27 Feb 2025 16:19:09 +0100 (CET)	[thread overview]
Message-ID: <1740669549.8992@benjaminmarty.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

Hello

I'm using Yocto (Scarthgap) on a Raspberry Pi CM4 with ifupdown and init-ifupdown included in my image. The system uses systemd as the init manager.

It seems that the init scripts for ifupdown are not executed in a systemd environment. My /etc/network/interfaces file is as follows:
# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

However, after a reboot, eth0 remains down:
# ip a show eth0
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
    link/ether d8:3a:dd:a8:b6:52 brd ff:ff:ff:ff:ff:ff
    altname end0

Checking systemctl shows:
# systemctl status networking
* networking.service - LSB: Raise network interfaces.
     Loaded: loaded (/etc/init.d/networking; generated)
     Active: inactive (dead)
       Docs: man:systemd-sysv-generator(8)

I have to manually run ifup eth0 to bring up the interface. Is this expected behavior, or is there a service I need to enable to automate this?

Maybe also any other recommendation for a Network Manager, best with a high-level API?

Thanks

Benjamin

             reply	other threads:[~2025-02-27 15:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 15:19 info [this message]
2025-02-27 15:30 ` [yocto] ifupdown with systemd Alex Kiernan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1740669549.8992@benjaminmarty.ch \
    --to=info@benjaminmarty.ch \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.