Can't ping from host to (bridged adapter) guest

Discussions related to using VirtualBox on Linux hosts.
Post Reply
GladysStoutpamphlet
Posts: 3
Joined: 24. Dec 2021, 20:28

Can't ping from host to (bridged adapter) guest

Post by GladysStoutpamphlet »

I've got a Debian 10 host, and I've set up a Windows 11 (retail) guest. Both the VM settings and Win 11 installation are mostly default. I did change Network Adapter from NAT Network to Bridged Adapter.

The guest reports its IP as 192.168.0.220, and I can ping both the host (Linux system) and another (physical) Windows machine (all three are on the same subnet). However, when I try to ping the guest system from either the host or physical machines, it times out:

Code: Select all

// Ping from Guest to Host
192.168.0.220  --ping-->  192.168.0.100  (OK)

// Ping from Guest to (physical) Windows 10 system
192.168.0.220  --ping-->  192.168.0.101  (OK)

// Pings in the other direction
192.168.0.100  --ping-->  192.168.0.220  (timeout)
192.168.0.101  --ping-->  192.168.0.220  (timeout)
It seems like this ought to work. Anyone know what I'm doing wrong?[/size]
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Can't ping from host to (bridged adapter) guest

Post by scottgus1 »

Windows defaults to blocking Ping in the Windows firewall. Web-search how to enable Ping (ICMP Echo Request) in 11's firewall, then try again.

FWIW if ping can get through even one way, then the Virtualbox network is working and troubles are coming from other configurations in the VM's or other OS's.
GladysStoutpamphlet
Posts: 3
Joined: 24. Dec 2021, 20:28

Re: Can't ping from host to (bridged adapter) guest

Post by GladysStoutpamphlet »

Ah, thank you. It hadn't occurred to me that ICMP was blocked by default in Windows 11.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Can't ping from host to (bridged adapter) guest

Post by scottgus1 »

No problem! Glad you're up and running.
GladysStoutpamphlet
Posts: 3
Joined: 24. Dec 2021, 20:28

Re: Can't ping from host to (bridged adapter) guest

Post by GladysStoutpamphlet »

This actually started as a different networking issue (inability to connect to something running on this VM), so I switched to ping and found that not working. The first part of the connection sequence is a UDP broadcast from the client (a VR headset). I read that NAT wouldn't pass UDP broadcast packets through (and the VM would be on a different subnet anyway), but I expected it to work when configured for Bridged Adapter.

BTW, I'm using VirtualBox 6.1.28
Post Reply