Lan stays down on start, Arch Linux

hi26

New Member
My Lan network starts in the Down state. It only goes up after I plugin a cable.
This stops another service(sshd) from starting.

cat /etc/systemd/network/20-wired.network
[Match]
Name=enp8s0

[Link]
RequiredForOnline=no

[Network]
Address=20.21.22.1/24
DHCPServer=true
IPMasquerade=ipv4

[DHCPServer]
PoolOffset=100
PoolSize=20
EmitDNS=yes

networkctl:
2 enp8s0 ether no-carrier configuring

journalctl:
Sep 05 12:50:00 archlinux2 systemd-networkd[463]: enp8s0: Reconfiguring with /etc/systemd/network/20-wired.network.
Sep 05 12:50:00 archlinux2 kernel: r8169 0000:08:00.0 enp8s0: Link is Down
Sep 03 18:45:22 archlinux2 kernel: r8169 0000:08:00.0 enp8s0: Link is Down
Sep 03 18:45:22 archlinux2 systemd-networkd[463]: enp8s0: Link UP

thanks
 
With no network do you need sshd?

Has it been configured to listen on a specific address? Check for listenaddress in /etc/ssh/sshd_config, you could bind to 0.0.0.0 instead. If you only want to listen on a specific address, you should be able to set sshd to start after network-online. Something like
Code:
After=network-online.target
Wants=network-online.target
in its systemd unit

Depending on what config you might have, this section is worth a read https://wiki.archlinux.org/title/OpenSSH#Daemon_management
 
Last edited:
Back
Top