From owner-freebsd-questions@FreeBSD.ORG Sat May 20 16:09:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92C0E16A425 for ; Sat, 20 May 2006 16:09:00 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11D6743D55 for ; Sat, 20 May 2006 16:09:00 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.6/8.13.6) with ESMTP id k4KG8kGq054061; Sat, 20 May 2006 09:08:46 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.6/8.13.6/Submit) id k4KG8gj0054060; Sat, 20 May 2006 09:08:42 -0700 (PDT) (envelope-from sgk) Date: Sat, 20 May 2006 09:08:42 -0700 From: Steve Kargl To: Derek Ragona Message-ID: <20060520160842.GA53996@troutmask.apl.washington.edu> References: <20060519224819.GA48412@troutmask.apl.washington.edu> <6.0.0.22.2.20060519175424.02689218@mail.computinginnovations.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.0.0.22.2.20060519175424.02689218@mail.computinginnovations.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: Setting up NIS questions? 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: Sat, 20 May 2006 16:09:01 -0000 On Fri, May 19, 2006 at 05:55:22PM -0500, Derek Ragona wrote: > At 05:48 PM 5/19/2006, Steve Kargl wrote: >>I have 2 NICS in the master node of a small cluster. >>bge0 is connected to the outside world with a FQDN >>and registered DNS IP address. bge1 is connected to >>a 192.168.0.x internal network. I'm trying to configure >>NIS for the internal network, but ypinit is grabbing the >>FQDN. I've read the Handbook and ypinit manual page >>without too much enlightment. :( >> >>What I'm after is >> >>192.168.0.10 NIS master server >>192.168.0.11 NIS slave server >>192.168.0.[12-15] NIS clients >> >>Anyone have a pointer to a method to achieve my goals. >> >> > If memory serves YP will grab the first interface. If you switch the > stacks/IPs on the interfaces I think you will get what you want. > I can't even get NIS set up with ypinit. It unconditionally uses /bin/hostname, which will grab the FQDN of the system. You have given me an idea. I can change rc.conf to set hostname to the name I've given 192.168.0.10, put that on bge0, put the IP address associated with the FQDN on bge1, and reboot. This might permit NIS to come up. Though this seems like a hack, because when someone connects to the seem via the FQDN, /bin/hostname will give the wrong answer. -- Steve