Setup network on CentOS 7 minimal

After installing Centos 7 minimal You can't connect to a network in this machine.

  1.  nmcli d  # it show you quicl list etherner card and status disconnected
  2.  nmtui    #in this tool you can edit settings for ethernet especially "Automatically connect". It set ip address for ethernet card.
  3. service network restart