From owner-freebsd-questions@FreeBSD.ORG Fri Jun 4 01:57:41 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 B2F1016A4CE for ; Fri, 4 Jun 2004 01:57:41 -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 E4AAC43D48 for ; Fri, 4 Jun 2004 01:57:40 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i548uCwS025792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Jun 2004 09:56:12 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i548uCic025791; Fri, 4 Jun 2004 09:56:12 +0100 (BST) (envelope-from matthew) Date: Fri, 4 Jun 2004 09:56:12 +0100 From: Matthew Seaman To: Artem Koutchine Message-ID: <20040604085612.GC85236@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Artem Koutchine , David Fuchs , freebsd-questions@freebsd.org References: <004401c4496f$08f83be0$7a01a8c0@nobodyfuckhead> <01fa01c44973$efe697f0$0c00a8c0@artem> <40BF6596.8090705@davidfuchs.ca> <009501c44a06$9d58acb0$0c00a8c0@artem> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="69pVuxX8awAiJ7fD" Content-Disposition: inline In-Reply-To: <009501c44a06$9d58acb0$0c00a8c0@artem> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040525, clamav-milter version 0.71 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: David Fuchs cc: freebsd-questions@freebsd.org Subject: Re: how to attach class C net to an interface? 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: Fri, 04 Jun 2004 08:57:41 -0000 --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 04, 2004 at 11:36:10AM +0400, Artem Koutchine wrote: > > for (( foo =3D 1; foo < 255; foo++ )); \ > > do ifconfig fxp1 alias 172.16.100.$foo netmask 0xffffffff; \ > > done > Thank you for the scrip. I will then asign a single main ip to the interf= ace > in rc.conf and then run this script from /usr/local/etc/rc.d because i th= ink > rc.local is merged after each cvp/buildworld/installworld/mergmaster, > so /usr/local/etc/rc.d is a safer place to to keep it. Right or not? Probably the best place to put this is in a file named 'start_if.fxp1' assuming fxp1 is the interface you want all this to happen to. That will be read into /etc/rc.network and executed by this bit of code: for ifn in ${network_interfaces}; do if [ -r /etc/start_if.${ifn} ]; then . /etc/start_if.${ifn} eval showstat_$ifn=3D1 fi This effectively lets you introduce custom bits of shell script into the standard /etc/rc.network script without having to worry about keeping that script patched and in synch across system updates. There isn't a similar 'stop_if.fxp1' facility -- just disabling the interface usually does the trick. =20 > The other question, will assigning 200+ ip addresses degrade tcp/ip > perfomance noticeably?=20 Hard to say. Probably not a huge amount, but it will depend on your hardware amongst other things. The only way to know for sure is to run some tests yourself. =20 > How to i spell noticably or noticaebly? :) noticeably 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 --69pVuxX8awAiJ7fD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAwDksiD657aJF7eIRAktaAJ9GME3Pvhp7/SPqeITAV4U3RWinRACeIXI0 CGKHWpM8hXkF7WsOSQdt94c= =LDjN -----END PGP SIGNATURE----- --69pVuxX8awAiJ7fD--