having trouble on a tp link mr3020

Posted by pdrift 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
having trouble on a tp link mr3020
March 14, 2012 03:43PM
Hi everyone (first post)

After finding out about this amazing project I decided to make one myself. I ordered a TP-Link mr3020 from bestbuy
and it arrived the next day.

So I start going thru the procedure to convert it into my own piratebox but I messed up along the way.

I downloaded the openwrt firmware and flashed it.
I telneted into it and changed the passwd.
I started to edit the network file but vi got the best of me :-(
so I closed the terminal to retry editing the network config but now i cant connect to it anymore.

Telnet: unable to connect to remote host : connection refused

I've tried to power-off then on again the TP-Link mr3020 and ive even rebooted my computer but nothing works
how can i connect to it again to finish installing the neccessary files?
Is vi required for the procedure or is any editor sufficient?

I am trying to do this all on my netbook running lubuntu if that helps.



Edited 1 time(s). Last edit at 03/14/2012 03:45PM by pdrift.
Hi pdrift,

When you changed the root password. You must use ssh to connect with you tp-link.
If you don't like "vi" you can also install "nano" as you editor.

I hope it works.

Bye,

???
Re: having trouble on a tp link mr3020
March 14, 2012 09:31PM
Also, make certain that there are no wifi devices in the nearspace that might try to automaticly connect via wifi to the piratebox during setup. Until the final step, if a wifi device connects to the tp-link, then the tp-link forwards any ip address that it has received from your router to the connected device, so you can end up trying to log into your android phone or kindle, like I did.
Re: having trouble on a tp link mr3020
March 16, 2012 08:48PM
Thank you for your response smiling smiley

I was able to ssh into the TP-link with putty and I edited the network file
following the instructions here: [wiki.daviddarts.com]

I got to step 14 but now my netbook won't connect to the TP-link anymore..
I try connecting with putty but i get a "no route to host" error.

I've tried power cycling the TP-link and rebooting my netbook.
I'm pretty certain that I followed the steps correctly.
I made the changes using vi and saved the changes with :x
i then re-opened the file to verify the changes were made.

When it says the gateway router's ip, that means my home wifi router's ip right ? confused smiley
And it is necessary to have all those apostrphies right, i copied them exactly as in the instructions.

here is how my network config looks (err looked when I edited it)
my home router (gateway) has 192.168.1.2 as its ip address

----------------------------------------------------------------------------------------------------------
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 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option gateway '192.168.1.2'
list dns '192.168.1.2'
list dns '8.8.8.8'

config interface 'wan'
option ifname 'etho.1'
option proto 'dhcp'
option gateway '192.168.1.2'
option netmask '255.255.255.0'
list dns '192.168.1.2'
list dns '8.8.8.8'
-----------------------------------------------------------------------------------------------------------------



Edited 2 time(s). Last edit at 03/19/2012 03:16AM by pdrift.
Re: having trouble on a tp link mr3020
March 19, 2012 03:14AM
After following this thread [forum.daviddarts.com]
I figured out that I had made mistakes when i edited my network config file.
It seems that instead of putting in the gateway of my home router which is 10.2.2.1
I mistakenly entered its ip address instead which is 192.168.1.2

so in the tutorial all the fields that say 192.168.1.11 i entered 192.168.1.2 instead of 10.2.2.1

so now that I know my mistake... how can i reconnect to the mr3020 to re-edit the config and be
on my way to juicy piratebox goodness???

please help....
signed, a desparate pirate
Re: having trouble on a tp link mr3020
March 21, 2012 05:29AM
one of the IT guys at my job said I might be able to fix the mr3020 with a cross-over cable???
anyone care to shine some light on this?
Re: having trouble on a tp link mr3020
March 22, 2012 01:58PM
ok so after taking a break from this for a couple days I decided to give it another try..
last night I googled for more info and I found some really hepful stuff which allowed me
to get back into my mr3020...

in order for me to communicate with the mr3020, I had to
1. power it up with the switch in the on the wisp setting
2. wait until the wisp light turned on
3. then quickly move the switch to the 3g setting
4. if done correctly the wisp light should be blinking rapidly
5. I was then able to telnet into it at 192.168.1.1
6. since only the SquashFS partion was mounted it only had read acces
7. to get read/write access I needed to mount the JFFS2
8. so I typed mount_root
9. after that I was able to open the network,firewall, and wireless config files
10. I then reset my password to re-enable ssh by typing passwd

after taking another look at the network and firewall configs, I realized that I made several errors.
I fixed the errors (mostly spelling) and that fact that I was using my router's ip address instead
of gateway address. so here is what my home router's settings look like:

------------------------------------------------------
MAC Address: xx:xx:xx:xx:xx:xx
IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
DHCP Server: Enabled
Start IP Address: 192.168.1.100
End IP Address: 192.168.1.155
-------------------------------------------------------

here is my network config:

--------------------------------------------------------
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 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option gateway '10.2.2.1'
list dns '10.2.2.1'
list dns '8.8.8.8'

confiig interface 'wan'
option ifname 'etho.1'
option proto 'dhcp'
option gateway '10.2.2.1'
option netmask '255.255.255.0'
list dns '10.2.2.1'
--------------------------------------------------------

and here is my firewall config:

--------------------------------------------------------

config defaults
option syn_flood '1'
option input 'ACCEP'T
option output 'ACCEPT'
option forward 'ACCEPT'
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1

config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'

config zone
option name 'wan'
option network 'wan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'
--------------------------------------------------------------

so after making changes to the config files I still can't ssh into it after connecting it to my home router.

does this look correct or am I firgetting something?



Edited 2 time(s). Last edit at 03/22/2012 02:07PM by pdrift.
If your home network is on the 10.x.x.x private net, then I think the ip of your device should match.

Try changing

option ipaddr '192.168.1.1'

to an address on your home router's network.
Re: having trouble on a tp link mr3020
March 22, 2012 02:10PM
so do I make one up? i'm not really sure.
And thank you very much for taking a look and trying to help me out!!
Not sure, do you manage the router at 10.2.2.1? When I did it, my router was 192.168.23.1 so I just made the mr3020 192.168.23.2 for simplicity.

But you need to give the mr3020 a usable address on your home network so you can connect to the internet and download the packages.
Re: having trouble on a tp link mr3020
April 02, 2012 06:19PM
Hi again, well I still haven't managed to get this to work. I only get a chance to work on this every couple of days so today I have been trying to get my MR3020 running again.

Well I could never connect to the 3020 unless I used my netbook (running lubuntu) which I had went into the network connections and changed the ipv4 routing table ( on the netbook). I figured that if I had to change the routing table on the netbook to establish communication between the two... the the network config on the mr3020 had to of been borked worse than I thought. Also I could never ssh into it again after the first time, I had to telnet back in every time and mount_root just to be able to edit the configs with vi.
So today I think I managed to get something right because I now have the mr3020 connected to my home router and I was ablle to ssh into it on my desktop thats also connected to the same router. I can ssh root@192.168.1.125 into it, it asks for my password, I can use vi and edit the config, everything seems fine but I don't have a connection to the outside internet.
Whenever I try to ping google I get an error that says bad address.

I think that whats wrong with my network config is that maybe I have the dns wrong. Is the dns in the config supposed to be the same as the dns settings of my router?
Re: having trouble on a tp link mr3020
April 02, 2012 09:07PM
Hi,
be aware of rule #1
Don't play around with routing tables!
Rule #2
If you think you know what to do with routing, read your howto again
Rule #3
be aware of Rule #1

winking smiley So no routing-modifications are needed.

First check out which IP your homelan has! You can do this with using ifconfig or with windows ipconfig.
The complete howto is designed of the following rules:

1. No routing between you netbook (be aware of rule #1 ; )
2. Switching Network (ethernet, wired connection - not wifi!) between MR3020 <-> Laptop & MR3020 <-> homelan <-> Laptop

Failsave mode works EVER with MR3020 IP 192.168.1.1 with telnet or ( you broke your MR3020) or started the failsave mode not correctly.
SSH is only needed if you have set an password via passwd.

Ok, after you checked out your homeland IP, setup your MR3020 correctly:
choose a free ip of your homelan
set it to your MR3020 and take care of your gateway ip and dns entries.

There is only one option, why the internet access may not work: Your homelan has no direct internet access -- if this - no good luck; you have to a bit more stuff.

Please describe in detail what you've done and what you think to do.

Sorry for the harsh words, but it seems you know something about config, or you totaly mixes up the terminology.
Re: having trouble on a tp link mr3020
April 03, 2012 04:55AM
well I got it to work now after playing with the network file!!!!

After connecting to the PirateBox - Share Freely network, I had to type 192.168.1.1 on my phones browser to connect to it. Is that normal, I thought it should automatically redirect to the piratebox page.

I already tested out uploading files from my phone and some files actually stream right off the piratebox to my phone (lg optimus v cm7).. woohoo!!
Re: having trouble on a tp link mr3020
April 03, 2012 05:01AM
Great! Congratulations!
Did you reboot your piratebox?

Normally all files entered to browser should redirect to the welcome page
Re: having trouble on a tp link mr3020
April 03, 2012 02:25PM
Thanks... everything seems to be working fine now... I tried a different phone and it redirected correctly.

I plugged the flashdrive into my pc and added some mp3's pdf's and some videos. I organized everything into folders.
It would be nice to be able to download/upload multiple files but I am happy. Maybe some ftp support would be nice.
But I guess this project was meant to be simple so anyone could use it.
Hey guys,
I hope people still check this forum.

I was able to telnet into my tp-link in falesafe mode and ssh in wisp mode.
The problem that I ran into was that I couldn't ping google.com

So I changed my
option ipaddr '192.168.1.111' to '192.168.1.262'
option gateway '192.168.1.111' to '192.168.1.262'
list dns '192.168.1.111' to '192.168.1.262'

now I can not telnet or ssh into the tp-link. I have also tried to power cycle a couple of times.
I'm worried that I created a brick.

when I use ipconfig the tp-link shows

auto IPv4 Address 169.254.133.188
with no gateway.

Please help.
Re: having trouble on a tp link mr3020
November 11, 2012 11:20AM
192.168.1.262 is not a valid ip. You have to boot in failsafe mode again and change the ip to something between 192.168.1.1- 192.168.1.253 .

Matthias
Thanks Matthias for your response.

Before changing the ip I could telnet to the device in failsafe mode but after the fact the failsafe mode acts exactly the same as when Im not in failsafe mode. No telnet or ssh. Did I ruin the failsafe mode?
Re: having trouble on a tp link mr3020
November 11, 2012 09:19PM
no. Failesafe mode is anytime 192.168.1.1

You need to setup your computer to a fixed IP Adress like 192.168.1.2

Matthias
Im in!!!

Thanks man!
Hey Matthias I really appreciate your help.

I have moved on to updating and installing opkg and unzip

but I get this error

Installing unzip (5.52-1) to root...
Collected errors:
* verify_pkg_installable: Only have 100kb available on filesystem /overlay, pkg unzip needs 134
* opkg_install_cmd: Cannot install package unzip.

I have tried rm -rf overlay/*
then trying again but same error.

Any advice?
I am building this in a college dorm. I have managed to edit the network file according to my personal router. I am unable to ping google.com and thus I can not wget the piratebox download. Is it the fact that I'm doing this on campus preventing my internet access?

Thx
Re: having trouble on a tp link mr3020
November 12, 2012 07:46AM
How did you tried to install/update the stuff?
unzip should be installed to destination "piratebox" and not to root. That's how it is written in the install-script.

Nocrops Wrote:
-------------------------------------------------------
> Hey Matthias I really appreciate your help.
>
> I have moved on to updating and installing opkg
> and unzip
>
> but I get this error
>
> Installing unzip (5.52-1) to root...
> Collected errors:
> * verify_pkg_installable: Only have 100kb
> available on filesystem /overlay, pkg unzip needs
> 134
> * opkg_install_cmd: Cannot install package
> unzip.
>
> I have tried rm -rf overlay/*
> then trying again but same error.
>
> Any advice?
Re: having trouble on a tp link mr3020
November 12, 2012 07:47AM
This maybe.
Do your campus have a proxy?
Can you prove, that the direct access from your computer works ? (ping google)
College Internet Wrote:
-------------------------------------------------------
> I am building this in a college dorm. I have
> managed to edit the network file according to my
> personal router. I am unable to ping google.com
> and thus I can not wget the piratebox download. Is
> it the fact that I'm doing this on campus
> preventing my internet access?
>
> Thx
I am using reliance netconnect..ZTE AC2738 , i did set up the router but not able to connect it, kindly advice how to connect. i upgraded to firmware as per customer care suggestion.
I downloaded the new firmware , now I cont connect my router, is asking 4 a password for I can connect pls can u help me wit d password
Re: having trouble on a tp link mr3020
August 27, 2013 09:58AM
after flashing, you can only login via telnet
Re: having trouble on a tp link mr3020
August 13, 2014 09:07PM
Failsave mode with MR3020 doesnt work for me.
I try to push th button.
The lights are not very speed and Wisp/rester is not the only one flashing.
:'(
Am on mac/linux/win
I bricked?

thx a lot
Re: having trouble on a tp link mr3020
August 14, 2014 03:19PM
Is it already openwrt?
Does the wps light never start to flash regulary?


This is only my signature.