1. nmcli d nmcli connection show ip addr show
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
  TYPE=Ethernet
  PROXY_METHOD=none
  BROWSER_ONLY=no
  BOOTPROTO=static
  DEFROUTE=yes
  IPV4_FAILURE_FATAL=no
  IPV6INIT=yes
  IPV6_AUTOCONF=yes
  IPV6_DEFROUTE=yes
  IPV6_FAILURE_FATAL=no
  IPV6_ADDR_GEN_MODE=stable-privacy
  NAME=enp2s0
  UUID=ba1504be-070b-411a-bc16-336ffc55433e
  DEVICE=enp2s0
  ONBOOT=yes
  IPADDR=192.168.50.231
  GATEWAY=192.168.50.1
  NETMASK=255.255.255.0
  DNS1=8.8.8.8
  DNS2=8.8.8.8
  1. nmcli connection up enp2s0

  2. service network restart