Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 07:44:59 -0400 (EDT)
From:      Howard Leadmon <howardl@account.abs.net>
To:        James Housley <jim@thehousleys.net>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Re: NIS with multiple subnets/vhosts, any ideas??
Message-ID:  <200005311144.HAA63868@account.abs.net>
In-Reply-To: <3934F9AA.10AB77C6@thehousleys.net> from James Housley at "May 31, 2000 07:38:18 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Howard Leadmon wrote:
> > 
> >    Hello All,
> > 
> >  I setup a couple machines using NIS, and just ran into the following
> > problem I am not quite sure how to work around.
> > 
> > Here is my config:
> > 
> > MACHINE A:
> > 
> > ifconfig_de0="inet 207.114.198.11  netmask 255.255.255.0"
> > defaultrouter="207.114.198.250"
> > # -- Add Vhosts -- #
> > ifconfig_de0_alias1="inet 206.88.228.13 netmask 0xffffffff"
> > ifconfig_de0_alias1="inet 206.88.228.14 netmask 0xffffffff"
> > ifconfig_de0_alias1="inet 206.88.228.15 netmask 0xffffffff"
> > ifconfig_de0_alias2="inet 199.29.143.73 netmask 0xffffffff"
> > 
> Is that a typo ..alias1, ..alias1, ..alias1, ..alias2 ?
> 
> It should read:
> ifconfig_de0_alias1="inet 206.88.228.13 netmask 0xffffffff"
> ifconfig_de0_alias2="inet 206.88.228.14 netmask 0xffffffff"
> ifconfig_de0_alias3="inet 206.88.228.15 netmask 0xffffffff"
> ifconfig_de0_alias4="inet 199.29.143.73 netmask 0xffffffff"
> 
> because the script is basically 
> for $x=0 to $n
>   use alias$x
> next $x
> 
> Only the first alias1 and then alias2 are being used, as I read the
> script.
> 
> Jim


DOH! Your right, and that is a typo in the example I made, my actual
config is right.  Actually I have made that mistake in real life before,
and what happens is you get the IP of the last one mounted, and the 
others all disappear.

Basically I am trying to figure out how to make NIS work on a host where
I have multiple subnets mounted for Vhosting, but in reality I only want
the NIS functions/querys to run across the primary interface..


---
Howard Leadmon - howardl@abs.net - http://www.abs.net
ABSnet Internet Services - Phone: 410-361-8160 - FAX: 410-361-8162



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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