Page 1 of 1

Cannot ping guests in NatNetwork

Posted: 18. May 2020, 06:30
by VWTx2003
I am using virtualBox 6.1.2 in a Windows 10 host. In File/Preferences I created a NatNetwork and called it "natnet". It has all default values (10.0.2.0/24, and supports DHCP). After that I created two guest VM's with Windows 2016 Server as OS. For each one of these two VM's I went to Settings/Network and I selected NatNetwork and my "natnet". I start the V's. One gets the ip 10.0.2.4 and the other 10.0.2.5. They both get internet connection just fine and can ping the gateway 10.0.2.1. However, they cannot ping each other. They behave like if they are in different networks. I already tried restarting the VMs, restarting the host, and using these two commands:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe natnetwork stop --netname NatNetwork

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe natnetwork start --netname NatNetwork
No luck; nothing seems to help. What can I do? How can I resolve this issue? Is this a known bug?

Re: Cannot ping guests in NatNetwork

Posted: 18. May 2020, 09:00
by BillG
If you have Internet access from the guests, I would think everything is OK. My guess is that the Windows firewall is blocking the ping traffic. Temporarily disable the firewall in both vms and try again.

Re: Cannot ping guests in NatNetwork

Posted: 18. May 2020, 13:06
by VWTx2003
BillG wrote:If you have Internet access from the guests, I would think everything is OK. My guess is that the Windows firewall is blocking the ping traffic. Temporarily disable the firewall in both vms and try again.
Yes, that was the issue. Thank you!

Re: Cannot ping guests in NatNetwork

Posted: 18. May 2020, 23:17
by scottgus1
If you want the firewall on and still be able to ping, enable 'ICMP Echo Request'.