Managing Linux NetworkManager

NetworkManager is a versatile tool to manage network interfaces and connections on Linux. It is part of the default installation. Based on your requirements, you can start, stop, enable, and disable it.

Linux uses the systemctl command to manage services. It supports many options. Some important options are the following.

status List the current state of the service
start Start the service in the current session
stop Stop the service in the current session
enable Start the service at the boot time
disable Stop the service at the boot time

Let’s use the above options to manage the NetworkManager service.

Viewing or checking the current state of the NetworkManager service

The following command prints the current state of NetworkManager.

# systemctl status NetworkManager

systemctl status NetworkManager

If the output shows 'Active: active (running)', it means the service is up and running.

If the output shows 'Active: inactive (dead)', it means the service is down and not running.

Stopping the NetworkManager service

The following command stops the NetworkManager service.

# systemctl stop NetworkManager

systemctl stop NetworkManager

Starting the NetworkManager service

The following command starts the NetworkManager service.

# systemctl start NetworkManager

systemctl start NetworkManager

Enabling the NetworkManager service

The following command enables the NetworkManager service at boot time.

# systemctl enable NetworkManager

Disabling the NetworkManager

The following command disables the NetworkManager service at boot time.

# systemctl disable NetworkManager

systemctl disable NetworkManager

Conclusion

NetworkManager is the default interface and connection management service on Linux. It automatically detects and assigns configuration on interfaces.

ComputerNetworkingNotes Linux Tutorials Managing Linux NetworkManager