1

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

Serg
  • 834
  • 7
  • 14
Franklin Foko
  • 11
  • 1
  • 2
  • 1
    [This answer](https://askubuntu.com/a/376586/1222991) from a few years back should do what you need – matigo Jan 03 '22 at 23:12
  • 1
    Does this answer your question? [How to restart the networking service?](https://askubuntu.com/questions/230698/how-to-restart-the-networking-service) – karel Jan 04 '22 at 00:35

1 Answers1

0

The correct command is

$ sudo systemctl restart systemd-networkd

The service is called systemd-networkd, not networking.

cocomac
  • 3,043
  • 3
  • 16
  • 49