The bridging function of openwrt seem not working, at lest in the version i'm using (last kamikaze, updated two weeks ago).
#brctl addbr bri0
/ # brctl addif bri0 eth0
device eth0 entered promiscuous mode
/ # brctl addif bri0 eth1
device eth1 entered promiscuous mode
/ # brctl addif bri0 eth2
device eth2 entered promiscuous mode
/ # brctl show
bridge name bridge id STP enabled interfaces
bri0 8000.0050fc112201 no eth0
eth1
eth2
/ # ifconfig bri0 up
bri0: port 3(eth2) entering learning state
bri0: port 2(eth1) entering learning state
bri0: port 1(eth0) entering learning state
bri0: topology change detected, propagating
bri0: port 3(eth2) entering forwarding state
bri0: topology change detected, propagating
bri0: port 2(eth1) entering forwarding state
bri0: topology change detected, propagating
bri0: port 1(eth0) entering forwarding state
/ # brctl showmacs bri0
port no mac addr is local? ageing timer
3 00:19:66:06:f0:ff no 7.19
1 00:50:fc:11:22:01 yes 0.00
2 00:50:fc:11:22:02 yes 0.00
3 00:50:fc:11:22:03 yes 0.00
/ #
/ # ip address show
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:fc:11:22:01 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:fc:11:22:02 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:fc:11:22:03 brd ff:ff:ff:ff:ff:ff
5: wifi0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 199
link/ieee802.11 00:80:48:46:e3:85 brd ff:ff:ff:ff:ff:ff
6: bri0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
link/ether 00:50:fc:11:22:01 brd ff:ff:ff:ff:ff:ff
inet 192.168.168.1/24 scope global bri0
/ #
//Connecting to ETH2:
/ # ping 192.168.168.2
PING 192.168.168.2 (192.168.168.2): 56 data bytes
(no ping)
//Connecting to ETH1:
/ # ping 192.168.168.2
PING 192.168.168.2 (192.168.168.2): 56 data bytes
(no ping)
//Connecting to ETH0:
/ # ping 192.168.168.2
PING 192.168.168.2 (192.168.168.2): 56 data bytes
64 bytes from 192.168.168.2: icmp_seq=93 ttl=64 time=1006.2 ms
64 bytes from 192.168.168.2: icmp_seq=94 ttl=64 time=1.5 ms
64 bytes from 192.168.168.2: icmp_seq=95 ttl=64 time=1.0 ms
64 bytes from 192.168.168.2: icmp_seq=96 ttl=64 time=1.0 ms
Some idea? I tried enabling or disabling stp, changing the times of the mac cache till
some second, but i see packets passing only on the first interface of the bridge. On the
eth1, eth2 i see only arp traffic.
This is a real problem for my router.. I really need to use bridging on my network.
/ # brctl showstp bri0
bri0
bridge id 8000.0050fc112201
designated root 8000.0050fc112201
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 15.00 bridge forward delay 15.00
ageing time 300.00
hello timer 0.76 tcn timer 0.00
topology change timer 0.00 gc timer 8.76
flags
eth0 (0)
port id 0000 state forwarding
designated root 8000.0050fc112201 path cost 100
designated bridge 8000.0050fc112201 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth1 (0)
port id 0000 state forwarding
designated root 8000.0050fc112201 path cost 100
designated bridge 8000.0050fc112201 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth2 (0)
port id 0000 state forwarding
designated root 8000.0050fc112201 path cost 100
designated bridge 8000.0050fc112201 message age timer 0.00
designated port 8003 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
/ #
(Last edited by studioideasw@gmail.com on 29 Nov 2007, 17:49)