Failed to restart networking.service: Unit networking.service not found. ubuntu18 code example
Example 1: how to restart the network in ubuntu
$ sudo service network-manager restart
Example 2: linux restart all network interfaces
sudo service network-manager restart