Linux 101 : Nmcli - adding an IP address, Network Manager Command Line Interface -



Adding an address to an interface: 

We can display the network connections of our system using the below command:


We can display the IP address of our network connection "Wired 1" using the below command:


We could add an IP address to our network connection "Wired 1" using the below command:


As a last step, we will need to restart our network connection using the below command:


Deleting an IP address:

We can also remove the newly added IP address using the below command:


Then, we restart our network connection for the changes to take effect:


Comments

Leave as a comment:

Archive