Nmcli - richiedennis/Tech-Journal-SYS265- GitHub Wiki

How to configure Static IP Address with NMCLi

  1. List active connections with: nmcli connection
  2. Assign ipv4 address to proper interface with command: nmcli con mod (interface, ex. ens192) ipv4.addresses (ip ex. 10.0.5.234)
  3. Assign gateway using a similar command: nmcli con mod (interface) ipv4.gateway (gateway)
  4. Now save the changes and reload: nmcli con up (interface)