From owner-freebsd-questions Mon Aug 26 1:29:48 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 C4FBF37B400 for ; Mon, 26 Aug 2002 01:29:44 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30D5743E75 for ; Mon, 26 Aug 2002 01:27:36 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7Q8Qu2b003231; Mon, 26 Aug 2002 09:26:56 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7Q8Qpq1003230; Mon, 26 Aug 2002 09:26:51 +0100 (BST) Date: Mon, 26 Aug 2002 09:26:51 +0100 From: Matthew Seaman To: Roger Harrell Cc: freebsd-questions@freebsd.org Subject: Re: How to configure multiple IPs on FreeBSD Message-ID: <20020826082651.GB3063@happy-idiot-talk.infracaninophi> References: <3D67FEA3.81CA0D0B@audiblefaith.com> <20020825113425.GB3075@happy-idiot-talk.infracaninophi> <3D695E8A.3BF8EAD@audiblefaith.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D695E8A.3BF8EAD@audiblefaith.com> User-Agent: Mutt/1.5.1i 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 03:47:38PM -0700, Roger Harrell wrote: > Just for my knowledge what is the 0xffffffff after netmask? Why use that > vs 255.255.255.0 which is what is in the current line for the main IP in > rc.conf? The two formats are equivalent and either is accepted by FreeBSD's ifconfig(8). FreeBSD seems to default to using the dotted quad style whereas other Unix like Solaris prefers the hexadecimal style. You can also give the network details in the address/mask style, eg. 127.0.0.1/8 Thus 0xffffffff is equivalent to 255.255.255.255 or /32 0xfffffff0 255.255.255.240 or /28 0xffffff00 255.255.255.0 or /24 It's not just the netmask that can be expressed in several different formats. An IP4 address is nothing more than a 32 bit unsigned integer, and can be displayed in several ways. Eg. all of these are equivalent: http://www.bbc.co.uk/ http://212.58.224.56/ http://0xd43ae038/ http://3560628280/ Mind you, it seems that recent versions of Mozilla won't recognise the last two, but something like lynx or w3m loads them up right away. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message