FB7.0 - ifconfig clone error - "SIOCIFCREATE2: Invalid argument"
Vince Hoffman
jhary at unsane.co.uk
Wed Jul 2 19:35:02 UTC 2008
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 at crab
(20:30:15 <~>) 0 # ifconfig em1.5
ifconfig: interface em1.5 does not exist
root at crab
(20:30:20 <~>) 0 # ifconfig em1.5 create
root at 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 at crab
(20:30:26 <~>) 0 # ifconfig em1.5 destroy
Or
root at crab
(20:30:55 <~>) 0 # ifconfig bge0.5 create
root at 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 at crab
(20:31:16 <~>) 0 # ifconfig bge0.5 destroy
root at 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.
>
More information about the freebsd-questions
mailing list