From SpectLog
Jump to: navigation, search
  • List connections
# shell
nmcli con show
  • Start editing connection
# shell
nmcli con edit 7184fa3d-90b7-3a12-8198-4f5b40a65035
  • Show connection properties
# nmcli
print all
  • Set static configuration method:
# nmcli
set ipv4.method manual
  • Set required IP configuration:
# nmcli
set ipv4.address 192.168.181.214/23
set ipv4.gateway 192.168.180.1
  • Remove unwanted IP addresses:
# nmcli
remove ipv4.address 192.168.18.108/32

NOTE: Removing IP address causes removal of all IP addresses. So, one has to add them again one by one.

  • Save configuration and quit:
# nmcli
save persistent
quit
  • Restart connection:
# shell
nmcli con down 7184fa3d-90b7-3a12-8198-4f5b40a65035
nmcli con up 7184fa3d-90b7-3a12-8198-4f5b40a65035