From owner-freebsd-questions Wed May 8 9:38:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by hub.freebsd.org (Postfix) with ESMTP id 1AC3E37B408 for ; Wed, 8 May 2002 09:37:44 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g48Gbab60686; Wed, 8 May 2002 11:37:37 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020508113735.011c7318@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 08 May 2002 11:37:35 -0500 To: Steve Fettig , "Chad Leigh -- Shire.Net LLC" , From: "Jack L. Stone" Subject: Re: setting up IP aliases in rc.conf In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 At 11:28 AM 5.8.2002 -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" >> >> >> Doing this only gets me the first address... Here is a full ifconfig >> after booting: >> >> frog1# ifconfig -a >> dc0: flags=8843 mtu 1500 >> inet 192.168.99.136 netmask 0xffffff00 broadcast 192.168.99.255 >> inet6 fe80::2c0:f0ff:fe4a:75c%dc0 prefixlen 64 scopeid 0x1 >> ether 00:c0:f0:4a:07:5c >> media: Ethernet autoselect (10baseT/UTP) >> status: active >> >> 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" > ^^^ >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. It may be >stopping at alias1 and not going further because of this (*if* this is a >true copy of what you have in your rc.conf file). Anyone with ideas as to >why more aliases than one might not be working, would be much appreciated >help on my end. > >Steve > .... No, the netmask of 255.255.255.255 IS correct -- not the "0". But, you are right that he alias # should start with alias0 instead of alias1..... .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message