nmcli connection modify 'home' ipv4.gateway 192.168.1.1

Category: Local Network & Public Hosting

nmcli connection modify 'home' ipv4.gateway 192.168.1.1

Set the default gateway on a profile

The gateway is the router that carries traffic leaving the local subnet, usually your home router at 192.168.1.1. This stores it in the home profile alongside the static address. Apply it with nmcli connection up 'home' and verify with ip route, which should show a default route via that address.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.