When I type:

systemctl restart networking.service

this error message show:

failed to restart networking.service: Unit networking.service not found

I use ubuntu server 20.04 LTS


1 Answer 1


The correct command is

$ sudo systemctl restart systemd-networkd

The service is called systemd-networkd, not networking.

  • Please check again: Failed to restart network-manager.service: Unit network-manager.service not found.
    – chili555
    Jan 4, 2022 at 2:04
  • @chili555 Fixed, this should work now
    – cocomac
    Jan 4, 2022 at 2:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .