Skip to contentSkip to conversation

Problem with vlan bridge

DISCUSSION Molaei 3 participants 3 messages May 30, 2013 – Jun 10, 2013

Subsystems (2)
lore
Share & tools
lore

Molaei

author
#0 lore raw

i have fedora 19 with kernel 3.9 and want to use iproute for adding vlan bridge. i do this configuration but vlan bridge not work.

ip link add dev br type bridge
ip link set dev br up
ip link add link eth0 name eth0.20 type vlan id 20 ip link set dev eth0.20 up
ip link add link eth1 name eth1.30 type vlan id 30 ip link set dev eth1.30 up

bridge vlan add dev eth0.20 vid 20
bridge vlan add dev eth1.30 vid 30

when i sen broadcast message from systemtha connected to eth0, systam connected to eth1 get broadcast message with vid 200.

please help me
thanks

#1 lore raw
Quoted 11 lines · Molaei <zohrehmolaei <at> gmail.com> writes:

i have fedora 19 with kernel 3.9 and want to use iproute for adding vlan bridge. i do this configuration but vlan bridge not work.

ip link add dev br type bridge
ip link set dev br up
ip link add link eth0 name eth0.20 type vlan id 20 ip link set dev eth0.20 up
ip link add link eth1 name eth1.30 type vlan id 30 ip link set dev eth1.30 up

Quoted 10 lines

bridge vlan add dev eth0.20 vid 20
bridge vlan add dev eth1.30 vid 30

when i sen broadcast message from systemtha connected to eth0, systam connected to eth1 get broadcast message with vid 200.

please help me
thanks

I have same problem and configuration is as a follow:

ip link add dev br type bridge
ip link set dev br up
ip link add link eth0 name eth0.20 type vlan id 20 ip link set dev eth0.20 up
ip link add link eth1 name eth1.30 type vlan id 30 ip link set dev eth1.30 up

ip link set eth0.20 master br
ip link set eth1.30 master br

bridge vlan add dev eth0.20 vid 20
bridge vlan add dev eth1.30 vid 30

I can't find any document or example to perform that. I appreciate your reply.
Regards

#2 lore raw
Quoted 6 lines · kermani
Quoted 4 lines · Molaei <zohrehmolaei <at> gmail.com> writes:

i have fedora 19 with kernel 3.9 and want to use iproute for adding vlan bridge. i do this configuration but vlan bridge not work.

...

Quoted 7 lines
Quoted 4 lines

when i sen broadcast message from systemtha connected to eth0, systam connected to eth1 get broadcast message with vid 200.

I have same problem and configuration is as a follow:

Did you set /sys/class/net/br0/bridge/vlan_filtering to 1? It is 0 by default, and this is expected behavior if it is 0.