You were on the right path. To make the changes permanent use the reload command.and it did nothing then I found this method and all the commands were accepted
sudo nmcli con modify "Wired connection 1" ipv4.address 192.168.1.32/24
sudo nmcli con modify "Wired connection 1" ipv4.gateway 192.168.1.254
sudo nmcli con modify "Wired connection 1" ipv4.dns 192.168.1.254
sudo nmcli con modify "Wired connection 1" ipv4.method manual
sudo nmcli con up "Wired connection 1"
Code:
# I put the mode and address on the same line. I found sometimes manual would error because the current# address was 0.0.0.0. Putting both setting on the the one line avoids this problemsudo nmcli con modify "Wired connection 1" ipv4.method manual ipv4.address 192.168.1.32/24sudo nmcli con modify "Wired connection 1" ipv4.gateway 192.168.1.254sudo nmcli con modify "Wired connection 1" ipv4.dns 192.168.1.254# Save the config.sudo nmcli con reload "Wired connection 1" # I do a down followed by up, but pulling the LAN cable out and plugging it back in also works# Putting them on the one line works over ssh remotelysudo nmcli con down "Wired connection 1"; sudo nmcli con up "Wired connection 1"Statistics: Posted by kmacdchap — Sat Jan 24, 2026 1:28 am