ifconfig siocifcreate invalid argument

Milan Obuch freebsd-hackers at dino.sk
Mon Feb 17 13:06:28 UTC 2014


On Mon, 17 Feb 2014 02:22:53 -0800 (PST)
Nomad Esst <noname.esst at yahoo.com> wrote:

> Thanks
> Do you know which kernel module should be included in kernel config
> file? Since we could create gre interfaces without any problems
> before we customize the kernel.
> 

Well, no idea - I just try and did not see this error on any system
here, checked on 9.2-STABLE/amd64 as well, all with minimal kernel
config (no network card in kernel, no SCSI adapter in kernel, no sound
card in kernel etc.) and every time if_gre kernel module was loaded
correctly when 'ifconfig gre0 create' command was issued in shell.
Maybe your ifconfig needs to be rebuilt if you have not build system
and binaries from the same sources, but no other idea here... Also, in
my sources I did not find 'device gre' in kernel either, so I am not
sure if this possibility even exists, but you can try it just to be
sure...

> On Monday, February 17, 2014 1:40 PM, Milan Obuch
> <freebsd-hackers at dino.sk> wrote: 
> On Mon, 17 Feb 2014 01:52:38 -0800 (PST)
> >
> >Nomad Esst <noname.esst at yahoo.com> wrote:
> >
> >> Hi
> >> Recently I've customized my kernel and deleted most of unused
> >> devices and options. When I try to create a a gre interface I get
> >> this error: 
> >> 
> >> 
> >> ifconfig: siocifcreate2: invalid argument
> >> 
> >> I'm using FreeBSD9.2 AMD 64
> >> 
> >> What's the problem?
> >>
> >
> >If you do not have 'device gre' in kernel config and module if_gre is
> >not loaded automatically, you need to do it yourself - just use
> >'kldload if_gre' before you try to create interface greN.
> >
> >Regards,
> >Milan
> >

Milan


More information about the freebsd-hackers mailing list