From owner-freebsd-net@freebsd.org Wed Apr 11 17:35:26 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 874A2F82222 for ; Wed, 11 Apr 2018 17:35:26 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AF656D61B for ; Wed, 11 Apr 2018 17:35:25 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (115-166-20-68.dyn.iinet.net.au [115.166.20.68]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3BHZIWY096321 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 11 Apr 2018 10:35:21 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Bridging a vlan trunk with a gif tunnel? To: Eugene Grosbein , Hauke Fath , freebsd-net@freebsd.org References: <20180401164209528151.6f554119@spg.tu-darmstadt.de> <5AC101AC.60906@grosbein.net> From: Julian Elischer Message-ID: Date: Thu, 12 Apr 2018 01:35:12 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5AC101AC.60906@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 17:35:26 -0000 On 1/4/18 11:58 pm, Eugene Grosbein wrote: > 01.04.2018 21:42, Hauke Fath wrote: > >> I am trying to network a remote site with a main site through a bridged >> gif tunnel, and it doesn't work for me. > gif(4) supports only untagged frames when added to a bridge. > You need to create gif-per-vlan or switch to newer vxlan(4). I have in the past implemented this using netgraph and vnet but it was quite a log time ago and I forget many of the details The vnet jail was so that the gif tunnel effectively left from "another machine" (it was the same machine with a vnet jail) The reason was so that net failures were "one hop away" and therefore not so hard to work around. >> In the past, I have set up a similar link by tunneling ip over gif, but >> routing turned out to be intricate > what problems do you have with routing over gif? It works just fine for me. > >> and I figured just bridging the exclave with the main site would save me routing issues, > And bring in bridging issues that are more severe. > >> plus I could stick with the existing subnets. > And have extra overhead to pass +14 bytes of headers of MAC addresses per frame. > > Single gif+bridge does not support trunks. > > > _______________________________________________ > 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" >