January 11, 2024, 13:32
sudo nmcli con mod <UUID> ipv4.addresses <Static IP>/<Subnet mask> sudo nmcli con mod <UUID> ipv4.gateway <IP to gateway> sudo nmcli con mod <UUID> ipv4.dns "<IP to DNS server>" sudo nmcli con mod <UUID> ipv4.method manual sudo nmcli con up <UUID>And enter the values where there is a text enclosed in <>. ### Example:
sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.addresses 192.168.111.21/24 sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.gateway 192.168.1.1 sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.dns "192.168.1.1" sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.method manual sudo nmcli con up 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e