[root@777777 ~]# nmcli connection show NAME UUID TYPE DEVICE eth0 5a0ff824-0615-4fce-86c4-ad3e73e26c61 802-3-ethernet eth0
[root@777777 ~]# nmcli connection modify eth0 \ ipv4.addresses 192.168.122.7/24 \ ipv4.gateway 192.168.122.1 \ ipv4.dns 192.168.122.1 \ ipv4.method manual
[root@777777 ~]# systemctl restart network.service
[root@777777 ~]# nmcli connection show eth0 | egrep -i ipv?4 ipv4.method: manual ipv4.dns: 192.168.122.1 ipv4.dns-search: ipv4.addresses: 192.168.122.7/24 ipv4.gateway: 192.168.122.1 ipv4.routes: ipv4.route-metric: -1 ipv4.ignore-auto-routes: no ipv4.ignore-auto-dns: no ipv4.dhcp-client-id: -- ipv4.dhcp-send-hostname: yes ipv4.dhcp-hostname: -- ipv4.never-default: no ipv4.may-fail: yes IP4.ADDRESS[1]: 192.168.122.7/24 IP4.GATEWAY: 192.168.122.1 IP4.DNS[1]: 192.168.122.1