How does the Host-Only Adapter work?
Posted: 5. Jun 2020, 10:28
Hi, I have been trying out the different networks in VirtualBox and I came across a behavior that I hope someone would be able to explain.
I have the 2 set ups:
1. VM using Host-Only network
2. VM using NAT Network
In both cases I am trying to send ICMP packets from the VM to the host via the Host-Only network adapter (An IP is assigned to it and I attempt to ping the IP). Both of them results in a ICMP reply.
In setup 1, The ping packets can be picked up by a packet sniffer listening on the Host-Only network adapter, which made sense. However, in setup 2, the ping packets cannot be detected on the Host-only network adapter. The packets seems to have been found on the loopback interface instead.
I don't quite understand the following:
1. Why is it still possible to ping the Host-Only network adapter when the VM is not connected to the Host-Only network
2. Why did the packet go to the loopback adapter instead?
I figured that I am unable to understand this primarily because I do not understand how the virtual Host-Only adapter function. Could anyone help me with this?
I have the 2 set ups:
1. VM using Host-Only network
2. VM using NAT Network
In both cases I am trying to send ICMP packets from the VM to the host via the Host-Only network adapter (An IP is assigned to it and I attempt to ping the IP). Both of them results in a ICMP reply.
In setup 1, The ping packets can be picked up by a packet sniffer listening on the Host-Only network adapter, which made sense. However, in setup 2, the ping packets cannot be detected on the Host-only network adapter. The packets seems to have been found on the loopback interface instead.
I don't quite understand the following:
1. Why is it still possible to ping the Host-Only network adapter when the VM is not connected to the Host-Only network
2. Why did the packet go to the loopback adapter instead?
I figured that I am unable to understand this primarily because I do not understand how the virtual Host-Only adapter function. Could anyone help me with this?