Debian

nmcli

>> nmcli connection show
NAME                UUID                                  TYPE      DEVICE
Wired connection 1  d6d9bdd0-faca-3d6d-9574-aadcc447ca39  ethernet  enp3s0
br-66a7eff41572     91b6dbd1-cbae-45e0-9630-7ece1d23be42  bridge    br-66a7eff41572
docker0             8dcf6767-6fcd-4ba9-9d8b-4777842d86a8  bridge    docker0
sudo nmcli connection modify d6d9bdd0-faca-3d6d-9574-aadcc447ca39 connection.id enp3s0
>> nmcli connection
NAME             UUID                                  TYPE      DEVICE
enp3s0           d6d9bdd0-faca-3d6d-9574-aadcc447ca39  ethernet  enp3s0
sudo nmcli con modify Wired\ connection\ 1 +ipv4.addresses 192.168.0.5/24
nmcli connection up Wired\ connection\ 1
>> ip addr show dev enp3s0
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 1c:83:41:29:d9:b5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.5/24 brd 192.168.0.255 scope global noprefixroute enp3s0
       valid_lft forever preferred_lft forever
sudo nmcli connection modify enp3s0 +ipv4.routes "192.168.1.0/24 192.168.0.1"
sudo nmcli connection up enp3s0
sudo nmcli con mod enp3s0 +ipv4.dns 8.8.8.8