From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 10:11:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05E5716A519 for ; Tue, 16 Jan 2007 10:11:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id D790813C442 for ; Tue, 16 Jan 2007 10:11:55 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0GABtwA008016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Jan 2007 02:11:55 -0800 X-Auth-Received: from [192.168.0.102] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0GABsSa004963 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 16 Jan 2007 02:11:55 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <45AC750D.1030405@bobmc.net> References: <563999.58586.qm@web59208.mail.re1.yahoo.com> <45AC750D.1030405@bobmc.net> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Tue, 16 Jan 2007 02:11:53 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.16.15932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: DNS Resolver Problem 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: Tue, 16 Jan 2007 10:11:56 -0000 On Jan 15, 2007, at 10:47 PM, Bob McIsaac wrote: > linux quest wrote: >> Dear Jay & The FreeBSD Communities, >> >> Thanks for putting your time and patience to help me out. Anyway, >> I tried it out, both changing the rc.conf and the dhclient.conf >> (one at a time). After that (for both of the ways), I did manage >> to stop the resolv.conf from being overwritten after the PC >> reboot. However, when I ping 192.168.52.1 or 192.168.52.2, the >> error msg says that there is no route to both of the IP. Even >> after I add the default route by using command line ... I am still >> unable to ping google.com. >> >> Then, I undo everything by using VMWare... (including undo the >> DHCP configuration in rc.conf) so that I am able to ping >> google.com again. >> Since, I desperately needed to connect to the Internet at this >> point of time, I create a file called resolv.conf in /root ... I >> am thinking how can I create a script so that it can copy >> resolv.conf from /root to /etc/resolv.conf every 30 minutes at >> start up - This is because I don't wanna manually type in "cp / >> root/resolv.conf /etc/resolv.conf" every 30 minutes. >> >> Hope somebody can share with me the simple coding. Thanks :) >> >> Regards, >> Linux Quest >> >> Jay Chandler wrote: Please don't top-post. >> >> linux quest wrote: >> >>> Dear Jay, >>> >>> Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: >>> Win2003, Guest OS: FreeBSD). >>> >>> Any ideas how I can disable / ignore the routing from the VMnet8? >>> Below are the only VMWare NAT configuration that I have access >>> to. No DHCP enable / disable option. >>> >>> >>> Ethernet adapter VMware Network Adapter VMnet8: >>> >>> Connection-specific DNS Suffix . : >>> IP Address. . . . . . . . . . . . : 192.168.52.1 >>> Subnet Mask . . . . . . . . . . . : 255.255.255.0 >>> Default Gateway . . . . . . . . . : 192.168.52.2 >>> >>> >>> When I install FreeBSD, I remember I did select some option to >>> enable DHCP. Perhaps, I should disable the DHCP service in FreeBSD >>> (Guest OS) - if so, any idea how do I do it? >>> >>> Thanks :) >>> >>> Regards, >>> Linux Quest >>> >>> >>> >> Simple enough, then. >> Edit /etc/rc.conf, and remove the line relating to the dhcp >> client. Then add: >> defaultrouter="192.168.51.2" >> hostname="boxname!" >> ifconfig_em0="inet 192.168.52.WHATEVERYOUWANT netmask 255.255.255.0" >> >> > Hi: > > DHCP intends that everything works easily. However, if the DHCP > lease is unsatisfactory, you can > change it after doing man dhclient.conf. Can you post /var/db/ > dhclient.leases? Also, in one shell > type "tcpdump -v -c 20" and in another do ping or click a web > page. Finally, "netstat -r" > > regards, > -Bob- defaultrouter should match the gateway IP address for the virtual interface you're using in FreeBSD under vmware; defaultrouter is an alias for the default route use by the kernel for directing packets (this can be viewed by looking at netstat -nr and looking for the default route, or "route show default"--more verbose output). The subnet/IP should match something similar to what's provided with DHCP--just in static form (which /etc/rc.conf will provide). -Garrett