nmcli - NetworkManager Command Line Interface
The nmcli utility can be used by both users and scripts for controlling NetworkManager.
nmcli is a command-line tool which is used for controlling NetworkManager.
nmcli command can also be used to display network device status, create, edit, activate/deactivate, and delete network connections.
List of commands
nmcli general status
Enter fullscreen mode
Exit fullscreen mode
nmcli connection
Enter fullscreen mode
Exit fullscreen mode
nmcli connection modify <name> i<tab>
Enter fullscreen mode
Exit fullscreen mode
Once modified & then bring the nmcli UP.
nmcli connection modify "name" ipv4.addresses
192.12.123.10/10 ipv4.gateway 192.12.123.254 ipv4.dns
192.12.123.254
Now bring it UP.
nmcli connection up "<name>"
Enter fullscreen mode
Exit fullscreen mode
Notes
Nameserver is also referred as DNS.
Give the tab always so that option appears , its like what is next command or word.
IP address , Netmask , Gateway & Nameserver.
How to assign number after "/" in the IP address --> TBD
Top comments (0)