From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 07:57:32 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 BFF2216A40F for ; Tue, 16 Jan 2007 07:57:32 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id 6520E13C4A6 for ; Tue, 16 Jan 2007 07:57:32 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1915272wxc for ; Mon, 15 Jan 2007 23:57:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=YNb1WA4x2IHiI/vqTMyq1U+S7QhANqb7yGaRxymFlTz7NvI+UTEq8gHAZqxCTNS3FqeobtK2vUcIDaPQh7qphWEmSih6i2spvdQgS/Q9VSn7b7vFUitQr4VE7VtqCkJMa4Vx0G+VQSGZ5SILvOXeHAs0+u7iph7u7Cvy4H8pbXk= Received: by 10.70.87.11 with SMTP id k11mr9790530wxb.1168934251732; Mon, 15 Jan 2007 23:57:31 -0800 (PST) Received: by 10.70.12.14 with HTTP; Mon, 15 Jan 2007 23:57:31 -0800 (PST) Message-ID: <6f4f57f60701152357v59daf746xb62f66c8bf31ac51@mail.gmail.com> Date: Tue, 16 Jan 2007 09:57:31 +0200 From: "George Vanev" To: "linux quest" In-Reply-To: <218971.7584.qm@web59210.mail.re1.yahoo.com> MIME-Version: 1.0 References: <218971.7584.qm@web59210.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: How about a Start-Up Script that execute every 30 minutes for resolv.conf??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: George.Vanev@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 07:57:32 -0000 If you really want to copy resolv.conf from /root to /etc every 30 min you don't need a startup script. Just add the following line in /etc/crontab: */30 * * * * root cp /root/resolv.conf /etc/resolv.conf I don't know what exactly are you trying to do, but this is not quite a good decision. On 1/16/07, 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" > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler@chapman.edu > Today's Excuse: emissions from GSM-phones > > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail beta. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- George Vanev