OpenWrt Forum Archive

Topic: [HELP] How to configure TP-Link WA830RE as Router WiFi

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

Hey there, i'm trying to configure my repeater as a simply router wifi.
i ve a cable-modem ISP. with an Arris modem, which i can't configure.

i've installed Openwrt on my RE and works fine, i could creat de wifi network, but can't connect to the internet,
i've tryed everything, and read a lot, i need some help, y couldn't find someone that has configured the same as me.

Thanks a lot!!!

federico.gallo wrote:

Hey there, i'm trying to configure my repeater as a simply router wifi

simply router, by default after flash or after factory default, just turn on wifi, add security and its a router.
what did you flashed Trunk, Attitude  Adjustemet or Barrier Braker

Chaos Calmer...
how do i get back to default every configuration?
or how do i reinstall the firmware?

(Last edited by federico.gallo on 13 Nov 2014, 20:16)

federico.gallo wrote:

Chaos Calmer...

install LuCi web interface
opkg update
opkg install luci
/etc/init.d/uhttpd restart
/etc/init.d/uhttpd start
/etc/init.d/uhttpd enable

i can't install luci, there's no memory available for it... i've already try

ok you might have to go back to stock, from here ftp://tplink-forum.pl/orgin_bez_boot/ download a stripped fw for your 830 make sure you have a Version 2
2 Download and install WinSCP (http://winscp.net);
3 Download corresponding firmware from ftp://tplink-forum.pl/orgin_bez_boot/
4 Download putty (http://www.putty.org/)
5 On WinSCP:
5.1 Select New Site;
5.2 File protocol: SCP;
5.3 Hostname: 192.168.1.1 (or your router IP);
5.4 Username: root
5.5 Password: your admin pass
5.6 Drag downloaded firmware from Download folder and drop in /tmp
5.7 (Important, I think...) On Transfer Settings, select Binary
5.8 Transfer;
6 On putty;
6.1 Login on 192.168.1.1 (user root and pass);
6.2 Type:
cd /tmp (Enter)
mtd -r write xxxxx.bin firmware (Enter) (Sure, replace xxxx with your firmware filename...)
8 Use at your own risk. (I cannot confirm if it will work on your model, router, etc.)
I dont know if instead of flashing stripped FW to go back to stock will be the same to flash Barrier Braker it has LuCi and if yes I dont know if you use the Factory or Sysupgrade logic to me is Sysugrade you can get the file from here http://downloads.openwrt.org/barrier_br … x/generic/
Some one with experience will have to answer my doubts.

(Last edited by danymarc on 13 Nov 2014, 21:02)

i could try that, but i dont think it'll work.
i've tryed this: http://wiki.openwrt.org/es/doc/howto/generic.flashing
and i realized that i have no left space to add something to the memory of the wa830re

btw thanks very much for your answers, i'll try that now

With that method you are not adding any to the router it will be on Temp folder read step 5.6

(Last edited by danymarc on 13 Nov 2014, 21:16)

OK i did it... i reinstalled the firmware
i used this one: https://downloads.openwrt.org/barrier_b … actory.bin
but i copied using ssh from my pc like this:

 fede@fede-ITeDA:~/Descargas$ scp openwrt-ar71xx-generic-tl-wa830re-v2-squashfs-sysupgrade.bin root@168.96.255.53:/tmp 

now im back to original openwrt...
i changed ipaddr entering here, so i could enter from another pc in the network

 vi /etc/config/network 

so now, you were saying i should only enable wifi???

i enabled wifi ...
and added to /etc/config/network the following:

network:
config interface 'wan'
        option ifname 'wlan0'
        option proto 'dhcp'

(Last edited by federico.gallo on 13 Nov 2014, 22:17)

For cable ISP you would set the WAN to DHCP Client.  A common rookie mistake is not realizing that the cable modem gave you an address of 192.168.1.x.  The WAN IP and the LAN IP have to be different subnets-- or everything will seem to work except that you cannot reach the Internet.  If this is the case, since you can't reconfigure the modem, change your LAN subnet to something different, such as 192.168.2.1.

mk24 wrote:

change your LAN subnet to something different, such as 192.168.2.1.

Very good point, but in his case on #1 he posted Arris modem that one has Gateway 192.168.0.1

i cant change anything in the arris modem... LAN from arris modem is sth like 192.168.0.x
i dont understand how should i configure my wan and lan in the openwrt router
the router is conected to the modem via ethernet, andi can acces it via

 ssh root@192.168.0.254 

if i change lan subnet from the router i wouldn be able to acces it...

so i'm pretty fucked up haha. this shouldn't be that difficult ... i feel like an idiot

OK, it appears that you are looking for an Access Point, not a router setup.

The main rule here is to turn OFF the DHCP Server in your OpenWrt router device.  You are using it as an Access point which means that you let the router function built into the modem do all address assignments and routing.  After you connect a PC wirelessly, you should see that it has Gateway 192.168.0.1 (the modem/router) and not Gateway 192.168.0.254 (the AP)  (The AP IP is used only for administration.)  Your client PC should also pick up the DNS settings from the cable modem/router, which will be somewhere in the cable company and/or 192.168.0.1.

Also you need to be sure that the wifi0 and eth0 are bridged on the same network.  You should be able to ping the cable modem/router at 192.168.0.1 from a wifi PC.

----

If instead you want to actually route with OpenWrt (which has some advantages and disadvantage), then you would--
WAN (ethernet) and LAN (wifi) separate networks with separate subents
DHCP Server on LAN
DHCP Client on WAN

The main disadvantage is that since the 830 only has one Ethernet port, all your LAN clients will have to be on the wireless side.  They would be isolated from anything plugged into the modem/router.  If you want to have wired and wireless users all in the same LAN you would instead do the Access Point setup described in the first part.

(Last edited by mk24 on 14 Nov 2014, 00:38)

Thanks mk24!
it's the second part, exactly like you said.
now it works perfect!

The configuration now is something like.
ISP => Modem Arris => Ethernet LAN 192.168.0.x
WA830RE with openwrt => conected from it's ethernet port to the modem.
LAN config for the router is now ipaddr '192.168.1.1'

i have wifi and internet conection, like a boss....
the problem now, is that the router gave me, ipaddres 192.168.0.x ... so i can't acces the router anymore.
im gona restart the dhcp client, and tell you about it

You just need to disconnect and reconnect your PC by wifi, so it will re-DHCP a 192.168.1.x.  Then access the TP-Link at 192.168.1.1.

The default routing table should let you access the modem at 192.168.0.1 (not that you would often need to, if you don't have admin access to it), but anything else that may be plugged in to other ports on the modem via ethernet will not be accessible over the wifi.

(Last edited by mk24 on 14 Nov 2014, 01:03)

mk24 wrote:

You just need to disconnect and reconnect your PC by wifi, so it will re-DHCP a 192.168.1.x.  Then access the TP-Link at 192.168.1.1.

The default routing table should let you access the modem at 192.168.0.1 (not that you would often need to, if you don't have admin access to it), but anything else that may be plugged in to other ports on the modem via ethernet will not be accessible over the wifi.

i did that, i reboot also.
i tried

 /etc/init.d/dnsmasq restart 

to restart dhcp but still didn't work

in my /etc/config/network, it says

 
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 'fddb:db5d:8b43::/48'

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

config interface 'wan'
        option ifname 'wlan0'
        option proto 'dhcp'

is it everything ok?
how do i set
DHCP Server on LAN
DHCP Client on WAN
???

No, that is not right.  'lan' should be the wifi and 'wan' the eth.  Double-check in /etc/config/wireless that the wifi is also option network to lan not wan.  You don't need the option bridge line since there is only going to be one interface on lan but there is probably no harm in leaving it in.

Since you know your modem is always going to be 192.168.0.1, you can set wan to a static IP in the 192.168.0 range but you also need to configure (in section 'wan')
    option gateway '192.168.0.1'
    option dns '192.168.0.1'
so that it knows how to get to the Internet.

I usually do everything possible over luci so command line stuff is pushing the limits of my knowledge.

I think the key to making a DHCP server is in /etc/config/dhcp, where you should have something like this:

config dhcp 'lan'
    option interface 'lan'
    option dhcpv6 'server'
    option ra 'server'
    option ra_management '1'
    option start '100'
    option limit '150'
    option leasetime '12h'

so it will give your wifi users an address between 192.168.1.100 and 192.168.1.250.  Do not have an option ignore line in there, because as the name suggests, that will shut down the server.

(Last edited by mk24 on 14 Nov 2014, 01:54)

i couldn't install luci because of lack of memory :'(
im gona try what you said... and tell you in a moment

federico.gallo wrote:

OK i did it... i reinstalled the firmware
i used this one: https://downloads.openwrt.org/barrier_b … actory.bin

@federico.gallo on post 11 I all ready told you you have LuCi installed, when you did what is quoted

i've had another problem now. i changed "option proto" in wan & lan ...
in /etc/config/network ... i set LAN as proto 'dhcp' and WAN as 'static'. i think i messed things up
now i can't acces the router... my pc is in the same network as the router but won't acces.

@danymarc i didn't install the firmware you said to me, i used the one i found in openwrt...

PC is 192.168.1.2 and to log into router 192.168.1.1 they have to be in same subnet dif ip as this example if can't log then
Failsafe http://wiki.openwrt.org/doc/howto/generic.failsafe to enter Failsafe mode No lan cables have to be connected only power, once you get the fast blink then connect LAN cable

(Last edited by danymarc on 17 Nov 2014, 20:28)

Finally i managed to install a new firmware!
i compiled my own trunk openwrt with some help of a friend!
i uploaded it to dropbox, here is the link: https://www.dropbox.com/sh/68c27jf6bsko … KfB7a?dl=0
it's optimized for a TP Link WA830RE V2 - i added Luci so it's ready to use with web interface

Thanks for your help!

(Last edited by federico.gallo on 26 Feb 2015, 02:25)

The discussion might have continued from here.