Q. I’m new to Linux and installed Ubuntu Linux successfully on my HP Laptop. Now I need to restart my network. How do I restart network under Ubuntu Linux?
A. Ubuntu Linux comes with a script called networking ( Ubuntu restart network command)– it is use to activates or deactivates or restart all network interfaces (NIC) configured to start at boot time.
Ubuntu Linux restart network command
Open shell or terminal and type the command as follows:
$ sudo /etc/init.d/networking restart
You can this command on remote Ubuntu Linux server without any problem, but make sure you pass only restart option. This command also accepts start and stop options:
WARNING! These examples may stop remote networking service if executed. Always, use restart option over ssh session.
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop