Am Freitag, 24. September 2021, 08:05:14 CEST schrieb Stefan Seyfried:
On 24.09.21 07:31, Mathias Homann wrote:
...can networkd do everything NetworkManager can do? I'm thinking of the dispatcher scripts...
probably yes, but different ways.
But if it works with networkd and does not work with NM, then you have another data point for your investigation.
I always try to debug such things with busybox tools. If they do not work, then something is *really* borken. Unfortunately, openSUSE's busybox does not contain udhcpc, but it can be built easily:
tar xf busybox.tar.xz cd busybox mkdir build make allnoconfig O=build sed -i -e '/CONFIG_UDHCPC /d' \ -e '/CONFIG_BUSYBOX /d' \ -e '/CONFIG_SHOW_USAGE /d' build/.config echo CONFIG_UDHCPC=y >> build/.config echo CONFIG_BUSYBOX=y >> build/.config echo CONFIG_SHOW_USAGE=y >> build/.config make silentoldconfig O=build make -j8 O=build
sudo build/busybox udhcpc -s '/bin/true' -i air udhcpc: started, v1.33.0.git udhcpc: sending discover udhcpc: sending select for 192.168.200.12 udhcpc: lease of 192.168.200.12 obtained, lease time 43200
Your interface is probably not named "air" ;-)
Alternatively, without compiling anyhting, you can install "udhcp" package and just use udhcpc from there the same way as above.
ok so I just switched back to the networkmanager connection that tries to do dhcp, which on my laptop still does not work, then created a softlink in /sbin pointing at /usr/bin/route, and ran "udhcpc eth0" - and that WORKED. eth0 got ip address and everything. if I try the same thing with dhclient, it does not do anything - it doesn't even *start* ("dhclient -v -v eth0" does not even print its banner, and shows as stuck in a futex() call in strace). Weirdly enough dhclient does work now after upgrading to 20210921 on my *other* TW installation... Guess its bugzilla time. Is there a way to tell NM to use udhcpc instead of dhclient? Cheers MH -- Mathias Homann Mathias.Homann@openSUSE.org OBS: lemmy04 Jabber (XMPP): lemmy@tuxonline.tech IRC: [Lemmy] on freenode and ircnet (bouncer active) telegram: https://telegram.me/lemmy98 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102