Date: Wed, 02 Jul 2008 20:33:30 +0100 From: Vince Hoffman <jhary@unsane.co.uk> To: Ross <westr@connection.ca> Cc: freebsd-questions@freebsd.org Subject: Re: FB7.0 - ifconfig clone error - "SIOCIFCREATE2: Invalid argument" Message-ID: <486BD80A.2000902@unsane.co.uk> In-Reply-To: <19710256683.20080702131816@connection.ca> References: <19710256683.20080702131816@connection.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=3<RXCSUM,TXCSUM> ether 00:07:e9:17:db:c9 media: Ethernet autoselect (100baseTX <full-duplex>) 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<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=3<RXCSUM,TXCSUM> ether 00:e0:81:2d:a3:16 media: Ethernet autoselect (100baseTX <full-duplex>) 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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?486BD80A.2000902>