VMware VM - Host/Guest Can't Ping Each Other

Issues related to configuring your network
Post Reply
Chocobits
Posts: 3
Joined: 2021/08/29 23:42:51

VMware VM - Host/Guest Can't Ping Each Other

Post by Chocobits » 2021/08/29 23:56:52

I'm having a strange issue where my CentOS guest and Windows host can't ping each other by IP or hostname. It's not a DNS issue because I can ping other computers on my network by hostname or IP and vice versa. I have allowed ICMP in CentOS. I can reach the web portal for my router from a browser in CentOS without issue. The Host and Guest just can't ping each other (but other computers on the network have no issue pinging the Host computer).

The virtual NIC is in bridged mode. I have a static IP assigned to CentOS, with address, gateway and DNS specified (DNS1=Google DNS, DNS2=Gateway IP) in ifcfg. All computers are on the same /24 subnet. In troubleshooting I have seen people mention checking /etc/resolve.conf, but I don't seem have an /etc/resolve.conf.

I am a bit of a Linux novice admittedly, so don't assume I know even basic information :lol: :lol: :lol: Can anyone think of something I can check to resolve this?

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

Re: VMware VM - Host/Guest Can't Ping Each Other

Post by TrevorH » 2021/08/30 09:52:03

Do you have the correct netmask specified on both sides of the connection>?
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

Chocobits
Posts: 3
Joined: 2021/08/29 23:42:51

Re: VMware VM - Host/Guest Can't Ping Each Other

Post by Chocobits » 2021/08/30 18:15:23

TrevorH wrote:
2021/08/30 09:52:03
Do you have the correct netmask specified on both sides of the connection>?
Yes, they are both on a 10.221.221.0/24 with a 255.255.255.0 subnet mask.

Here is my IFCFG:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens32
UUID=ee6970f8-b327-43ff-92a6-ea80e3279913
DEVICE=ens32
ONBOOT=yes
PREFIX=24
IPADDR=10.221.221.216
NETMASK=255.255.255.0
GATEWAY=10.221.221.1
DNS1=8.8.8.8
DNS2=10.221.221.1

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: VMware VM - Host/Guest Can't Ping Each Other

Post by jlehtone » 2021/08/30 18:30:24

Chocobits wrote:
2021/08/29 23:56:52
I'm having a strange issue where my CentOS guest and Windows host can't ping each other by IP or hostname.

The virtual NIC is in bridged mode.
If both host and guest can reach all other devices in the subnet, then the issue is most likely in the "VMware bridge", not in either OS.

Chocobits
Posts: 3
Joined: 2021/08/29 23:42:51

Re: VMware VM - Host/Guest Can't Ping Each Other

Post by Chocobits » 2021/08/30 18:35:55

Here's a logical breakdown of what is happening (I have another computer besides the VM host):

Computer1 CAN ping VMHOST
VMHOST CAN ping Computer1

Computer1 CAN ping CentOS-VM
CentOS-VM CAN ping Computer1

VMHOST CAN NOT ping CentOS-VM
CentOS-VM CAN NOT ping VMHOST

CentOS-VM CAN ping and reach the web login for the router they are all connected to.

All are on 10.221.221.0/24 network. VM is running on VMware Workstation Pro on a Windows host. Virtual nic in CentOS-VM is in Bridged mode.

*Edit* You had already replied by the time I did.

So, that gives me some relief. The CentOS configuration from everything I could determine looks good - So you think the issue lies in the VMware nic configuration? I will look there, thank you.

Post Reply