I have a setup where
- the guest system can ping the host system
- but the host can not ping the guest
Somehow it seems Windows is blocking outgoing traffic on the host-only adapter (not only limited to "ping", but also to SMB).
I hope someone can help to troubleshoot the issue.
I'm providing the information that I htink is needed -- let me know if any additional information would be helpful
My configurations/versions of VirtualBox, host and guest are as follows:
VirtualBox 6.1.28
2 network adapters configured:
- NAT, so the guest has internet access (that works)
- host-Only adapter with static IP 192.168.100.1/255.255.255.0
Code: Select all
> route print
[...]
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 172.29.163.254 172.29.163.51 50
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 331
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 331
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331
172.17.138.48 255.255.255.240 Auf Verbindung 172.17.138.49 5256
172.17.138.49 255.255.255.255 Auf Verbindung 172.17.138.49 5256
172.17.138.63 255.255.255.255 Auf Verbindung 172.17.138.49 5256
172.29.163.0 255.255.255.0 Auf Verbindung 172.29.163.51 306
172.29.163.51 255.255.255.255 Auf Verbindung 172.29.163.51 306
172.29.163.255 255.255.255.255 Auf Verbindung 172.29.163.51 306
192.168.100.0 255.255.255.0 Auf Verbindung 192.168.100.1 281
192.168.100.1 255.255.255.255 Auf Verbindung 192.168.100.1 281
192.168.100.255 255.255.255.255 Auf Verbindung 192.168.100.1 281
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 331
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.100.1 281
224.0.0.0 240.0.0.0 Auf Verbindung 172.29.163.51 306
224.0.0.0 240.0.0.0 Auf Verbindung 172.17.138.49 5256
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.100.1 281
255.255.255.255 255.255.255.255 Auf Verbindung 172.29.163.51 306
255.255.255.255 255.255.255.255 Auf Verbindung 172.17.138.49 5256
[...]
The Linux guest system uses a static IP address (192.168.100.2) for the Host-Only adapter and receives a DHCP lease for NAT:
Code: Select all
# ip addr show
[...]
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:95:e1:27 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic noprefixroute enp0s3
valid_lft 73869sec preferred_lft 63069sec
inet6 fe80::6ed8:f6d1:369b:5374/64 scope link
valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 08:00:27:38:60:e2 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.2/24 brd 192.168.100.255 scope global enp0s8
valid_lft forever preferred_lft forever
inet 192.168.100.2/32 scope global enp0s8
valid_lft forever preferred_lft forever
[...]
Code: Select all
# traceroute 192.168.100.1
traceroute to 192.168.100.1 (192.168.100.1), 30 hops max, 60 byte packets
1 _gateway (10.0.2.2) 0.210 ms 0.168 ms 0.158 ms
2 _gateway (10.0.2.2) 1.482 ms 1.473 ms 1.465 ms
Code: Select all
# ip route
default via 10.0.2.2 dev enp0s3 proto dhcp src 10.0.2.15 metric 1002
10.0.2.0/24 dev enp0s3 proto dhcp scope link src 10.0.2.15 metric 1002
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown