After installing CentOS in Hyper-V we may face network not connected or no network connection.
hostname -I
ip r
not showing in ip address in output
Let us fix:-
Temporary fix----
nmcli device
nmcli connection up eth0
Permanent fix:-
vi /etc/sysconfig/network-scripts/ifcfg-eth0
change ONBOOT=yes from ONBOOT=no
reboot the centos vm