From owner-freebsd-questions@FreeBSD.ORG Fri Mar 21 12:58:09 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D1E7C42 for ; Fri, 21 Mar 2014 12:58:09 +0000 (UTC) Received: from mail-yh0-x22f.google.com (mail-yh0-x22f.google.com [IPv6:2607:f8b0:4002:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 547696B7 for ; Fri, 21 Mar 2014 12:58:09 +0000 (UTC) Received: by mail-yh0-f47.google.com with SMTP id 29so2265712yhl.20 for ; Fri, 21 Mar 2014 05:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=1ISr+lyDfo8B8XENmop4es+CC5AFI/X2KFkK5nut/pE=; b=nGqOOQtsANlT5dovfZ2WDyszfSxLLYl9qtMGUDxuk0emLg12fse4KIQXkSn1xk+YR0 0UOis51aPHlztNdIzQMo0Vf7GPmDrrOWk3Bla2MNwxfFbwm+C1sLy8ZGa7EtWZcCIo9/ 2t0vuVPh/Rl4+caJ+PVmlxpQIzlcTQszKRJkv0LvU7LAY4JV1cH3pRTDAcKP6n7ytCEb qo4p3wlCxKxMIyzaH+ByGdP5QTbr1lwnGohfMJKeBD3w/eFoYnzJZ7LFwhCUL//J+HsI V/ilCF28FVof2SORgW75OG/qlm7Dbkm7XnCo17k8scp8ZupZTjJKHYDJ2YWffZ8SOVNQ JiMw== MIME-Version: 1.0 X-Received: by 10.236.120.147 with SMTP id p19mr41709266yhh.6.1395406688604; Fri, 21 Mar 2014 05:58:08 -0700 (PDT) Sender: fluca1978@gmail.com Received: by 10.170.166.4 with HTTP; Fri, 21 Mar 2014 05:58:08 -0700 (PDT) Date: Fri, 21 Mar 2014 13:58:08 +0100 X-Google-Sender-Auth: uiqvvGTFV8VKnWGljpsWJ6J1DuU Message-ID: Subject: [OT] virtual box and FreeBSD as guest: no network From: Luca Ferrari To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2014 12:58:09 -0000 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@m:/root # ifconfig em1 em1: flags=8943 metric 0 mtu 1500 options=9b 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 media: Ethernet autoselect (1000baseT ) status: active root@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@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