Ok, my knowledge on this is a little fuzzy, so my technical explanation of the problem may not be 100% accurate, but it does convey what you're running into.
When you bridge a client/station interface, there is a problem with the number of available mac addresses in a frame, which causes the response packets to not be routed properly when you ping like this. The ways I've solved this exact situation: 1. I setup AP1 in your case as a separate subnet: 192.168.3.xxx, then use routing rules. This works well enough, with the exception of device discovery. I had my PS3 hooked up wired to AP2, and it could not detect a media server on AP1 due to broadcasts not being on the same subnet. 2. I hacked up the arpnat patch from the Gargoyle Router project to allow bridged client mode (what you're doing now). This allowed me to run 1 big subnet, but it screwed up ipv6 discovery for devices beyond AP1 (dhcp/radvd server was on the other side of AP2). I only have this patch working through 2.6.32 at this point, not tried anything more recent. The router it runs on is ar71xx based, and openwrt defaults to 2.6.32 for this device. Pat Erley On 11/24/10 22:10, Stanley Lee wrote: > This is my setting > > laptop --- AP1(ath9k as ap client mode) )))((( AP2 --- Internet > > ip addr. > laptop: 192.168.2.146 > AP1(ath9k): 192.168.2.147 > AP2: 192.168.2.254 > > > laptop connect to AP1's lan port via RJ-45. the laptop setting as below: > ip addr.: 192.168.2.146 > subnet mask: 255.255.255.0 > default gateway: 192.168.2.254 > > AP1 as a bridge and connect to AP2. the AP1 setting as below: > #ifconfig eth0 0.0.0.0 > #ifconfig wlan0 0.0.0.0 > #brctl addbr br0 > #brctl addif br0 eth0 > #brctl addif br0 wlan0 > #ifconfig br0 192.168.2.147 netmask 255.255.255.0 > #ifconfig br0 up > > AP1 connect to AP2 as AP Client mode: > #iw dev wlan0 connect -w RT-N61 > > > If I ping laptop and AP2 from AP1, I can received responses each other. > My question is that when I ping AP1 from laptop, it can work well. but ping > AP2 from laptop, it not received a response from AP2. > It seems like eth0 can't communicate with wlan0, but I have bridged them on > AP1(ath9k). > Do I miss some settings on AP1? If anyone have any idea about it, please help > me. > > Thanks. > > > > > > --------------------------- > Best Regards > Stanley lee,im....@msa.hinet.net <mailto:im....@msa.hinet.net> > 2010-11-25 > > ----- Original Message ----- > *From: *pat-lkml <mailto:pat-l...@erley.org> > *To: *im.hsu <mailto:im....@msa.hinet.net> > *Sent: *2010-11-24, 23:18:08 > *Subject: *Re: [ath9k-devel] How to set ath9k to ap client mode? > > On 11/23/2010 6:02 AM, Stanley Lee wrote: >> >> Does anyone can help me and tell me how to set the ath9k to ap client >> mode? >> >> > Do you mean something like bridged client, where the device connects to > another access point, making it's local ethernet ports act like they're on > the switch connected to the other AP? > > Pat Erley > > > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel@lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel _______________________________________________ ath9k-devel mailing list ath9k-devel@lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel