[Ubuntu] Disable Network Wait Online

Edtie service file.

/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service, add “–timeout=5” for the following line:

1
ExecStart=/lib/systemd/systemd-networkd-wait-online –timeout=5

OR

Apply both in order:

1
2
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service

Then reboot and check.


[Ubuntu] Disable Network Wait Online
https://www.aojie654.com/20250628_linux_ubuntu_disable_network-wait-online/
Author
aojie654
Posted on
June 28, 2025
Licensed under