From: Michele Jr De Candia <michele.de_candia@alcatel-lucent.com>
To: Changli Gao <xiaosuo@gmail.com>
Cc: "netfilter-devel@vger.kernel.org" <netfilter-devel@vger.kernel.org>
Subject: Re: VLAN ebtables target
Date: Fri, 10 Sep 2010 13:30:56 +0200 [thread overview]
Message-ID: <1284118256.3072.7.camel@nbmichele> (raw)
In-Reply-To: <AANLkTingKBq46n-tM-guNSwxDeaegSCfkW7KNYuiEMjb@mail.gmail.com>
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
> <michele.de_candia@alcatel-lucent.com> 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
> >> <michele.de_candia@alcatel-lucent.com> 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 developments?
> >> >
> >>
> >> What is the requirement which needs this VLAN target? Most of
> >> requirement can be satisfied with ebtables and vlan network devices.
> >
> > Supposing that the requirement is to get a VLAN tagged L2 frame coming
> > from an interface and routing it untagged to another interface, how
> > 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 dst
mac address) this can't be the way, right?
next prev parent reply other threads:[~2010-09-10 11:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 10:02 VLAN ebtables target Michele Jr De Candia
2010-09-10 2:33 ` Changli Gao
2010-09-10 9:41 ` Michele Jr De Candia
2010-09-10 11:21 ` Changli Gao
2010-09-10 11:30 ` Michele Jr De Candia [this message]
2010-09-10 11:38 ` Changli Gao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1284118256.3072.7.camel@nbmichele \
--to=michele.de_candia@alcatel-lucent.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=xiaosuo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.