From owner-freebsd-net@freebsd.org Sat Jun 25 21:46:44 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9F77B82EC1 for ; Sat, 25 Jun 2016 21:46:44 +0000 (UTC) (envelope-from zec@fer.hr) Received: from mail.fer.hr (mail.fer.hr [161.53.72.233]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.fer.hr", Issuer "TERENA SSL CA 3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70FF71CFE for ; Sat, 25 Jun 2016 21:46:43 +0000 (UTC) (envelope-from zec@fer.hr) Received: from x23 (31.147.122.115) by MAIL.fer.hr (161.53.72.233) with Microsoft SMTP Server (TLS) id 14.3.279.2; Sat, 25 Jun 2016 23:46:34 +0200 Date: Sat, 25 Jun 2016 23:46:36 +0200 From: Marko Zec To: CC: 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> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [31.147.122.115] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2016 21:46:45 -0000 On Sat, 25 Jun 2016 16:42:40 +0000 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"