OpenWrt Forum Archive

Topic: brctl addif br0 vlan0 breaks wifi?

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am running White Russian RC2 on a WRT54G v.3, and I am seeing the following interesting behavior:

When br0 contains only eth1 (the wifi), everything works great and I can ping the access point.

When I run:
  brctl addif br0 vlan0

Suddenly I can no longer ping the access point.  The routing table looks the same / correct.

When I remove vlan0 from the bridge using brctl delif, everything starts working again.

Anybody have any ideas what might be going on?

-jm

Give some more information.
Write every step you have made.
"brctl addif br0 vlan0" => vlan0 isno longer accessible and IP assigned to it cannot be accessed.... maybe this is the problem ?

Try this:
Connect to your WRT54Gv3 trough vlan0.
Create this br0 (with eth1 only).
Connect to your WRT54Gv3 trough br0 (that is "WiFi"). Remember to use br0's IP, not the one assigned to vlan0.
Up to this step everything should be OK. If not then your problem is probably not where you have pointed it.
---
If you are able to connect to your WRT54Gv3 trough br0 try now "brctl addif br0 vlan0". What happened?

jmayer wrote:

When I run:
  brctl addif br0 vlan0
Suddenly I can no longer ping the access point.  The routing table looks the same / correct.

Waiting approximately 7min. And all will work. I don't know why smile
In system log, for examle my command is "ifconfig tap0 up && brctl addif br-lan tap0", i see that:

Dec 26 19:47:12 OpenWrt user.info kernel: device tap0 entered promiscuous mode
Dec 26 20:04:28 OpenWrt user.info kernel: br-lan: port 2(tap0) entering learning state

Just wait!

Ok
If this whomever it is necessary, that here is decision:
tap0 has other MAC, not such as on br-lan.
You need change MAC for tap0 on MAC of br-lan. Thats all.
Script for openvpn for option 'up'  ($1 = tap0)

ifconfig $1 hw ether 84:C9:B2:6A:75:05 up
#ifconfig $1 hw ether `nvram get lan_hwaddr` up
brctl addif br-lan $1

(Last edited by olegusp on 18 May 2012, 21:08)

The discussion might have continued from here.