Skip to contentSkip to conversation

VLAN ebtables target

DISCUSSION Michele Jr De Candia 2 participants 6 messages Sep 9, 2010 – Sep 10, 2010 netfilter

lore
Share & tools
lore
#0 lore raw

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?

Thanks in advance,
Michele

#1 lore raw
Quoted 6 lines · Michele Jr De Candia

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.

Signature · 2 lines
Regards,
Changli Gao([email protected])
#2 lore raw
Quoted 11 lines · Changli Gao
Quoted 6 lines · Michele Jr De Candia

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?

Quoted 1 line
#3 lore raw
Quoted 10 lines · Michele Jr De Candia
Quoted 9 lines · Changli Gao
Quoted 6 lines · Michele Jr De Candia

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?

Quoted 8 lines
Quoted 2 lines

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?

Quoted 1 line

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

Signature · 6 lines
Regards,
Changli Gao([email protected])
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
Quoted 21 lines · Changli Gao
Quoted 10 lines · Michele Jr De Candia
Quoted 9 lines · Changli Gao
Quoted 6 lines · Michele Jr De Candia

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?

Quoted 8 lines
Quoted 2 lines

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?

Quoted 1 line
Quoted 9 lines

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?

#5 lore raw
Quoted 32 lines · Michele Jr De Candia
Quoted 21 lines · Changli Gao
Quoted 10 lines · Michele Jr De Candia
Quoted 9 lines · Changli Gao
Quoted 6 lines · Michele Jr De Candia

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?

Quoted 8 lines
Quoted 2 lines

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?

Quoted 1 line
Quoted 9 lines

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

Quoted 5 lines

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.

Signature · 6 lines
Regards,
Changli Gao([email protected])
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html