From owner-freebsd-questions Wed May 31 4:45: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from account.abs.net (account.abs.net [207.114.5.70]) by hub.freebsd.org (Postfix) with ESMTP id 9C69337B581; Wed, 31 May 2000 04:45:00 -0700 (PDT) (envelope-from howardl@account.abs.net) Received: (from howardl@localhost) by account.abs.net (8.9.3/8.9.3+RBL+DUL+RSS+ORBS) id HAA63868; Wed, 31 May 2000 07:44:59 -0400 (EDT) (envelope-from howardl) From: Howard Leadmon Message-Id: <200005311144.HAA63868@account.abs.net> Subject: Re: NIS with multiple subnets/vhosts, any ideas?? In-Reply-To: <3934F9AA.10AB77C6@thehousleys.net> from James Housley at "May 31, 2000 07:38:18 am" To: James Housley Date: Wed, 31 May 2000 07:44:59 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL72 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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