ifconfig: BRDGADD lo1: invalid argument
Marko Zec
zec at fer.hr
Sat Jun 25 21:46:45 UTC 2016
On Sat, 25 Jun 2016 16:42:40 +0000
<org.freebsd.security at io7m.com> wrote:
> Hello.
>
> I'm trying to create a bridge interface to isolate some jails on
> private addresses. I'm on a near-pristine install of 10.3, updated to
> 10.3-p5 via freebsd-update.
>
> The virtual interface to which the jails will be bound:
>
> # ifconfig lo1 create
>
> The bridge:
>
> # ifconfig bridge create
> bridge0
> # ifconfig bridge0 addm em0
> # ifconfig bridge0 addm lo1
> ifconfig: BRDGADD lo1: Invalid argument
if_bridge(4) works only with ethernet interfaces, and lo(4) isn't such a
thing.
Assuming you are using vnet jails, take a look at if_epair(4): assign
one endpoint to the bridge, and the another one to the jail.
If you're not using vnet jails, you should simply add an alias address
to em0.
> I can find one reference to this error message online from 2007:
>
> https://lists.freebsd.org/pipermail/freebsd-net/2007-December/016102.html
>
> ... but this doesn't appear to be the problem I'm having (it seems as
> though it was caused by an out-of-sync kernel and world, which I
> obviously don't have).
>
> Any ideas how to get this working?
>
> M
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list