In Vmware Linux sometimes the ifconfig will not show the default network device ifcfg-eth0. It shows just lo network device.
Below are few workaround for such issue. This should be tried in testing environment. We just demonstarte for learning purpose.
ifcfg-eth0 network config details doesn’t show up with ifconfig command. It only displayed the loopback interface details.
Even after network restarted it still shows the same output as below:
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1
Make sure the entried on your network device looks similar as highlighted below. IPADDR, GATEWAY and NETMASK mentioned is correct. And also the MAC address which is HWADDR address.
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 BOOTPROTO=none DEVICE=eth0 GATEWAY=192.168.0.1 HWADDR=08:11:D7:EC:77:4H IPADDR=192.168.0.150 NETMASK=255.255.255.0 NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet USERCTL=no
If above steps looks fine then try deleting this net rules file. Make sure you have proper back of the file before you delete it.
# rm /etc/udev/rules.d/70-persistent-net.rules
And finally again check the MAC address from VMware option and change the same which should resolve the issue.