

To shut down all network interfaces, use ifdown and then use ifup to turn all network interfaces back on.Ī good practice would be to combine both of these commands: sudo ifdown -a & sudo ifup -a It’s one of the must know networking commands in Linux. This commands handle a network interface directly, changing it’s state to one in which it either can or can not transmit and receive data. You can check out the man page of nmcli for more options. To turn it back on: sudo nmcli networking on The network will shut down and the icon will disappear. There are two steps to this method: turning the network off, and then turning it back on. Many sysadmins prefer it since it is easy to use. It is a pretty powerful tool that I find very practical. This is yet another tool for handling networks on a Linux machine. To check out other systemctl options, you can refer to its man page. The network icon (again) should disappear for a moment.

The systemctl command is much more versatile than service. The service command is just a wrapper for this method (and also for init.d scripts and Upstart commands). The network icon should disappear for a moment and then reappear. It’s equivalent to the graphical way of doing it (restarts the Network-Manager service). This is the easiest way to restart your network using the command line. Some (or perhaps most) commands mentioned here should be applicable for restarting network in Debian and other Linux distributions as well. Now you have several commands at your disposal to restart network in Ubuntu. If you are using the desktop edition, you can access the terminal using Ctrl+Alt+T keyboard shortcut in Ubuntu. If you are using Ubuntu server edition, you are already in the terminal.

To access Webmin from another system on the network. Restart network in Ubuntu using command line To access Webmin, open any web browser, and type followed by localhost and the port 10000.
