Scopler

No post found
No post found

How to reset network settings in Linux

Resetting your Linux network settings can be necessary in various situations, such as troubleshooting network connectivity issues or other connectivity issues related to NetworkManager.

Before we begin resetting the network settings on a Linux system, it's important to know what NetworkManager is.

So, what is NetworkManager?

NetworkManager is a widely used Linux utility program that manages wireless and wired network connections on Linux systems. It's offered features such as the ability to switch to the most reliable network connection available. The NetworkManager utility program was originally developed by Red Hat.

Know more about NetworkManager:

Reset network settings.

Follow the steps below to reset your system's network settings.

Step 1: Stop the NetworkManager

sudo systemctl stop NetworkManager

sudo systemctl stop NetworkManager command will stop NetworkManager from running.

Step 2: Delete the NetworkManager connection files.

After completing the first step, you can now delete the NetworkManager's connection file by running the following command:

sudo rm /etc/NetworkManager/system-connections/*

Step 2: Now, start NetworkManager.

Now, restart NetworkManager by running this command:

sudo systemctl start NetworkManager

After running this command, you should restart your system.