The nmcli (NetworkManager Command-Line Interface) is a powerful command-line tool for controlling NetworkManager and managing network connections in Linux systems. It provides a comprehensive interface for viewing, configuring, and troubleshooting network settings without requiring a graphical user interface.
NetworkManager is a daemon that manages network connections and devices, automatically connecting to available networks based on user preferences. The nmcli command serves as the primary command-line interface to interact with NetworkManager, making it essential for server administrators, network engineers, and users working in terminal environments.
nmcli connection add type bond con-name "Bond Connection" ifname bond0 bond.options "mode=active-backup,miimon=100"nmcli connection add type ethernet slave-type bond con-name "Bond Port 1" ifname eth0 master bond0nmcli connection add type ethernet slave-type bond con-name "Bond Port 2" ifname eth1 master bond0
The nmcli command is an essential tool for managing network connections in Linux environments. Its comprehensive feature set allows for complete control over NetworkManager from the command line, making it invaluable for server administration, automation, and troubleshooting network issues.
Whether you're configuring a simple home network or managing complex enterprise networking environments, mastering nmcli provides you with the flexibility and power needed to efficiently manage network connections in Linux systems.
Test Your Knowledge
Take a quiz to reinforce what you've learned
Exam Preparation
Access short and long answer questions for written exams