From owner-freebsd-questions Wed Jun 7 10:57:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id 4A1DB37B85C for ; Wed, 7 Jun 2000 10:57:12 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id OAA68159; Wed, 7 Jun 2000 14:06:48 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <393E8CCE.ADF58C50@wmptl.com> Date: Wed, 07 Jun 2000 13:56:30 -0400 From: Nathan Vidican Reply-To: webmaster@wmptl.com X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Alex Kwan Cc: questions@freebsd.org Subject: Re: Question about man ifconfig References: <000701bfd0a5$69e108c0$831e40ca@alexkwan> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alex Kwan wrote: > > Hi! > > I wanted to setup multi IP address on a ethernet interface, > and the man ifconfig said: > > "The following parameters may be set with ifconfig: > > add ............................ > > alias ............................ > If the address is on the same subnet as the first network > address > for this interface, a netmask of 0xffffffff has to be specified. > " > > Why do I can't set the netmask as the normal 255.255.255.0 (for C class) > and needed to set as 0xffffffff(255.255.255.255)? > > Thanks > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message you can; the following will work: ifconfig fxp0 inet 216.221.72.2 netmask 255.255.255.0 ifconfig fxp0 inet 192.168.1.1 netmask 255.255.255.0 alias or, as entered in /etc/rc.conf: ifconfig_fxp0="inet 216.221.72.2 netmask 255.255.255.0" ifconfig_fxp0_alias0="inet 192.168.1.1 netmask 255.255.255.0" -- Nathan Vidican webmaster@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message