restart network ubuntu server 18.04 code example
Example 1: how to restart the network in ubuntu
$ sudo service network-manager restart
Example 2: network manager restart ubuntu
sudo service network-manager restart
$ sudo service network-manager restart
sudo service network-manager restart