From owner-freebsd-questions@FreeBSD.ORG Sun Dec 27 10:42:46 2009 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 6FDAE1065670 for ; Sun, 27 Dec 2009 10:42:46 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id B71C68FC13 for ; Sun, 27 Dec 2009 10:42:45 +0000 (UTC) Received: (qmail invoked by alias); 27 Dec 2009 10:42:43 -0000 Received: from adsl-238.79.107.9.tellas.gr (EHLO [192.168.73.90]) [79.107.9.238] by mail.gmx.com (mp-eu003) with SMTP; 27 Dec 2009 11:42:43 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1/YhspEnvbYRiZwXGU9vFcCDmCXDoI2o0oU+zvWa8 G0BGlzDzC6ifKW Message-ID: <4B373A0F.1050005@gmx.com> Date: Sun, 27 Dec 2009 12:42:23 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Len Conrad References: <200912262310826.SM01748@W500.Go2France.com> In-Reply-To: <200912262310826.SM01748@W500.Go2France.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5600000000000001 Cc: freebsd-questions@freebsd.org Subject: Re: which IP+gateway for Freebsd guest VM in VMware workstation 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: Sun, 27 Dec 2009 10:42:46 -0000 On 12/27/2009 12:10 AM, Len Conrad wrote: > > VMWare has lots of info how to set up the (Windows XP) VMWare Workstation networking side, but not much on setting up networking in the guest OS. > > I've tried NAT and bridging, no DHCP, and can't ping anything except the localhost IPs. > > XP ipconfig shows the fixed IP, plus 2 192.168.c.d IPs from VMnet1 and VMnet8. > > I'm sure this is really simple, but my experimentation has come up with zilch. Take a look here: http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html The guest OS will have an em0 interface which is connected to a host interface VMnet1, VMnet8 or similar. Actually the guest's networking configuration is simpler than the host's one. You should configure the em interface with an appropriate IP address: 1) Bridging: WinXP fixed IP and FreeBSD fixed IP for example, WinXP 192.168.10.100 and FreeBSD 192.168.10.101 2) host to host: WinXP 192.168.c.d and FreeBSD 192.168.c.x for example, WinXP 192.168.20.100 and FreeBSD 192.168.20.101 3) NAT: WinXP 192.168.e.d and FreeBSD 192.168.e.x for example, WinXP 192.168.30.100 and FreeBSD 192.168.30.101 Keep in mind that using DHCP is much more easy as you don't have to search for the appropriate address yourself, the VMware's DHCP server will offer it. Using DHCP from the FreeBSD side is as easy as typing "dhclient em0". HTH, Nikos