OpenWrt Forum Archive

Topic: Atheros WDS works, but no internet on the remote wireless client

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

Hi all

So, two days ago, following the wiki, I've set up WDS between two Atheros routers of mine. (TP-Link TL-WR842ND as the AP, TP-Link TL-WR703n as the client.) Surprise, from practical point of view it worked like a charm at first try; the bridged hosts see both the internet and LAN, and vica versa.

Now, my problem is that the W-LAN client (TL-WR703n) does see the LAN, but doesn't see the internet. No package installation, no NTP, no ping outside, nothing.
I see that people are googling for 'openwrt wds no internet' and similar, so it might not only me who has this issue. Unfortunately I couldn't find any solution so far.

Could anyone tell me what's wrong / how to solve this problem?
Or at least a hint if it is really a common problem?
Should I simply go for relayd?

Thank you in advance

root@703ap:~# cat /etc/config/network 

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

config globals 'globals'
    option ula_prefix 'fdab:0e11:e8bd::/48'

config interface 'lan'
    option ifname 'eth0'
    option force_link '1'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.202'
    option netmask '255.255.255.0'
    option ip6assign '60'

root@703ap:~# cat /etc/config/wireless 
config wifi-device  radio0
    option type     mac80211
    option channel  '11'
    option hwmode    11ng
    option path    'platform/ar933x_wmac'
    option htmode    'HT40-'
        option macaddr '14:cf:92:ba:58:47'

        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'
        option country 'HU'
        option txpower '20'

config wifi-iface
    option device   radio0
    option network  lan
    option mode     sta
        option wds '1'
        option ssid 'TP-LINK'
        option encryption 'psk2'
        option key 'foobarbaz'

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option wds '0'
        option ssid 'TP-LINK'
        option encryption 'psk2'
        option key 'foobarbaz'

which openwrt version do you use?

Looks like the same common issue when setting up an Access Point. If static IP configuration is being used, the gateway for accessing the internet (the main router's ipaddr) must be specified with:

option gateway '192.168.1.x'

under
config interface 'lan'

Thank you, AndreL

I've elaborated the network config with

AndreL wrote:

option gateway '192.168.1.x'

but it didn't solve my issue... (Of course with the IP od the AP. Restarted the network stack, and later even the router.)
Do you have perhaps some other ideas, too?

For the W-LAN to access the internet, its IP config needs to look like a normal host config. Perhaps comparing the results of
ip addr show
and
ip route show
from the W-LAN client and from another (working) host on the network will show any differences.

By experimenting, after adding a hateway I can ping external pages by IP. So some DNS related problem remains.
The WDS@Atheros wiki says

If this is a new OpenWrt setup, a DHCP server is enabled on the lan interface of the device by default. This needs to be disabled before the device is connected to the production network (assuming the production network already has DHCP set up). To do so, edit the /etc/config/dhcp file. Find the config dhcp 'lan' section and add the line option ignore '1' to this section. This will disable the DHCP server on the lan interface. (The lan DHCP section will look like the wan DHCP section, as the DHCP server is already disabled on the wan interface by default.)[On Chaos Calmer 15.05 / LuCI (git-15.248.30277-3836b45), I had to disable the DHCP6 server as well, by changing option dhcpv6 'server' to option dhcpv6 'disabled'. MariusMatutiae]

And this is what I exactly did. It is only suspicious since dns and dhcp is configured in the same file. The according wiki says amongst others

#Define your Domain and Domain Controllers IP address here.       
        option local '/example.local/192.168.1.X'**

The essence is that hosts.conf and resolv.conf come into the play here somehow. But since I'm illiterate (yet) I couldn't hack this information (yet?) together into a solution.

Any ideas if I'm off track?

Hi hurjup

You got it. There's also need for one or more DNS servers under config interface 'lan'. Take a look at the Protocol "static" config options here: https://wiki.openwrt.org/doc/uci/networ … col_static

list dns 'x.x.x.x'
list dns 'y.y.y.y'

I did yet the 'example.local' related part of https://wiki.openwrt.org/doc/uci/dhcp#c … n_services, and now DNS is working. Don't know why, though.
Edit - reverted the dhcp config, and only set resolv.conf, as

nameserver 208.67.220.220

and still working. Now I have to read after resolv.conf.

I'll try your recommendations too, though.
Thank you for your help!

The discussion might have continued from here.