From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 19:35:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1BD91065671 for ; Wed, 2 Jul 2008 19:35:02 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 58F778FC0A for ; Wed, 2 Jul 2008 19:35:01 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from crab.unsane.co.uk (crab.unsane.co.uk [10.0.0.111]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m62JYPUb056128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jul 2008 20:34:26 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <486BD80A.2000902@unsane.co.uk> Date: Wed, 02 Jul 2008 20:33:30 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.14 (X11/20080623) MIME-Version: 1.0 To: Ross References: <19710256683.20080702131816@connection.ca> In-Reply-To: <19710256683.20080702131816@connection.ca> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: FB7.0 - ifconfig clone error - "SIOCIFCREATE2: Invalid argument" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 19:35:02 -0000 Ross wrote: > Hi there, > > I've been playing with a new FB7.0 setup (using the standard iso > distribution), and trying to create some vlans by doing cloning via > the rc.conf "cloned_interfaces" command - but that fails. (I'm using > bce interfaces on a HP bl760c blade, if that makes any difference) > > Doing manual testing of "ifconfig xyz0 create" causes the error > "ifconfig: SIOCIFCREATE2: Invalid argument" error to come up and the > interface then doesn't get created. > what command are you using exactly? it certainly works here. root@crab (20:30:15 <~>) 0 # ifconfig em1.5 ifconfig: interface em1.5 does not exist root@crab (20:30:20 <~>) 0 # ifconfig em1.5 create root@crab (20:30:25 <~>) 0 # ifconfig em1.5 em1.5: flags=8842 metric 0 mtu 1500 options=3 ether 00:07:e9:17:db:c9 media: Ethernet autoselect (100baseTX ) status: active vlan: 5 parent interface: em1 root@crab (20:30:26 <~>) 0 # ifconfig em1.5 destroy Or root@crab (20:30:55 <~>) 0 # ifconfig bge0.5 create root@crab (20:31:04 <~>) 0 # ifconfig bge0.5 bge0.5: flags=8842 metric 0 mtu 1500 options=3 ether 00:e0:81:2d:a3:16 media: Ethernet autoselect (100baseTX ) status: active vlan: 5 parent interface: bge0 root@crab (20:31:16 <~>) 0 # ifconfig bge0.5 destroy root@crab (20:31:20 <~>) 0 # Vince > Has anyone gotten this error at all, and how did you get it resolved? > > My digging further shows that a patch was committed to > src/sys/net/if_clone.c (rev 1.11) which adds a new argument for > parameter data to the if_clone_create() function. > > But it looks like src/sys/net/if.c has not been updated to provide > this new parameter data to the if_clone_create function call, thereby > failing the call, and not setting the interface up. > > Any help or pointing in the right direction would be appreciated! > > Thanks, > Ross. >