From owner-freebsd-questions@FreeBSD.ORG Mon Aug 9 00:13: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 21BE81065677 for ; Mon, 9 Aug 2010 00:13:03 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 976278FC22 for ; Mon, 9 Aug 2010 00:13:02 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OiFz8-0008G2-IP for freebsd-questions@freebsd.org; Mon, 09 Aug 2010 02:12:58 +0200 Received: from pool-173-79-97-89.washdc.fios.verizon.net ([173.79.97.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Aug 2010 02:12:58 +0200 Received: from nightrecon by pool-173-79-97-89.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Aug 2010 02:12:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sun, 08 Aug 2010 20:14:58 -0400 Lines: 45 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-97-89.washdc.fios.verizon.net Subject: Re: helping 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: Mon, 09 Aug 2010 00:13:03 -0000 Kamil Nowacki wrote: > installed FreeBSD on VirtualPC but I have a problem with configuring > Internet dhpc normally gets the ip address and the address of the router > but when I introduce portsnap fetch HQ to download files I do not want to > download by failed and when I go back to the configuration of the Internet > in sysinstall is a ip address 255.255.255.0 and disappears and it is still > several times reinstalled FreeBSD > [snip] I do not know anything about VirtualPC, but I have used VirtualBox for some time and if the two are similar enough what works with VBox may also apply, with minor variations. The nominal default install of VirtualBox provides a virtual NAT and DHCP services to the guest OS. The virtual network card that it is simulating needs to be known, so the correct network card driver can be selected. In VirtualBox the default is AMD PCNet FAST III, but one may also select a variant of Intel PRo/1000 as well. This is the NIC that the guest OS will be using. Since the driver (em) is included already in the default FreeBSD kernel a good choice would be the Intel PRO/1000 MT which is simulating an 82540. In any event, you will need to discover the virtual network card being presented to the guest OS. The command dmesg may help. An example based on the above Intel adapter would look like this: In your /etc/rc.conf file place the following: ifconfig_em0="DHCP" That is all you need to do. Replace the "em" part with the driver that corresponds to the driver required for whichever network interface VirtualPC is presenting to the guest OS. For example, a very common Realtek 10/100 might look like: ifconfig_rl0="DHCP" - rl is the name of the driver needed for the Realtek 8139-based family of adapters. When you boot the guest, it should initialize the adapter via DHCP. What I do not know is if VirtualPC is providing these NAT and DHCP services to the guest OS in a manner similar to VirtualBox. If it does this info will work. -Mike