Skip to main content
In this lesson, you will learn how to configure Linux systems to start network services automatically during boot. Ensuring that these services are enabled is critical for the network devices to obtain an IP address, gateway, routes, and other necessary settings. A crucial program for managing network connectivity is NetworkManager. If NetworkManager does not start automatically, your network configuration may fail, preventing essential services from initializing correctly.
Ensure you use an uppercase “N” and “M” when referencing NetworkManager.

Check the NetworkManager Service Status

To verify that NetworkManager is running, execute the following command:
If the output confirms that the service is active, running, and enabled, then NetworkManager is properly configured to start at boot.

Installing NetworkManager (if necessary)

In some cases, NetworkManager may not be pre-installed on your system. To install it, run the following command:
Once installed, start the service with:

Enable Autoconnect on a Specific Network Connection

To ensure that a specific network connection is initialized at boot, you need to modify its autoconnect settings:
  1. List all configured connections:
    Run the command below to view all connections. Identify the connection you wish to modify (in this example, it is “enp0s3”).
  2. Enable autoconnect:
    Modify the autoconnect setting for the desired connection with:
This configuration ensures that the specified network connection automatically initializes when the system boots. This concludes the lesson on configuring network services to start automatically at boot. For further details, consider exploring NetworkManager Documentation.

Watch Video