From owner-freebsd-questions Sun Aug 25 4:53: 1 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 E7CB337B400 for ; Sun, 25 Aug 2002 04:52:51 -0700 (PDT) Received: from kumprang.or.id (kumprang.or.id [202.143.103.227]) by mx1.FreeBSD.org (Postfix) with SMTP id 7B5FA43E4A for ; Sun, 25 Aug 2002 04:52:47 -0700 (PDT) (envelope-from budsz@kumprang.or.id) Received: (qmail 17968 invoked by uid 1000); 25 Aug 2002 11:53:33 -0000 Date: Sun, 25 Aug 2002 18:53:33 +0700 From: budsz To: Matthew Seaman Cc: FBSDQ Subject: Re: How to configure multiple IPs on FreeBSD Message-ID: <20020825115333.GB12644@kumprang.kumprang.or.id> References: <3D67FEA3.81CA0D0B@audiblefaith.com> <20020825113425.GB3075@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020825113425.GB3075@happy-idiot-talk.infracaninophi> User-Agent: Mutt/1.4i X-Pubkey: "http://www.kumprang.or.id/~budsz/pubkey_FreeBSD.txt" X-Finger-Print: "A05A 268C 3CD4 ABBD D9EB 11E1 F64C 4B4E 6269 5304" X-System-Operation: FreeBSD 4.6-STABLE i386 X-Organization: "Internet Cafe and Game PC Kumprang" 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 Sun, Aug 25, 2002 at 12:34:25PM +0100, Matthew Seaman wrote: >To add an alias IP numbers to an already runnning system --- assuming >the alias IPs belong to the same network as the principal IP number of >the interface --- run these commands, substituting the correct IP >numbers for your setup: > > ifconfig fxp0 inet 12.34.56.78 netmask 0xffffffff alias > ifconfig fxp0 inet 12.34.56.79 netmask 0xffffffff alias > >To make the same configuration persist through reboots, modify >/etc/rc.conf to add lines: > > ifconfig_fxp0_alias0="inet 12.34.56.78 netmask 0xffffffff" > ifconfig_fxp0_alias1="inet 12.34.56.79 netmask 0xffffffff" 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" Or maybe each other different netmask? -- budsz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message