Network Config · Lesson 4 of 5
Network Manager
0 / 4 checkpoints answered
NetworkManager manages network devices and activates connection profiles on many Linux desktops and servers. It is not universal, so confirm that it owns the target interface before using nmcli to change configuration.
Devices and Connections
A device is a kernel interface such as enp1s0 or wlan0. A connection is a stored profile containing IPv4, IPv6, DNS, Wi-Fi, routing, and other settings. One device can have several profiles, but normally only an applicable profile is active at a time.
$ nmcli device status
$ nmcli connection show
$ nmcli connection show --active
CheckWhat is a NetworkManager connection profile?
press 1/2/3 to answer · → next lesson
Inspecting Effective State
Show the active profile and device details:
$ nmcli -f GENERAL,IP4,IP6 device show enp1s0
$ nmcli connection show 'Wired connection 1'
Profile settings, runtime DHCP results, and kernel state can differ. Compare with ip address, ip route, and the resolver. The deprecated nm-tool should not be the basis of a current workflow.
CheckWhich command lists active NetworkManager profiles?
press 1/2/3 to answer · → next lesson
Modifying and Activating a Profile
Modify a named profile explicitly, then activate it in a maintenance window:
$ sudo nmcli connection modify 'Wired connection 1' ipv4.method auto
$ sudo nmcli connection up 'Wired connection 1'
Modification changes persistent profile data; activation can replace live addresses, routes, and DNS. A remote change needs console access, saved original settings, and an independent timed rollback. Never rely on the connection being changed to carry its own recovery command.
CheckWhat is the difference between connection modify and connection up?
press 1/2/3 to answer · → next lesson
Verifying and Protecting Secrets
After activation, verify profile state, kernel addresses and routes, DNS, both address families, and the intended application. Wi-Fi, VPN, 802.1X, and mobile profiles can contain secrets. Limit profile permissions and avoid printing secret fields into shared logs or shell transcripts.
CheckWhat proves more than NetworkManager reporting “connected”?
press 1/2/3 to answer · → next lesson
Summary
You can now manage NetworkManager profiles without confusing them with interface objects.
- Confirm NetworkManager owns the target device.
- Distinguish stored profiles from active runtime state.
- Inspect devices, all profiles, and active profiles separately.
- Modify, activate, recover, and verify as distinct steps.
Lesson complete
You finished Network Manager. Nice work — keep the momentum going.