eth0 gets dhcp address but can't ping

Issues related to configuring your network
Post Reply
systemerror
Posts: 3
Joined: 2019/05/21 20:30:32

eth0 gets dhcp address but can't ping

Post by systemerror » 2019/05/21 20:39:56

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?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: eth0 gets dhcp address but can't ping

Post by TrevorH » 2019/05/21 22:14:06

What networking mode did you choose in VMWare for the guest? What is the output from lspci -nn | grep -i net ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

systemerror
Posts: 3
Joined: 2019/05/21 20:30:32

Re: eth0 gets dhcp address but can't ping

Post by systemerror » 2019/05/22 12:23:40

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)

systemerror
Posts: 3
Joined: 2019/05/21 20:30:32

Re: eth0 gets dhcp address but can't ping

Post by systemerror » 2019/05/22 13:15:00

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.

Post Reply