From owner-freebsd-questions Wed May 8 9:36:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hobbiton.shire.net (frogmorton.shire.net [204.228.145.136]) by hub.freebsd.org (Postfix) with ESMTP id 50B9637B406 for ; Wed, 8 May 2002 09:36:18 -0700 (PDT) Received: from [68.64.98.90] (helo=lime.objectwerks.com) by hobbiton.shire.net with asmtp (Exim 3.22 #6) id 175UQj-000Cve-00; Wed, 08 May 2002 10:36:41 -0600 Date: Wed, 8 May 2002 12:36:15 -0400 Subject: Re: setting up IP aliases in rc.conf Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v481) Cc: Steve Fettig , freebsd-questions@freebsd.org To: Ceri Davies From: Chad Leigh -- Shire.Net LLC In-Reply-To: <20020508163422.GA13263@submonkey.net> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.481) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday, May 8, 2002, at 12:34 , Ceri Davies wrote: > On Wed, May 08, 2002 at 11:28:17AM -0500, Steve Fettig wrote: >> On 5/8/2002 11:08, "Chad Leigh -- Shire.Net LLC" >> wrote: >> >>> According to the handbook I should be able to do: >>> >>> ifconfig_dc0="inet 192.168.99.136 netmask 255.255.255.0" >>> ifconfig_dc0_alias1="inet 192.168.99.137 netmask 255.255.255.255" >>> ifconfig_dc0_alias2="inet 204.228.145.250 netmask 255.255.255.240" > > Ok, the handbook is wrong - I'll fix it ASAP. Sorry, my bad. It says alias0 in the handbook. It should say however that you m ust start at 0a nd cannot skip numbers. thanks Chad > >>> What am I doing wrong? How is the correct way to set these up? This >> >> >> Chad, >> I was never able to go beyond one alias myself following the same >> directions >> you have... But, I do know that I couldn't get alias1 to work, so I >> used >> the command: >> Ifconfig_xl0_alias0="inet 192.168.14.5 netmask 255.255.255.0" >> ^^^ > > Yup, if a number is skipped, then no following aliases will be > configured. > Check the manpage for rc.conf for more detail. > >> I think you also have a mistake in your netmask on alias1 - no subnet >> mask >> should be 255.255.255.255 if you are configuring an IP on a nic - it >> should >> be 255.255.255.0 if you are on the same subnet as the first ip. > > No, that's correct - if the alias is on the same subnet as an already > configured address, then the subnet mask should be 255.255.255.255. > >> Anyone with ideas as to >> why more aliases than one might not be working, would be much >> appreciated >> help on my end. > > It's because they're not supposed to. Read the rc.conf manpage, > specifically > the "network_interfaces" bit. > > Ceri > > -- > get the cool shoe shine > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message