I have a Fedora 22 laptop with a VirtualBox VM on it. All worked fine when I attached the VM to my wireless network card, but I want to attach it to my hardwired card because the wireless changes. But I cannot ping the VM from my host. Any suggestions?
Here is what I've done:
Configured my hardwired nic. Set it to not be managed by Networkmanager. I have brought it up, and I can ping it. ifconfig shows:
enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500` inet 10.0.1.1 netmask 255.255.255.0 broadcast 10.0.1.255` ether 3c:97:0e:38:c4:9d txqueuelen 1000 (Ethernet)
Configured my VM with an IP of 10.0.1.100
- Ensured that the VM network device is enabled and attached to "Bridged Adapter", and that it is indeed the hardwired nic.
tcpdump -i enp0s25 -n on my host. When I ping out from my VM- that is, i ping my host's interface using
ping 10.0.1.1, I get the following on my host:
01:11:57.831609 ARP, Request who-has 10.0.1.1 tell 10.0.1.100, length 46 01:11:59.827699 ARP, Request who-has 10.0.1.1 tell 10.0.1.100, length 46 01:12:00.827591 ARP, Request who-has 10.0.1.1 tell 10.0.1.100, length 46
the VM says, "Destination host unreachable" (as you would expect when ARP does not reply).
BTW, I checked with Wireshark and I have verified that the incoming arp packet is not VLAN tagged. Just to be sure.