From owner-freebsd-isp Fri Jun 28 8: 9:18 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BD0037B405 for ; Fri, 28 Jun 2002 08:09:11 -0700 (PDT) Received: from stella.pyramus.com (stella.pyramus.com [206.129.206.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BA5C43E0F for ; Fri, 28 Jun 2002 08:09:10 -0700 (PDT) (envelope-from blake@pyramus.com) Received: from pyramus.com (dark-star.pyramus.com [206.129.206.6]) by stella.pyramus.com (8.11.6/8.9.3) with ESMTP id g5SFJpP72694; Fri, 28 Jun 2002 08:19:51 -0700 (PDT) (envelope-from blake@pyramus.com) Message-ID: <3D1C7C5C.8050507@pyramus.com> Date: Fri, 28 Jun 2002 08:10:20 -0700 From: Blake Swensen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Paul Khavkine Cc: freebsd-isp@FreeBSD.ORG Subject: Re: NIS Question References: <3D1C752D.6462BC88@colba.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Do the different NICs have different host names Although I have never done this on FreeBSD, I have accomplished this same thing on solaris. Please NOTE: I am only babbling theory as I have never done this on FreeBSD. The trick is making sure that the different nics are on truely different networks and have different hostnames. example hosts: 192.168.1.1 firstnic.mydomain.com 192.168.2.1 secondnic.mydomain.com /var/yp/ypservers on server machine: firstnic.mydomain.com secondnic.mydomain.com Your server must have a server to bind to, even if it is itself so pick one in /etc/rc.conf on the server: nisdomainname="mydomain.com" nis_server_enable="YES" nis_yppasswdd_enable="YES" nis_yppasswdd_flags="-t /var/yp/master.passwd -v" nis_client_enable="YES" nis_client_flags="-S mydomain.com,firstnic.mydomain.com" Then for clients you simply bind them to the appropriate NIC using the ypbind in /etc/rc.conf like: nisdomainname="mydomain.com" nis_client_enable="YES" nis_client_flags="-S mydomain.com,firstnic.mydomain.com" # OR Depending on the network of the client #nis_client_flags="-S mydomain.com,secondnic.mydomain.com" Hope this helps. Peace, Blake Paul Khavkine wrote: > Hi folks. > > Anyone using NIS on their FreeBSD boxen ? > I seem to be having problem binding to the server that has 2 NIC's and 2 > IP's on different subnets. > Anyone done tha kinda thing before ? > > Thanx > Paul > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message