Page 1 of 1

eth0 gets dhcp address but can't ping

Posted: 2019/05/21 20:39:56
by systemerror
I don't have a lot of 'nix experience, but here's the scenario: Moving a centos 6 vm from vmware host to hyperv host. Copied vmdk, converted to vhd, created vm with legacy adapter. Booted vm, uninstalled vmware integration. Rebooted, vm sees legacy adapter, pulls address from dhcp but can't ping. I shut down, removed the legacy adapter from the vm definition, removed all the 'eth0' files from .../network-scripts, udev and dev. Shut down and added the legacy adapter back, rebooted - eth0 returns pulls an address but still no ping. Hoping someone on here will tell me i'm completely overlooking the -makeitwork:yes function somewhere? Any ideas anyone?

Re: eth0 gets dhcp address but can't ping

Posted: 2019/05/21 22:14:06
by TrevorH
What networking mode did you choose in VMWare for the guest? What is the output from lspci -nn | grep -i net ?

Re: eth0 gets dhcp address but can't ping

Posted: 2019/05/22 12:23:40
by systemerror
Thanks Trevor -
lspci -nn | grep -i net gives the following:

00:0a.0 Ethernet controller [0200]: Digital Equipment Corporation DECchip 21140 [Fasternet] [1011:0009 (rev 20)

Re: eth0 gets dhcp address but can't ping

Posted: 2019/05/22 13:15:00
by systemerror
Update:

instead of trying to use the legacy adapter, I installed the microsoft linux integration services, shut down, removed the legacy adapter from the hyperv vm, installed a regular hyperv network adapter, rebooted. Network came up, pulled an address from dhcp and was able to ping the local subnet.