Cannot ping guests in NatNetwork

Discussions related to using VirtualBox on Windows hosts.
Post Reply
VWTx2003
Posts: 5
Joined: 11. Jul 2018, 19:26

Cannot ping guests in NatNetwork

Post 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?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Cannot ping guests in NatNetwork

Post 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.
Bill
VWTx2003
Posts: 5
Joined: 11. Jul 2018, 19:26

Re: Cannot ping guests in NatNetwork

Post 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!
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Cannot ping guests in NatNetwork

Post by scottgus1 »

If you want the firewall on and still be able to ping, enable 'ICMP Echo Request'.
Post Reply