OpenWrt Forum Archive

Topic: AP and client bridge - can it be done?

The content of this topic has been archived on 24 Feb 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm tríing to replace an old edimax wifi router with an asus wl500gp and kamikaze. The tasks it must do:
1) Connect to a wireless AP
2) Work as an AP, in the same network as the other AP (bridging)
3) The LAN ports should be in the same network as the wifi iface

I'm tríing to put it togeter but with no success. I have read this: http://wiki.openwrt.org/Repeater but if i connect to the kamikaze box, i cannot get an ip address. However kamikaze links together with the other AP, i have internet access on it.

I would appreciate any help on this.

/etc/config/network:
#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0


and /etc/config/wireless:
config wifi-device  wl0
        option type     broadcom
        option channel  5

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption psk
        option key Pass1234

config wifi-iface
        option device wl0
        option mode     sta
        option ssid     MyhomeAP
        option encryption psk
        option key      Gepzsir



What am i doing wrong?

Thx

Okay, yesterday i was waaay tired. I woke up this morning deleted the AP section of the wireless config and it worked fine. However if i add the ap section, i can only connect to the device via lan and dhcp doesn't work (the other device is the dhcp server - this works fine, if i clear the ap section).

To put it together: my device can connect to the other as a wireless client, it can bridge it's lan to that network (DHCP and ping and everything else works fine), but i cannot make it to accept client connections via wifi.

Is this is a limitaion in Kamikaze? Am i doing something veeeery wrong? Or is this a limitation in the Broadcom wifi adatpter in the wl500gp?

Thx for any suggestions

Greybear

I think you're missing the "network" section for your "sta" interface.

Greybear wrote:

I'm tríing to replace an old edimax wifi router with an asus wl500gp and kamikaze. The tasks it must do:
1) Connect to a wireless AP
2) Work as an AP, in the same network as the other AP (bridging)
3) The LAN ports should be in the same network as the wifi iface

I'm tríing to put it togeter but with no success. I have read this: http://wiki.openwrt.org/Repeater but if i connect to the kamikaze box, i cannot get an ip address. However kamikaze links together with the other AP, i have internet access on it.

I would appreciate any help on this.

/etc/config/network:
#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0


and /etc/config/wireless:
config wifi-device  wl0
        option type     broadcom
        option channel  5


config wifi-iface
        option device wl0
        option mode     sta
        option ssid     MyhomeAP
        option encryption psk
        option key      Gepzsir



What am i doing wrong?

Thx

Are you succsessfully using this in client mode right now? If so, what release of Kamikaze are you using? 7.09 or trunk?

Client-mode does not work with OpenWrt.

forum2008 wrote:

Client-mode does not work with OpenWrt.

I have 5 routers to prove you wrong.

posix wrote:
forum2008 wrote:

Client-mode does not work with OpenWrt.

I have 5 routers to prove you wrong.

How does your setup differ from above, if at all?

The discussion might have continued from here.