Linux 101 : Nmcli - Configuring a dynamic IP address using the Network Manager Command Line Interface -



We can display the network connections in our  system: 


We get an interactive access to the mncli - Network Manager -command line, using the below command:


To see the setting of the ipv4 protocol of our connection "Wired 1", we use the below command:


Then we change the setting of the ipv4 protocol - ipv4.method - from "manual" to "auto" using the below command in the interactive mode: -  "auto" means a dynamic IP address -


For the changes to take effect, we bring down the network connection, then we bring it back up, as below:


Comments

Leave as a comment:

Archive