From owner-freebsd-questions@FreeBSD.ORG Thu Dec 9 18:49:03 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 614E61065674 for ; Thu, 9 Dec 2010 18:49:03 +0000 (UTC) (envelope-from weihang@vt.edu) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.freebsd.org (Postfix) with ESMTP id 0D35F8FC08 for ; Thu, 9 Dec 2010 18:49:02 +0000 (UTC) Received: from zidane.cc.vt.edu (zidane.cc.vt.edu [198.82.163.227]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id oB9ImV4w010939; Thu, 9 Dec 2010 13:48:31 -0500 Received: from auth3.smtp.vt.edu (EHLO auth3.smtp.vt.edu) ([198.82.161.152]) by zidane.cc.vt.edu (MOS 4.2.2-FCS FastPath queued) with ESMTP id MVJ77683; Thu, 09 Dec 2010 13:48:31 -0500 (EST) Received: from [172.16.1.105] (green.cs.vt.edu [128.173.236.72]) (authenticated bits=0) by auth3.smtp.vt.edu (8.13.8/8.13.8) with ESMTP id oB9ImUtO009504 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 9 Dec 2010 13:48:30 -0500 Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Weihang Wang In-Reply-To: Date: Thu, 9 Dec 2010 13:48:30 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4CF87854.1030103@mgwigglesworth.net> <1291368354.2905.19.camel@SHR-42-002> <9B3337B8-3F20-4369-A637-207DEE43A143@vt.edu> To: Adam Vande More X-Mailer: Apple Mail (2.1081) X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu weihang@vt.edu 2 pass X-Mirapoint-IP-Reputation: reputation=neutral-1, source=Fixed, refid=n/a, actions=MAILHURDLE SPF TAG X-Junkmail-Status: score=10/50, host=zidane.cc.vt.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020207.4D01247F.0299,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false Cc: Timm Wimmers , freebsd-questions@freebsd.org Subject: Re: FreeBSD on Virtualbox: No network access X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 18:49:03 -0000 On Dec 8, 2010, at 11:47 PM, Adam Vande More wrote: > On Wed, Dec 8, 2010 at 10:34 PM, Weihang Wang wrote: >=20 >> Hi, >>=20 >> Could someone tell me how to enable Bridge mode? >>=20 >=20 > Seems like you already know how since you do it below. >=20 >=20 >> I just change the network settings of my virtual machine, change it = to >> bridged mode. I also select the eth0, which is the physical interface = of my >> system. >> Then in my virtual machine, I add one line: >> ifconfig_em0=3D"DHCP" in /etc/rc.conf file. >> I have changed each of the five virtual interfaces Intel and ..., but = I >> could not get network access. >>=20 >=20 > ifconfig_em0=3D"DHCP" would only work for the intel adapters, not amd = ones. >=20 >=20 >> If I use NAT mode, one of these five interfaces works fine. But now I = do >> need the Bridged mode because one of my machine would be a server in = my >> experiment. >>=20 >=20 > You do have a DHCP server correct? What happens when you do "dhclient > em0"? Does bridged networking work with a different guest OS as maybe = it's > some problem with your host. >=20 > --=20 > Adam Vande More >=20 Hi,=20 I do not configure a DHCP server. When my FreeBSD 6.0 is booting, there = are several DHCPDISCOVERY messages, finally it shows no DHCPOFFER = received. Do I need to configure a DHCP server myself? If I need a DHCP = server? Where it should be? Now I only have one test machine, Ubuntu as = the host OS, two VMs (both are FreeBSD 6.0) on this machine. I want this = two VMs communicate with each other.=20 Just go back to the DHCP stuff, when I use NAT mode, the guest OS = FreeBSD 6.0 could get DHCPOFFER successfully. Who is the DHCP server = then? When running dhclien em0, the results are similar to the DHCPDISCOVER = results during booting. No DHCPOFFERS received.=20 Thanks, W.W.