[root@999999 ~]# nmcli connection delete enp1s0 Connection 'enp1s0' (f03ca672-c3f6-433a-b336-832566e18e76) successfully deleted.
[root@999999 ~]# nmcli connection add \ con-name enp1s0 ifname enp1s0 type ethernet \ ipv4.addresses 192.168.122.8/24 \ ipv4.gateway 192.168.122.1 \ ipv4.dns 192.168.122.1 \ ipv4.method manual Connection 'enp1s0' (a7b3ec85-0fa4-4bf3-b775-da87d43deacc) successfully added.
[root@999999 ~]# nmcli connection NAME UUID TYPE DEVICE enp1s0 2a4b4018-d130-405b-8647-6f3a1744b525 ethernet enp1s0
[root@999999 ~]# nmcli connection up enp1s0 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
[root@999999 ~]# nmcli connection show enp1s0 | grep -iE ipv?4 ipv4.method: manual ipv4.dns: 192.168.122.1 ipv4.dns-search: -- ipv4.dns-options: -- ipv4.dns-priority: 0 ipv4.addresses: 192.168.122.8/24 ipv4.gateway: 192.168.122.1 ipv4.routes: -- ipv4.route-metric: -1 ipv4.route-table: 0 (unspec) ipv4.routing-rules: -- ipv4.ignore-auto-routes: no ipv4.ignore-auto-dns: no ipv4.dhcp-client-id: -- ipv4.dhcp-iaid: -- ipv4.dhcp-timeout: 0 (default) ipv4.dhcp-send-hostname: yes ipv4.dhcp-hostname: -- ipv4.dhcp-fqdn: -- ipv4.dhcp-hostname-flags: 0x0 (none) ipv4.never-default: no ipv4.may-fail: yes ipv4.required-timeout: -1 (default) ipv4.dad-timeout: -1 (default) ipv4.dhcp-vendor-class-identifier: -- ipv4.dhcp-reject-servers: -- IP4.ADDRESS[1]: 192.168.122.8/24 IP4.GATEWAY: 192.168.122.1 IP4.ROUTE[1]: dst = 192.168.122.0/24, nh = 0.0.0.0, mt = 100 IP4.ROUTE[2]: dst = 0.0.0.0/0, nh = 192.168.122.1, mt = 100 IP4.DNS[1]: 192.168.122.1