How to Restart Network on Ubuntu 20.04

How to Restart Network on Ubuntu 20.04

The NetworkManager service is the responsible to handle network on a Ubuntu system. NetworkManager daemon is available for most of modern Linux kernel-based and other Unix-like operating systems.

You can use NetworkManager for the configuration of the following connections types like: Ethernet, wireless, mobile broadband, and DSL and PPPoE (Point-to-Point over Ethernet). It also allows the configuration of the network aliases, static routes, DNS information and VPN connections on Linux systems.

This tutorial will help you to Start/Stop and Restart network services on Ubuntu Linux system.

Restart Network on Ubuntu 20.04

You can restart the network service with the command line interface as well as using the Desktop interface. Here are the three methods available to restart network service on Ubuntu system.

  • Method 1 – Using NetworkManager Service (CLI)

    NetworkManager is a daemon for simplifying the networking on Unix-like systems. It provides a rich API for the applications to query and control network configuration and state.

    Use the followings commands to start/stop network service on a Ubuntu Linux system.

    sudo systemctl start NetworkManager 
    sudo systemctl stop NetworkManager 
    

    Use the followings commands to restart network service.

    sudo systemctl restart NetworkManager 
    
  • Method 2 – Using nmcli Tool (CLI)

    The nmcli is a command-line utility for managing NetworkManager on a Ubuntu system. You can simply use this utility to stop/start network service on a Ubuntu system.

    WARNING – Do not run nmcli networking off for the remotely connected systems. This will disable the NetworkManager network connections on the machine and you will lose connection.
    sudo nmcli networking off  
    sudo nmcli networking on 
    

    The above command will disable/enable the network connections on Ubuntu Linux system.

  • Method 3 – Using Desktop

    For the Ubuntu desktop users, Users can directly enable disable networking from the interface. To disable networking:

    • Move mouse pointer to top-right corner.
    • Click on triangle icon button.
    • Click Wired Connected option.
    • Then click Turn Off.

    enable networking ubuntu 20. 04

    To enable the networking on Ubuntu follow below steps:

    • Move mouse pointer to top-right corner.
    • Click on triangle icon button.
    • Click Wired Off option.
    • Then click connect.

    turn off networking ubuntu 20. 04

Conclusion

In this tutorial, you have learned 3 methods restart network services on a Ubuntu system.

The post How to Restart Network on Ubuntu 20.04 appeared first on TecAdmin.

TecAdmin Ubuntu