From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 09:41:17 2004 Return-Path: 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 481DA16A4CE for ; Wed, 14 Jul 2004 09:41:17 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 039AE43D4C for ; Wed, 14 Jul 2004 09:41:16 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i6E9f5Tt017093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Jul 2004 10:41:05 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i6E9f4Ow017092; Wed, 14 Jul 2004 10:41:04 +0100 (BST) (envelope-from matthew) Date: Wed, 14 Jul 2004 10:41:04 +0100 From: Matthew Seaman To: Darren Pilgrim Message-ID: <20040714094104.GA71531@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Darren Pilgrim , 'freebsder' , freebsd-questions@freebsd.org References: <20040713200422.36735.qmail@web52502.mail.yahoo.com> <001001c46920$f347b790$152a15ac@spud> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <001001c46920$f347b790$152a15ac@spud> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.5.3 (smtp.infracaninophile.co.uk [0.0.0.0]); Wed, 14 Jul 2004 10:41:05 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org cc: 'freebsder' Subject: Re: Freebsd 5.1 <-> Win XP Networking problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 09:41:17 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 13, 2004 at 02:32:46PM -0700, Darren Pilgrim wrote: > > ifconfig_ed0=3D"inet 192.168.1.0/24 netmask 255.255.0.0" > > ifconfig_vr0=3D"inet 192.168.0.0/24 netmask 255.255.0.0" >=20 > 192.168.1.0/24 and 192.168.0.0/24 are blocks of addresses in CIDR notatio= n, > not the actual addresses to be fed to ifconfig. You need to pick address= es > within the netblock to use for myserver and all the other machines on your > network. Since myserver can reach the internet just fine, you should keep > the IP address for vr0 the same, just lengthen the netmask to allow the u= se > of 192.168.1.0/24 on the LAN. ifconfig(8) understands CIDR notation just fine, although it's not usual to configure an interface using the '.0' /network/ address. Look on it as a third alternate way of specifying the netmask, so that the following three examples are equivalent: ifconfig fxp0 inet 192.168.123.74/29 ifconfig fxp0 inet 192.168.123.74 netmask 0xfffffff8 ifconfig fxp0 inet 192.168.123.74 netmask 255.255.255.248 Those correspond to the slightly contrived example of the /29 network starting with network address 192.168.123.72 and running up to the broadcast address 192.168.123.79 Note: you can give a broadcast address on the ifconfig command line, but usually it's not necessary as a standard value will be calculated =66rom any ip number forming part of that network and from the netmask. However you can't in general use ip address + broadcast to do the converse, as there isn't necessarily a unique solution. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA9P+wiD657aJF7eIRArjmAJ9dhKNttAuTzlWXTQBKnymyiPtLAgCcDQUO wl+R3TPEo0NLSMFlDFwlm+w= =bZuS -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--