From mboxrd@z Thu Jan 1 00:00:00 1970 From: Changli Gao Subject: Re: VLAN ebtables target Date: Fri, 10 Sep 2010 19:38:31 +0800 Message-ID: References: <1284026558.2111.8.camel@nbmichele> <1284111698.3072.2.camel@nbmichele> <1284118256.3072.7.camel@nbmichele> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "netfilter-devel@vger.kernel.org" To: michele.de_candia@alcatel-lucent.com Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:65344 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753036Ab0IJLiw convert rfc822-to-8bit (ORCPT ); Fri, 10 Sep 2010 07:38:52 -0400 Received: by wyf22 with SMTP id 22so2703002wyf.19 for ; Fri, 10 Sep 2010 04:38:51 -0700 (PDT) In-Reply-To: <1284118256.3072.7.camel@nbmichele> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Fri, Sep 10, 2010 at 7:30 PM, Michele Jr De Candia wrote: > On Fri, 2010-09-10 at 13:21 +0200, Changli Gao wrote: >> On Fri, Sep 10, 2010 at 5:41 PM, Michele Jr De Candia >> wrote: >> > On Fri, 2010-09-10 at 04:33 +0200, Changli Gao wrote: >> >> On Thu, Sep 9, 2010 at 6:02 PM, Michele Jr De Candia >> >> wrote: >> >> > Hi all, >> >> > I read on ebtable-devel mailing list that somebody has tried to= do a new >> >> > target module to add or remove the VLAN tag with ebtables. >> >> > >> >> > There were some patches or references about previous developmen= ts? >> >> > >> >> >> >> What is the requirement which needs this VLAN target? Most of >> >> requirement can be satisfied =A0with ebtables and vlan network de= vices. >> > >> > Supposing that the requirement is to get a VLAN tagged L2 frame co= ming >> > from an interface and routing it untagged to another interface, ho= w >> > would you do that? >> > >> >> >> >> Supposing the VLAN tagged L2 frame conming from eth0, the VLAN ID is >> 2, and the other interface is eth1. >> >> vconfig add eth0 2 >> vconfig set_flag eth0.2 1 >> brctl addbr br0 >> brctl addif br0 eth0.2 >> brctl addif br0 eth1 >> > > Thank you but I think this untags all the frames coming to eth0.2. > > If I want to untag some frames according to some rule (e.g. src or ds= t > mac address) this can't be the way, right? > You need to: brctl addif br0 eth0 And do some ebtables settings in the broute chain to route the vlan frames instead. --=20 Regards, Changli Gao(xiaosuo@gmail.com) -- To unsubscribe from this list: send the line "unsubscribe netfilter-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html