Date: Sat, 25 Jun 2016 23:46:36 +0200 From: Marko Zec <zec@fer.hr> To: <org.freebsd.security@io7m.com> Cc: <freebsd-net@freebsd.org> Subject: Re: ifconfig: BRDGADD lo1: invalid argument Message-ID: <20160625234636.2f086908@x23> In-Reply-To: <20160625164240.7cea7587@copperhead.int.arc7.info> References: <20160625164240.7cea7587@copperhead.int.arc7.info>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 25 Jun 2016 16:42:40 +0000 <org.freebsd.security@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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160625234636.2f086908>