OpenWrt Forum Archive

Topic: Bridge ethernet to wifi

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

I'm trying to use my Meraki AP as a pseudo-wifi card.  What I mean is I want to connect my old PC through it's network card to my meraki.  I want the meraki to act as a bridge to the my wireless AP and get the old PC an ip address and a connection to the internet. 

[Internet] <-->  [Modem] <--> [Standard AP] <--> ath0 : Meraki OpenWRT : eth0 <--> Desktop

Is something like this possible?  I've read about a wet mode, but can't find much documentation about it.  It seems to be for white russian only.

I have successfully got the Meraki ath0 to get an ipaddress from the AP, but I can't figure out how to bridge (if that's what I need to do) eth0 with ath0.  If anyone has any ideas, or can point me to a place in the wiki, forums, etc that explains what to do, I'd appreciate it.

Thanks

I tried your suggestion but it didn't work.   

My /etc/config/network file:

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

config interface lan
        option ifname   eth0
        option type     bridge
        #option proto   dhcp
        option proto    static
        option ipaddr   10.0.0.1
        option netmask  255.255.255.0

and my /etc/config/wireless file:

config wifi-device  wifi0
        option type     atheros
        option channel  11

config wifi-iface
        option device   wifi0
        option network  lan
        option mode     sta
        option ssid     mySSID
        option encryption wep
        option key '1'
        option  key1 'mykey'

This is pretty much the client code from your link, but it didn't work as I expected... What actually happened is that the wifi sta no longer gets an ip address, AND the eth0 doesn't get one either.

If you see anything I did wrong or have another suggestion, I'd love to hear it.  I can't for the life of me figure out what's going on.

Thanks

The discussion might have continued from here.