I'm trying to build a repeater station.
My unit has 2 wireless cards, wlan1 and wlan2.
wlan2 is the backhaul radio which connects to the head-end. wlan1 is the AP which clients are suppose to connect to. eth1 is the ethernet port which the person hosting the repeater station can use to surf the internet.
I have wlan2 set up in station mode and it communicates fine with the head-end. It is set to a static IP of 192.168.100.210/22.
eth1 has a static IP address of 192.168.2.1/24, a simple srcnat to masquearde it, and a route of 0.0.0.0/0 to route everything out over wlan2.
All of that works.
wlan1 is set up as an "ap bridge" and my netbook's wireless sees it.
I tried creating an ordinary bridge (bridge1) and added ports wlan1 and wlan2 to it. However, my netbook can't get a an address from wlan1 and so doesn't connect.
So then I tried setting wlan1 to IP address 192.168.100.209/22, and adding a DHCP relay to it. Now I can get an IP address, but I can't get through wlan1 to the rest of the network.
What I need is for wlan1 to be on the same network as wlan2, and to transparently pass traffic NOT for eth1, between it and wlan2. In essence, I want to mimic an ethernet switch with one side connected to my "gateway" (head-end), and the other side connected to the clients. If this were a wired connection, I'd simply create a bridge and add both wlan1 and wlan2 to that. However, this doesn't seem to work when I'm using wireless.
Could I get some clear, step-by-step instructions on how to set this up?