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.Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
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:Installing NetworkManager (if necessary)
In some cases, NetworkManager may not be pre-installed on your system. To install it, run the following command: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:-
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”). -
Enable autoconnect:
Modify the autoconnect setting for the desired connection with: