Re: VLAN ebtables target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 10, 2010 at 7:30 PM, Michele Jr De Candia
<michele.de_candia@xxxxxxxxxxxxxxxxxx> 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
>> <michele.de_candia@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx> 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?
>

You need to:

brctl addif br0 eth0

And do some ebtables settings in the broute chain to route the vlan
frames instead.

-- 
Regards,
Changli Gao(xiaosuo@xxxxxxxxx)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux