Installing Centos 7 with a minimal install option will leave you in a funny situation, where no “net-tools” package is installed, so (as far as I can tell) you can’t bring up the basic network interface (because it’s off on boot by default) with the usual ifconfig command, because there is no ifconfig.
The only solution is to edit the bootup script:
and set the
option. After save and restart, by default it will ask the DHCP for an IP address, and you’re basically good to go.
On the other side, you might want to give the box a static IP address immidiately, in that case, stay a bit more on the ifcfg-enp0s3 file, and change/add the following options:
Save, and reboot.
Furthermore, if you wish to have ifconfig around now, install it with
yum isntall “net-tools”