Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2002 08:10:20 -0700
From:      Blake Swensen <blake@pyramus.com>
To:        Paul Khavkine <paul@colba.net>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: NIS Question
Message-ID:  <3D1C7C5C.8050507@pyramus.com>
References:  <3D1C752D.6462BC88@colba.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D1C7C5C.8050507>