[OT] virtual box and FreeBSD as guest: no network

Luca Ferrari fluca1978 at infinito.it
Fri Mar 21 12:58:09 UTC 2014


There is something I'm missing from my virtual box setup but I cannot
understand what.
I've a linux box running a virtual box 3.8 on top of which FreeBSD is
running. The networking is NAT, FreeBSD is running in dhcp mode.
The 192.168.200.1 is the vbox interface, 192.168.200.101 is the
address assigned by the dhcp server.
The linux box has ip forwarding enabled.
However, the FreeBSD machine is unable to get any data going outside
(please note: the linux box network is on another private address
class).
Any idea of what silly detail I'm missing here?

Thanks,
Luca

root at m:/root # ifconfig em1
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 08:00:27:97:19:9d
        inet 192.168.200.222 netmask 0xffffff00 broadcast 192.168.200.255
        inet6 fe80::a00:27ff:fe97:199d%em1 prefixlen 64 scopeid 0x3
        inet 192.168.200.101 netmask 0xffffff00 broadcast 192.168.200.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
root at m:/root # ping -c 4 192.168.200.1
PING 192.168.200.1 (192.168.200.1): 56 data bytes
64 bytes from 192.168.200.1: icmp_seq=0 ttl=64 time=1.920 ms
64 bytes from 192.168.200.1: icmp_seq=1 ttl=64 time=0.682 ms
64 bytes from 192.168.200.1: icmp_seq=2 ttl=64 time=0.458 ms
64 bytes from 192.168.200.1: icmp_seq=3 ttl=64 time=0.768 ms

--- 192.168.200.1 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.458/0.957/1.920/0.567 ms
root at m:/root # netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.200.1      UGS         0        6    em1
127.0.0.1          link#4             UH          0        0    lo0
192.168.200.0/24   link#3             U           0     2351    em1
192.168.200.101    link#3             UHS         0        0    lo0


More information about the freebsd-questions mailing list