From owner-freebsd-net@FreeBSD.ORG Thu Mar 10 00:18:26 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 6DDA116A4CE for ; Thu, 10 Mar 2005 00:18:26 +0000 (GMT) Received: from apu.bmrc.berkeley.edu (apu.BMRC.Berkeley.EDU [169.229.12.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D5D943D31 for ; Thu, 10 Mar 2005 00:18:26 +0000 (GMT) (envelope-from chema@apu.bmrc.berkeley.edu) Received: from apu.bmrc.berkeley.edu (localhost [127.0.0.1]) j2A0IQmE000341; Wed, 9 Mar 2005 16:18:26 -0800 (PST) (envelope-from chema@apu.bmrc.berkeley.edu) Received: (from chema@localhost) by apu.bmrc.berkeley.edu (8.12.9p2/8.12.9/Submit) id j2A0IPXG000340; Wed, 9 Mar 2005 16:18:25 -0800 (PST) (envelope-from chema) Date: Wed, 9 Mar 2005 16:18:25 -0800 From: =?unknown-8bit?Q?Jos=E9_Mar=EDa_Gonz=E1lez?= To: freebsd-net@freebsd.org Message-ID: <20050310001825.GA320@cs.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: 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 00:18:26 -0000 Hi, I'm trying to create several discard interfaces on 4.9-RELEASE, and I'm having 2 problems. This is what I see (comments started by //): # ifconfig -a de0: ... lo0: ... // these are my original interfaces # kldload if_disc # ifconfig -a de0: ... lo0: ... ds0: flags=8008 mtu 65532 // surprisingly enough, just loading the if_disc kernel module creates // the ds0 interface for me. Well, I can live with that. # ifconfig ds0 create ifconfig: SIOCIFCREATE: Invalid argument # ifconfig disc0 create ifconfig: SIOCIFCREATE: Invalid argument // This makes sens, as the ds0 interface is already created # ifconfig ds1 create ifconfig: SIOCIFCREATE: Invalid argument # ifconfig disc1 create ifconfig: SIOCIFCREATE: Invalid argument // 1st problem: How do I create ds1, ds2, etc.? // Now I want to get rid of the if_disc module # ifconfig ds0 down # ifconfig ds0 destroy ifconfig: SIOCIFDESTROY: Invalid argument #ifconfig disc0 destroy ifconfig: interface disc0 does not exist # kldunload -v -i 4 Unloading if_disc.ko, id=4 kldunload: can't unload file: Invalid argument // 2nd problem: How do I get rid of the if_disc module? Thanks for any help you can provide. -Chema