You are not logged in.

#1 2023-07-11 20:32:53

early_adopter
Member
Registered: 2011-03-30
Posts: 27

systemd-networkd gets only ipv6 addresses

Installing a new system with config for systemd-networkd straight out of the wiki page. It gets ipv6 addresses ffrom the AP but no ipv4 address. I'd like it to get both. (Just discovered that github.com doesn't even have an ipv6 address!).

Other Archlinux laptops with an older install get both, as does the new install using dhcpcd. Can anyone give me a clue what might be causing this?

Offline

#2 2023-07-11 21:20:38

seth
Member
Registered: 2012-09-03
Posts: 61,632

Re: systemd-networkd gets only ipv6 addresses

You're probably not getting a lease at all but only the link local address, (starts w/ fe80:)
https://wiki.archlinux.org/title/Instal … e_internet

DHCP: dynamic IP address and DNS server assignment (provided by systemd-networkd and systemd-resolved) should work out of the box for Ethernet, WLAN, and WWAN network interfaces.

roll
Yes "should" …

Are dhcpcd or dhclient still on the iso?
If not, check the journal whether systemd-networkd does
a) anything
b) with dhcp
c) that's not dumb

Some dhcp servers can be picky about the clients identification, https://man.archlinux.org/man/systemd.network.5 try "ClientIdentifier=mac"

Offline

#3 2025-02-10 02:48:44

KazW
Member
Registered: 2023-05-28
Posts: 1

Re: systemd-networkd gets only ipv6 addresses

I ran into this issue on a new install, and this was the top Google result. Just replace "wlan0" with your interface and update the filename to your preference. You can also remove the IgnoreCarrierLoss option if you're not using a wireless connection.

The following is from the "Basic Usage" section of systemd-networkd: https://wiki.archlinux.org/title/System … asic_usage

# /etc/systemd/network/25-wireless.network
[Match]
Name=wlan0

[Link]
RequiredForOnline=routable

[Network]
DHCP=yes
IngnoreCarrierLoss=3s

Offline

#4 2025-02-10 11:20:15

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,408

Re: systemd-networkd gets only ipv6 addresses

Thanks for sharing, but OP hasn't responded since starting this thread although they have been active in other threads.

Closing this thread.

@early_adopter : If you want to continue this thread, use the report button on this post to request re-opening.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB