How to enable network adapter in centOS7 minimal?
Edit the file from the below location.
/etc/sysconfig/network-scripts/ifcfg-enp<number>
Change the ONBOOT
option to YES
and restart network service.
service network restart
This will enable the network whenever VM is brought up.
To know the network status use the nmcli d
command STATE
column output.
May be you just need to bring the network interface up, so the command is
ifup enp0s3