I am working on an IoT project where I have set up a Raspberry Pi as a guest OS in VirtualBox on my Windows host machine. Both the host and the guest OS have been assigned static IP addresses: 192.168.56.1 for the host and 192.168.56.2 for the guest.
I am facing issues with network connectivity between the host and the guest OS. When I attempt to ping the guest OS (192.168.56.2) from the host, I receive the following message:
Pinging 192.168.56.2 with 32 bytes of data:
Reply from 192.168.56.1: Destination host unreachable.
Request timed out.
Request timed out.
Request timed out.Ping statistics for 192.168.56.2: Packets: Sent = 4, Received = 1, Lost = 3 (75% loss).
And when I try to ping the host (192.168.56.1) from the guest OS, I get the error message:
ping: connect: Network is unreachable
I have configured the network settings in VirtualBox to use a bridged adapter.
Could someone help me troubleshoot this issue? I'm unsure why the ping requests are failing despite configuring the network settings correctly. Any insights or suggestions would be greatly appreciated.