From owner-freebsd-net@FreeBSD.ORG Thu Mar 10 01:22:45 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AA9316A4CE for ; Thu, 10 Mar 2005 01:22:45 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6E0343D46 for ; Thu, 10 Mar 2005 01:22:44 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j2A1MhOv027488; Wed, 9 Mar 2005 17:22:43 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j2A1Mh6E027487; Wed, 9 Mar 2005 17:22:43 -0800 Date: Wed, 9 Mar 2005 17:22:43 -0800 From: Brooks Davis To: =?iso-8859-1?Q?Jos=E9_Mar=EDa_Gonz=E1lez?= Message-ID: <20050310012243.GA26861@odin.ac.hmc.edu> References: <20050310001825.GA320@cs.berkeley.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <20050310001825.GA320@cs.berkeley.edu> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-net@freebsd.org Subject: Re: Creating Multiple Discard Interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 01:22:45 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 09, 2005 at 04:18:25PM -0800, Jos=E9 Mar=EDa Gonz=E1lez wrote: > Hi,=20 >=20 > I'm trying to create several discard interfaces on 4.9-RELEASE, and I'm= =20 > having 2 problems. This is what I see (comments started by //): >=20 > # ifconfig -a > de0: ... > lo0: ... > // these are my original interfaces >=20 > # kldload if_disc >=20 > # ifconfig -a > de0: ... > lo0: ... > ds0: flags=3D8008 mtu 65532 > // surprisingly enough, just loading the if_disc kernel module creates=20 > // the ds0 interface for me. Well, I can live with that.=20 >=20 > # ifconfig ds0 create > ifconfig: SIOCIFCREATE: Invalid argument > # ifconfig disc0 create > ifconfig: SIOCIFCREATE: Invalid argument > // This makes sens, as the ds0 interface is already created >=20 > # ifconfig ds1 create > ifconfig: SIOCIFCREATE: Invalid argument > # ifconfig disc1 create > ifconfig: SIOCIFCREATE: Invalid argument > // 1st problem: How do I create ds1, ds2, etc.? >=20 >=20 > // Now I want to get rid of the if_disc module > # ifconfig ds0 down > # ifconfig ds0 destroy > ifconfig: SIOCIFDESTROY: Invalid argument > #ifconfig disc0 destroy=20 > ifconfig: interface disc0 does not exist > # kldunload -v -i 4 > Unloading if_disc.ko, id=3D4 > kldunload: can't unload file: Invalid argument > // 2nd problem: How do I get rid of the if_disc module? The discard module is not unloadable or clonable before 5.0. You need to upgrade to 5.3+ or statically compile in the discard device with an appropriate count. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCL6FjXY6L6fI4GtQRAi5lAKCazW5mF9+vCiKx3UjUkQ4Pzg10YQCgxeQC 7KmhFZh3/slnrZntDFVdShk= =bI+w -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--