The WLAN interface on my WRT54Gv2 stops "bridging" when I set it up in bridged AP only mode (so that it does just act as an ethernet switch and WLAN AP to the existing IP network). If I instead of connecting via WLAN use one of the RJ45 ports in the hub in the back of the Linksys, I can easily connect to the internet (or anything else on my local network), but not to the Linksys router it self.

I have a Cisco ADSL router that handles DHCP. It manages my internal 10.0.0.0/24 network. The IP of its internal interface is 10.0.0.1 and I've set the DHCP server up to hand out addresses between 10.0.0.100 and 10.0.0.254 (below that is reserved for static units). I've hooked up the WRT54Gv2 to the network and given its LAN interface the static IP 10.0.0.2. The configuration I've used is the following (taken from the OpenWRT manual):

lan_dns=212.242.40.3 212.242.40.51
lan_gateway=10.0.0.1
lan_ifname=br0
lan_ifnames=vlan0 eth1
lan_ipaddr=10.0.0.2
lan_netmask=255.255.255.0
lan_proto=static

The rest of NVRAM looks like this:

aa0=3
ag0=255
boardflags2=0
boardflags=0x0188
boardnum=42
boardrev=0x10
boardtype=0x0101
boot_ver=v2.1
boot_wait=on
ccode=0
cctl=0
clkfreq=200
dl_ram_addr=a0001000
et0macaddr=00:0C:41:D0:35:9D
et0mdcport=0
et0phyaddr=30
gpio2=adm_eecs
gpio3=adm_eesk
gpio5=adm_eedi
gpio6=adm_rc
il0macaddr=00:0c:41:d0:35:9f
os_flash_addr=bfc40000
os_ram_addr=80001000
pa0b0=0x170c
pa0b1=0xfa24
pa0b2=0xfe70
pa0itssit=62
pa0maxpwr=0x48
pmon_ver=CFE 3.51.21.0
scratch=a0180000
sdram_config=0x0032
sdram_init=0x0000
sdram_ncdl=0x2031e
sdram_refresh=0x0000
sromrev=2
vlan0hwname=et0
vlan0ports=1 2 3 4 5*
vlan1hwname=et0
vlan1ports=0 5
wan_ifname=vlan1
wan_proto=none
watchdog=5000
wl0_akm=psk
wl0_closed=1
wl0_crypto=aes+tkip
wl0_ifname=eth1
wl0_infra=1
wl0_maclist=00:0C:AB:32:BC:23 00:40:96:14:5B:FF
wl0_macmode=allow
wl0_mode=ap
wl0_radio=1
wl0_ssid=SomeSSID
wl0_wpa_psk=SomeSecretPassword
wl0gpio2=0
wl0gpio3=0
wl0id=0x4320

When connecting my laptop to the Linksys router via WLAN I get a IP form the Linksys router it self (NOT the Cisco router!) - but packages are not "bridged" correctly beyond the router. I can access the router though (on its LAN IP 10.0.0.2). When instead connecting via one of the RJ45 ports in the back of the linksys I get my IP directly from my Cisco ADSL router (as I would expect) and this time packages ARE "bridged" correctly and I can, as written before, connect to the internet etc.

I've tried to switch off the local DHCP server on the Linksys but that does not make a difference (except that I now do not get an IP address if I'm on WLAN).

So bottom line is that it does not seem to bridge correctly between the WLAN interface and the LAN interface. LAN to LAN of cause works.

How do I fix this?

/thomas