From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 10:43:30 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 683DF15F for ; Tue, 28 Apr 2015 10:43:30 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id C88CD19CA for ; Tue, 28 Apr 2015 10:43:29 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38654988; Tue, 28 Apr 2015 16:43:27 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3SAhO9i021494; Tue, 28 Apr 2015 16:43:24 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3SAhOj0021493; Tue, 28 Apr 2015 16:43:24 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Tue, 28 Apr 2015 16:43:24 +0600 From: Victor Sudakov To: freebsd-questions@freebsd.org, Nikos Vassiliadis Subject: Re: tunneling L2 tagged traffic over IP Message-ID: <20150428104324.GA21238@admin.sibptus.tomsk.ru> References: <20150425174935.GA48023@admin.sibptus.tomsk.ru> <553C1F66.4060901@gmx.com> <20150426123629.GA48916@admin.sibptus.tomsk.ru> <20150427093355.GA86151@admin.sibptus.tomsk.ru> <553E400F.2040906@gmx.com> <20150427143952.GA94033@admin.sibptus.tomsk.ru> <553E9A07.1020900@gmx.com> <20150428034047.GA4874@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150428034047.GA4874@admin.sibptus.tomsk.ru> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 10:43:30 -0000 Victor Sudakov wrote: > > > > STP frames are not forwarded. As well as other special frames: > > > > > /* > > > * Check if its a reserved multicast address, any address > > > * listed in 802.1D section 7.12.6 may not be forwarded by the > > > * bridge. > > > * This is currently 01-80-C2-00-00-00 to 01-80-C2-00-00-0F > > > */ > > > > FreeBSD does that unconditionally. That could probably be a tunable:) > > If you have a "simple" ethernet bridge (without STP) you should > > forward STP frames. I guess a patch would be welcome! > > That's from src/sys/net/if_bridge.c > > Fine. Maybe there are other ways to tunnel Ethernet without relying on > if_bridge ? > > Besides, I also need to tunnel 802.1q tagged frames, so if_bridge is > unsuitable anyway. I have tried a very simple netgraph configuration: connect re0: tap0: lower lower connect re0: tap0: orphans orphans Result: STP frames are being passed successfully from re0 to tap0, 802.1q tagged frames are not. How very sad. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru