From owner-freebsd-questions Mon Aug 26 0:32:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04F2E37B400 for ; Mon, 26 Aug 2002 00:32:38 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A02143E65 for ; Mon, 26 Aug 2002 00:32:37 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.5/8.12.5) with ESMTP id g7Q7WRve009062; Mon, 26 Aug 2002 19:32:27 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.5/8.12.5/Submit) id g7Q7WHXq009057; Mon, 26 Aug 2002 19:32:17 +1200 (NZST) Date: Mon, 26 Aug 2002 19:32:17 +1200 From: Jonathan Chen To: budsz Cc: FBSDQ Subject: Re: How to configure multiple IPs on FreeBSD Message-ID: <20020826073216.GB8948@grimoire.chen.org.nz> References: <3D67FEA3.81CA0D0B@audiblefaith.com> <20020825113425.GB3075@happy-idiot-talk.infracaninophi> <20020825115333.GB12644@kumprang.kumprang.or.id> <20020825142500.36d479ee.freebsd@secspace.de> <20020826061406.GB1767@kumprang.kumprang.or.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020826061406.GB1767@kumprang.kumprang.or.id> User-Agent: Mutt/1.4i 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 Mon, Aug 26, 2002 at 01:14:06PM +0700, budsz wrote: > On Sun, Aug 25, 2002 at 02:25:00PM +0200, Volker Kindermann wrote: > >> 0xffffffff = 255.255.255.255 in decimal right..?, I tried with netmask > >> 255.255.255.240 (I get 16 IP address from ISP). the question: it's > >> possible make aliasing IP without netmask 255.255.255.255. for > >> example: > >> > >> ifconfig_ed0_alias0="inet 202.143.103.230 netmask 255.255.255.240" > >> ifconfig_ed0_alias1="inet 202.143.103.231 netmask 255.255.255.240" > >> ifconfig_ed0_alias2="inet 202.143.103.232 netmask 255.255.255.240" > > I've already read that URL, basicly it's fine if I configure *only* > one aliasing for example: > > ifconfig_ed0_alias0="inet 202.143.103.230 netmask 255.255.255.240" > > The problem is: > > ifconfig_ed0_alias0="inet 202.143.103.230 netmask 255.255.255.240" > ifconfig_ed0_alias1="inet 202.143.103.231 netmask 255.255.255.240" > > The second line aliasing doesn't active. so only enough one aliasing? The correct answer is: ALWAYS use netmask of 255.255.255 for aliases. If you use anything else, it won't work. -- Jonathan Chen ---------------------------------------------------------------------- "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." -- RFC 1925 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message