Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2397 (new defect)

Opened 12 years ago

wds bridge :clients can not ping each other sucessfully

Reported by: anonymous Assigned to:
Priority: minor Milestone:
Component: madwifi: other Version:
Keywords: Cc:
Patch is attached: 0 Pending: 0

Description

Hell0!

Recently ,I have met a problem .I want to do a experiment using madwifi. The topology is as foollows:

pc1 (192.168.0.1) )))) (((( mesh1(ap+br(192.168.0.2)+wds) ))) ((( mesh2(ap+br(192.168.0.3)+wds) )))) (((( pc2(192.168.0.6)

for PC1,I have done the folling commands:

wlanconfig ath0 create wlandev wifi0 wlanmode ap

brctl addbr br0

iwpriv ath0 mode 3

iwconfig ath0 essid test_1 channel 1

iwpriv ath0 wds 1

ifconfig ath0 up

brctl addif br0 ath0

ifconfig br0 192.168.0.2 up

wlanconfig ath1 create wlandev wifi0 wlanmode wds

iwpriv ath1 mode 1

iwconfig ath1 channel 6

iwpriv ath1 wds_add 0A:1D:0F:30:4B:04(peer_wds_mac)

iwpriv ath1 wds 1

ifconfig ath1 up

brctl addif br0 ath1

echo 1 > /proc/sys/net/ipv4/ip_forward # make sure, kernel

allowed to pass packets between interfaces.

For pc2:

wlanconfig ath0 create wlandev wifi0 wlanmode ap

brctl addbr br0

iwpriv ath0 mode 3

iwconfig ath0 essid test_2 channel 1

iwpriv ath0 wds 1

ifconfig ath0 192.168.0.3 up

brctl addif br0 ath0

ifconfig br0 up

wlanconfig ath1 create wlandev wifi0 wlanmode wds

iwpriv ath1 mode 1

iwconfig ath1 channel 6

iwpriv ath1 wds_add 0A:1D:0F:00:73:D3(peer_wds_mac)

iwpriv ath1 wds 1

ifconfig ath1 up

brctl addif br0 ath1

echo 1 > /proc/sys/net/ipv4/ip_forward # make sure, kernel

allowed to pass packets between interfaces.

Now,from pc1,I can ping 192.168.0.2 and 192.168.0.3 successfully.from pc2,I can also ping 192.168.0.2 and 192.168.0.3 successfully.But pc1 and pc2 can not ping successully with each other.Then I use wireshark to see what is wrong.To my surprise,when I ping 192.168.0.1(the address of pc1) from pc2,pc2 can learn the mac address of pc1,while when pc1 sending icmp echo request ,the wireshark on the mesh1 can not seize the packet by ath1 and br0.but by ath0,it can sucessfully grasp the icmp echo request packet. The information of mesh1 is : ath0 Link encap:Ethernet HWaddr 06:1D:0F:00:73:D3

inet6 addr: fe80::41d:fff:fe00:73d3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8017 errors:0 dropped:0 overruns:0 frame:0 TX packets:10574 errors:0 dropped:346 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:526539 (514.1 KiB) TX bytes:524580 (512.2 KiB)

ath1 Link encap:Ethernet HWaddr 0A:1D:0F:00:73:D3

inet6 addr: fe80::81d:fff:fe00:73d3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13944 errors:6 dropped:0 overruns:0 frame:0 TX packets:5497 errors:0 dropped:1 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:761416 (743.5 KiB) TX bytes:327285 (319.6 KiB)

br0 Link encap:Ethernet HWaddr 06:1D:0F:00:73:D3

inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::41d:fff:fe00:73d3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10018 errors:0 dropped:0 overruns:0 frame:0 TX packets:1089 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:336841 (328.9 KiB) TX bytes:92336 (90. RX bytes:298855 (291.8 KiB) TX bytes:88877 (86.7 KiB)

eth0 Link encap:Ethernet HWaddr 00:14:22:2D:8E:F8

inet addr:219.224.168.139 Bcast:219.224.168.255 Mask:255.255.255.0 inet6 addr: 2001:da8:203:200:214:22ff:fe2d:8ef8/64 Scope:Global inet6 addr: fe80::214:22ff:fe2d:8ef8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10384 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:942817 (920.7 KiB) TX bytes:5718 (5.5 KiB) Interrupt:16

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:969 errors:0 dropped:0 overruns:0 frame:0 TX packets:969 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:106800 (104.2 KiB) TX bytes:106800 (104.2 KiB)

wifi0 Link encap:UNSPEC HWaddr 00-1D-0F-00-73-D3-71-82-00-00-00-00-00-00-00-00

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:76272 errors:0 dropped:0 overruns:0 frame:26337 TX packets:55073 errors:27729 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:280 RX bytes:4954573 (4.7 MiB) TX bytes:5527348 (5.2 MiB) Interrupt:18

the information of mesh2 is : ath0 Link encap:Ethernet HWaddr 06:1D:0F:30:4B:04

inet6 addr: fe80::41d:fff:fe30:4b04/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2076 errors:0 dropped:0 overruns:0 frame:0 TX packets:2564 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:168490 (164.5 KiB) TX bytes:159255 (155.5 KiB)

ath1 Link encap:Ethernet HWaddr 0A:1D:0F:30:4B:04

inet6 addr: fe80::81d:fff:fe30:4b04/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3758 errors:0 dropped:0 overruns:0 frame:0 TX packets:1463 errors:0 dropped:1 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:227864 (222.5 KiB) TX bytes:114348 (111.6 KiB)

br0 Link encap:Ethernet HWaddr 06:1D:0F:30:4B:04

inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::41d:fff:fe30:4b04/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2724 errors:0 dropped:0 overruns:0 frame:0 TX packets:612 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:136963 (133.7 KiB) TX bytes:54353 (53.0 KiB)

eth0 Link encap:Ethernet HWaddr 00:13:20:4F:64:A4

inet addr:219.224.168.141 Bcast:219.224.168.255 Mask:255.255.255.0 inet6 addr: 2001:da8:203:200:213:20ff:fe4f:64a4/64 Scope:Global inet6 addr: fe80::213:20ff:fe4f:64a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:119663 errors:0 dropped:0 overruns:0 frame:0 TX packets:17904 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:43888661 (41.8 MiB) TX bytes:1437767 (1.3 MiB)

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:30 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2944 (2.8 KiB) TX bytes:2944 (2.8 KiB)

wifi0 Link encap:UNSPEC HWaddr 00-1D-0F-30-4B-04-71-22-00-00-00-00-00-00-00-00

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17837 errors:0 dropped:0 overruns:0 frame:3855 TX packets:13413 errors:7370 dropped:0 overruns:0 carrier:0 collisions:0 txqueuele

Can anyone tell how to solve this problem.Thank you in advance.