You are not logged in.
Pages: 1
New Arch Linux install. Ping says network is unreachable.
I have a config file /etc/systemd/network/network.network:
[Match]
Name=enp0s31f6
[Network]
DHCP=yes
Here's the OP from ip link:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether ac:b4:80:3b:e6:14 brd ff:ff:ff:ff:ff:ff
I said "systemctl systemd-networkd" several times, but the network is still unreachable. Suggestions welcomed. Thanks!
Last edited by davidbryant (2025-10-28 23:18:40)
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
https://wiki.archlinux.org/title/Systemd#Using_units . "systemctl systemd-networkd" does nothing.
You will then also need to address DNS.
Offline
I meant to say "systemctl start systemd-networkd". Excuse me.
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
OK, I edited /etc/systemd/resolved.conf to say
DNS=1.1.1.1
FallbackDNS=1.0.0.1
and I said "systemctl start systemd-resolved. No errors, but still no internet. What's next?
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
What are the outputs of
ip a; resolvectl statusOffline
Can you post the output of the following commands:
systemctl status systemd-networkd
networkctl
ip a
ip r
ping -c 3 1.1.1.1
ping -c 3 google.comWe want to
verify systemd-networkd is actually running
see more information from systemd-networkd
determine whether the DHCP process was successful
verify the route your IP traffic will follow
test IP connectivity without involving DNS
test name resolution
Offline
ip a says
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether ac:b4:80:3b:e6:14 brd ff:ff:ff:ff:ff:ff
altname enxacb4803be614
inet 192.168.1.10/24 scope global enp0s31f6
valid_lft forever preferred_lft forever
inet6 fe80::aeb4:80ff:fe3b:e614/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
resolvectl status said something about "failed to reach resolve1", ... I'll do it again, and take a picture.
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
You have a lease but apparently no resolver.
Start/enable systemd-resolved
Offline
resolvectl status says (in red letters):
Failed to get global data: Could not activate remote peer 'org.freedesktop.resolve1' activation request failed.
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
OK, I said "systemctl start systemd-resolved", then "resolvectl status". That now says
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
DNS Servers: 1.1.1.1
Fallback DNS Servers: 1.0.0.1 2620:fe::9#dns.quad9.net
1.1.1.1#cloudflare-dns.com
2606:4700:4700::1111#cloudflare-dns.com 8.8.8.8#dns.google
2001:4860:4860::8888#dns.google
Link 2 (enp0s31f6)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6 mDNS/IPv4 mDNS/IPv6
Protocols: -DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
Default Route: no
Does my ethernet connection need to be a default route? Thanks!
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
My experience has been that systemd-networkd will respect the DHCP lease options regarding the gateway. You can tell it not to, or set up a static route, but the preferred way to fix this would probably be making sure the dhcp server is sending a gateway.
Offline
Don't you have a working internet connection?
ip a; ip r
ping -c1 google.comOffline
After a lot of screwing around I do indeed have a working network connection. Thank you very much!
David Bryant
Canyon Lake, Texas
https://davidcbryant.net
Offline
Pages: 1