Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't ping to virtualbox instance [closed]

I'm trying to set up the vagrant lucid32 box

The instance network setting is NAT

the virtual box instance can ping to the Mac, but can't vice versa

here is my Mac config

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    options=3<RXCSUM,TXCSUM>
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
    inet 127.0.0.1 netmask 0xff000000 
    inet6 ::1 prefixlen 128 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 10:9a:dd:a9:43:44 
    inet6 fe80::129a:ddff:fea9:4344%en0 prefixlen 64 scopeid 0x4 
    inet 10.32.24.78 netmask 0xffff0000 broadcast 10.32.255.255
    media: autoselect
    status: active
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
    ether 02:9a:dd:a9:43:44 
    media: autoselect
    status: inactive
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
    inet6 fe80::69ca:da35:534a:9504%utun0 prefixlen 64 scopeid 0x6 
    inet6 fd78:f3ab:2fb2:b8b8:69ca:da35:534a:9504 prefixlen 64 

And here is the virtual box network config:

enter image description here

like image 603
mko Avatar asked Nov 24 '12 09:11

mko


People also ask

How do you fix the VM session was closed before any attempt to power it on?

The usually method to fix the "VM session session was closed before any attempt to power it on", is to discard the saved state of the Virtual machine. To do that: 1. Right click on the Virtual Machine and select Discard Saved State.

Why cant my virtual machines ping each other?

If both the machines are in the same Virtual Network, then just turn off Windows Firewall and they will be able to ping each other. Other way is to just allow all incoming ICMP traffic in Windows Firewall with Advanced Settings. (ping request or create an exception by just enabling ping (ICMP).


1 Answers

It is quite obvious that when you are using NAT it will be impossible to ping host after NAT. It is how the NAT works... even if you will have real not virtual host the bechaviour will be the same.

like image 170
codewarrior Avatar answered Sep 30 '22 00:09

codewarrior