nmcli connection modify 'home' ipv4.addresses 192.168.1.50/24

Category: Local Network & Public Hosting

nmcli connection modify 'home' ipv4.addresses 192.168.1.50/24

Set a static IP address on a profile

This edits the home profile so it requests the fixed address 192.168.1.50 with a 24-bit subnet mask when it connects. Changing the address alone does nothing until you also set the method to manual and reactivate the profile. The /24 suffix means the first 24 bits identify the network, covering 192.168.1.1 through 192.168.1.254.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.