I have the following setup:
Host machine Windows:
IPv4 Address. . . . . . . . . . . : 192.168.0.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
Guest machine Ubuntu in VirtualBox:
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:01:85:e3 brd ff:ff:ff:ff:ff:ff
inet 192.168.33.3/24 brd 192.168.33.255 scope global dynamic enp0s3
valid_lft 359sec preferred_lft 359sec
inet6 fe80::a00:27ff:fe01:85e3/64 scope link
valid_lft forever preferred_lft foreve
VirtualBox Host-Only Ethernet Adapter:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::1454:89c9:eb7c:9d6d%37
IPv4 Address. . . . . . . . . . . : 192.168.33.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
VirtualBox DHCP:
Server 192.168.33.2
Mask 255.255.255.0
Lower addr 192.168.33.3
Upper addr 192.168.33.254
I can easily ping from the Host machine Windows to the guest:
ping 192.168.33.3
Pinging 192.168.33.3 with 32 bytes of data:
Reply from 192.168.33.3: bytes=32 time<1ms TTL=64
Reply from 192.168.33.3: bytes=32 time<1ms TTL=64
Reply from 192.168.33.3: bytes=32 time<1ms TTL=64
It does not work for me otherwise. Namely, I cannot ping from the Guest Ubuntu to the Host Windows:
ping 192.168.0.103
ping: connect: Network is unreachable
P.S. I even tried to modify the guest's address to 192.168.0.3 to match the host's network and the actual result was the same:
I could not ping from the Guest Ubuntu to the Host Windows machine 192.168.0.103.
However, the guest (Ubuntu) can ping VirtualBox Host-Only Ethernet Adapter:
ping 192.168.33.1
PING 192.168.33.1 (192.168.33.1) 56(84) bytes of data.
64 bytes from 192.168.33.1: icmp_seq=1 ttl=128 time=0.378 ms
64 bytes from 192.168.33.1: icmp_seq=2 ttl=128 time=0.430 ms
VirtualBox has this table:
https://www.virtualbox.org/manual/ch06.html
Host-only:
VM→Host +
VM←Host +
VM1↔VM2 +
VM→Net/LAN -
VM←Net/LAN -
Is it normal VirtualBox behavior? (I saw threads that people can ping from guest to host in this mode).
What am I missing?