newbee installer stuck at connection to home router.

Posted by suzukishoes 
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
newbee installer stuck at connection to home router.
January 23, 2013 10:14AM
Hi Folks

I've been following all the steps to an install (figured out Putty!) & think everything is as it should be. I've connected my device (MR3020) to my external router. In my connections window on my computer I have my home connection & one called "OpenWrt" showing.
I've connected to my home connection but seam to have no way to communicate with the MR3020. Do I do this in Putty (I'm running windows 7) neither to CMD or Putty can do anything!

I used numerous IP address, from numerous posts on the forum, but am completely confused!

(incidentally my home router is a technicolour TG582n Pro, running through a BT Openreach echolife HG612 to fibre optic. Not even sure why I have two boxes in all honesty!)

Lee
Re: newbee installer stuck at connection to home router.
January 23, 2013 10:46AM
I have established that the technicolor tg582n is on IP address 192.168.1.254 as I can open it in a browser & see all its settings ect. But still haven't a clue how to find the MR3020, but am working away in a headless manor!
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:05AM
My router ip was: 192.168.1.254
My Laptops ip: 192.168.1.193
I set the 3020 to: 192.168.1.77 <--------You can set this to anything you want as long as it's in the 192.168.1.xxx range

After I edited the network settings and firewall and right before I installed the piratebox script. I tried to ping Google
but no go and thats what I figured would happen. So I shut down my 3020 and connected it to me home router
(NOTE: You need to wait a good 3 min for the 3020 to boot) after that I SSHed into it and could ping Google
so I proceeded to install the piratebox software with no issue.

Also when 3020 is connected to router you should be SSHing to the IP you set.
In my case that is 192.168.1.77



Edited 1 time(s). Last edit at 01/23/2013 11:09AM by Ubuntulover.
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:09AM
how do I set the 3020 to 192.168.1.77? also looking at the control panel for the home router its not showing anything connected to ethport 1 (where I plugged the 3020) but is showing ethports 2 & 3 (computer & ip camera) however all 3 lights are on so show cables plug in (if that makes sence)

Lee
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:13AM
The modified file should look like this:

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.100' <-----------The IP address you want 192.168.1.77
option netmask '255.255.255.0'
option gateway '192.168.1.254' <--------your routers IP
list dns '192.168.1.254' <--------Same here
list dns '8.8.8.8'
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:30AM
thanks Ubuntulover, I can't find a way of opening the 3020. I've tried connecting to it through Putty, using 192.168.1.1 as I did when I was doing all the changes yesterday but I return an error

"network error; No route to host"

I've read the "have I bricked" posts, please tell me I haven't done that on the first attempt!

Lee
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:38AM
Do you remember your config info?

Post me what you put into that network file when you first edited it.

If you can remember
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:45AM
I got that message the first time as well "network error; No route to host"
But it was because I did not wait a few min for it to boot fully.

Maybe you might want to think about starting from scratch. You may have messed up some vital configs
without knowing.

See if you can redo the whole thing do some reading. If you can get back to stage one I can help you with Team Viewer.

Let me know



Edited 1 time(s). Last edit at 01/23/2013 11:47AM by Ubuntulover.
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:48AM
config interface ‘loopback’
option ifname ‘lo’
option proto ‘static’
option ipaddr ‘192.168.0.264’
option netmask ‘255.0.0.0’
config interface ‘lan’
option ifname ‘eth0’
option type ‘bridge’
option ipaddr ‘192.168.15.11’
option netmask ‘255.255.255.0’
option gateway ‘192.168.0.254’
list dns ‘192.168.0.254’
list dns ‘8.8.8.8’

over night I rebooted everything, so the ips may have changed????
Re: newbee installer stuck at connection to home router.
January 23, 2013 11:50AM
Ok you are aware that you need to SSH to 192.168.0.11 <------This IP right?

option ipaddr ‘192.168.15.11’ <---- This needs to be 192.168.0.11
option netmask ‘255.255.255.0’
option gateway ‘192.168.0.254’
list dns ‘192.168.0.254



Edited 2 time(s). Last edit at 01/23/2013 11:53AM by Ubuntulover.
Re: newbee installer stuck at connection to home router.
January 23, 2013 12:00PM
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 ipaddr ‘192.168.0.264’
option netmask ‘255.255.255.0’
option gateway ‘192.168.0.254’
list dns ‘192.168.0.254’
list dns ‘8.8.8.8’

sorry i miss typed that one previously should have read like this, but I typed in 192.168.0.264 into Putty & returned "host does not exist" is this because the computer has a new ip because its been rebooted? can I do something else to connect to it?
Re: newbee installer stuck at connection to home router.
January 23, 2013 01:14PM
Grrrrrrrrrrrr gone round & round in circles this morning. if only I'd not rebooted my computer! I think the ip address things possibly the problem.
I think if I was starting with a fresh tp-3020 I've learnt enough to do the install successfully but since I don't have a new one anymore I'm in a muddle!

sad smiley

Lee
Re: newbee installer stuck at connection to home router.
January 23, 2013 02:57PM
Hi,
can you please summeraize where are you currently stuck? I lost the overview during the posts smiling smiley

Matthias
Re: newbee installer stuck at connection to home router.
January 23, 2013 03:40PM
Hi Matthias

basically I started the install yesterday. not realising I had to connect the tp-3020 to my router. Up to that point i'd been following Pabell's install guide & everything had gone perfectly to that point.

I switched everything off (at work) & went home & did some more reading & established I needed to connect the tp-3020 to the router, so I came in full of beans this morning.

However as in the first post

Quote
Lee
I've connected my device (MR3020) to my external router. In my connections window on my computer I have my home connection & one called "OpenWrt" showing.
I've connected to my home connection but seam to have no way to communicate with the MR3020. Do I do this in Putty (I'm running windows 7) neither to CMD or Putty can do anything!

I used numerous IP address, from numerous posts on the forum, but am completely confused!

(incidentally my home router is a technicolour TG582n Pro, running through a BT Openreach echolife HG612 to fibre optic. Not even sure why I have two boxes in all honesty!)

& thats pretty much where I'm at. I think Ubuntulover has established I have ip conflicts, Ihave been trying things ALL DAY to resolve it but simply can't comunicate with the mr3020 in any way shape or form.

I even tried this [github.com]

But couldn't get my computer to boot in anything other than its own operating system.

to conclude, I've done all the openwrt stuff, with the exception of the online bit & now I've hit a brick wall!



Edited 1 time(s). Last edit at 01/23/2013 03:41PM by suzukishoes.
Re: newbee installer stuck at connection to home router.
January 23, 2013 03:54PM
hi,

well at first: stay cool smiling smiley

What is you homenet IP-range? What IP does your computer have? What your router?
that is what I'm missing

regards
Matthias



Edited 1 time(s). Last edit at 01/23/2013 03:54PM by Matthias.
Re: newbee installer stuck at connection to home router.
January 23, 2013 04:25PM
I have now switched to a net book so I can do this at both home & work, so the ip address for this netbook is

192.168.1.74

my router is

technicolour TG582n Pro, running through a BT Openreach echolife HG612 to fibre optic

to the question "What is you homenet IP-range?" how do I find this out?

THANKS FOR THE HELP! I'm NOT going to be able to do this without your help!

Lee
Re: newbee installer stuck at connection to home router.
January 23, 2013 04:30PM
suzukishoes Wrote:
-------------------------------------------------------
> 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 ipaddr ‘192.168.0.264
> option netmask ‘255.255.255.0’
> option gateway ‘192.168.0.254’
> list dns ‘192.168.0.254’
> list dns ‘8.8.8.8’
>
> sorry i miss typed that one previously should have
> read like this, but I typed in 192.168.0.264 into
> Putty & returned "host does not exist" is this
> because the computer has a new ip because its been
> rebooted? can I do something else to connect to
> it?

I could be off here, but it looks like you assigned 192.168.0.264 to your 3020 router. That is not a valid IP address, as all those numbers need to be less than 255. Can you get back into the router and edit the config file that you retyped above? Give it a good IP address, save the config file, reboot and see if that works. If anyone on the forum says I am wrong, then believe them and not me.
Re: newbee installer stuck at connection to home router.
January 23, 2013 04:33PM
I've no doubt your probably right, but I can't get back into the router & thats the BIG issue I've been trying to sort out all day.
Re: newbee installer stuck at connection to home router.
January 23, 2013 04:36PM
Pirate's Parrot is right.

run the command "ipconfig" in a command-box and please post the output.


The plan is

1. boot you MR3020 into failsafe mode
2. setup you netbook to a valid IP 192.168.1.x to get telnet access to your MR3020
3. telnet MR3020 and make filesystem writable, fix network config
4. reboot your mr3020, connect it to your router
5. reconfigure your netbook
6. telnet the mr3020 to the given IP from step 3.
Re: newbee installer stuck at connection to home router.
January 23, 2013 04:39PM
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\home>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : lan
Link-local IPv6 Address . . . . . : fe80::6539:20c6:190c:e18a%11
IPv4 Address. . . . . . . . . . . : 192.168.1.74
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.lan:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : lan

Tunnel adapter isatap.{7E62B7E0-7E44-4766-A2A0-744329C5DBD4}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{7E565C43-ED1B-4E29-A8D6-D436BEA5125E}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 14:

Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:3ca8:1975:3f57:feb5
Link-local IPv6 Address . . . . . : fe80::3ca8:1975:3f57:feb5%30
Default Gateway . . . . . . . . . : ::

Tunnel adapter isatap.{B786E8F4-8206-4AF8-807D-9D9BE18FC238}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

C:\Users\home>
Re: newbee installer stuck at connection to home router.
January 23, 2013 04:49PM
Fastly written down:

1. boot you MR3020 into failsafe mode
- do it like in [github.com] described
- stop at the howto, when the MR3020 start to flash very fast.


2. setup you netbook to a valid IP 192.168.1.x to get telnet access to your MR3020
- go to your network setup of your machine
- go to wired (!) connect
- enter the following values as a static IP
IP 192.168.1.2
Mask (netmask) 255.255.255.0

- Leave everythin else blank
- Switch off wifi (if your current connection is via WIFI active)
- connect your netbook to your MR3020 using a ethernet calbe.

3. telnet MR3020 and make filesystem writable, fix network config
- try with putty reaching
(x) telnet
ip: 192.168.1.1
- connect
- Works this???
- if yes, run the following commands:

  mount_root
  vi /etc/config/network

Please adjust the following settings:


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 ipaddr ‘192.168.1.22’ 
   option netmask ‘255.255.255.0’ 
   option gateway ‘192.168.1.254’ 
   list dns ‘8.8.8.8’


4. reboot your mr3020, connect it to your router
-type into your telnet terminal
sync
reboot -f


5. reconfigure your netbook
- undo your changes (setup everything back to "automatically" (or DHCP)
- this is very important!
- I assume, that you was connected via wifi to your homelan, so activate that again

6. telnet the mr3020 to the given IP from step 3.
- try with putty reaching
(x) telnet
ip: 192.168.1.22
- connect
Re: newbee installer stuck at connection to home router.
January 23, 2013 05:12PM
You is the man!

THANK YOU SO MUCH, we have progress!

I got into telnet!

however after typing mount_root I returned this. is it ok to proceed?

Quote
lee
root@(none):/# mount_root
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: set_jffs_mp: not found
/sbin/mount_root: line 1: determine_root_device: not found
/sbin/mount_root: line 1: can't create /.extroot.md5sum: Read-only file system
switching to jffs2
root@(none):/# vi /etc/config/network


E325: ATTENTION
Found a swap file by the name "/etc/config/.network.swp"
owned by: root dated: Thu Jan 1 01:12:29 1970
file name: /etc/config/network
modified: YES
user name: root host name: OpenWrt
process ID: 1644
While opening file "/etc/config/network"
dated: Thu Jan 1 01:34:07 1970
NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/config/network"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/config/.network.swp"
to avoid this message.
"/etc/config/network" 16L, 359C
Press ENTER or type command to continue
Re: newbee installer stuck at connection to home router.
January 23, 2013 05:15PM
end the Vi using command 1 oder 2

run

rm /etc/config/.network.swp

then rerun vi command
Re: newbee installer stuck at connection to home router.
January 23, 2013 08:22PM
suzukishoes Glad to see your up and running winking smiley
Re: newbee installer stuck at connection to home router.
January 24, 2013 09:35AM
Matthias Wrote:
-------------------------------------------------------
> end the Vi using command 1 oder 2
>
> run
>
>
> rm /etc/config/.network.swp
>
>
> then rerun vi command


when I typed rm /etc/config/ .network.swp

I returned an error in a red block saying :- E492: Not an editor command: rm /etc/config/ .network.swp

I didn't quite understand your reply, can you explain it a little more for me, now I'm at this stage I am reluctant to do anything wrong!

Lee
Re: newbee installer stuck at connection to home router.
January 24, 2013 09:37AM
then you are still at the editor
You should leave VI with

:q!


and then run

rm /etc/config/.network.swp

and then

vi /etc/config/network

again
Re: newbee installer stuck at connection to home router.
January 24, 2013 01:42PM
oh, well done! Congratulations for your first piratebox smiling smiley

thumbs up
Re: newbee installer stuck at connection to home router.
January 25, 2013 05:19PM
Thanks in advance for the Help! I am a newbie. Mac user on OS10.8

My home router has ip of 192.168.1.1 So I think I have to edit my network file based on the NOTE after step 10 on DIY page.
After I ran vi /etc/config/network I got different LAN output:

config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'

Then nine lines of a single tildas then

"/etc/config/network" 14L, 280C

Where do I go from here? Do I edit the network file? Is so How?
Re: newbee installer stuck at connection to home router.
January 26, 2013 01:00PM
Re: newbee installer stuck at connection to home router.
January 28, 2013 05:23PM
Vi cheat sheet. Ok.

I've rebooted the TP-Link router with the intention of using vi to edit the TP-Link's ip. Now when I try telnet 192.168.1.1, I get connection refused. I made it all the way to step #10 my first time out. Any ideas? Really trying to get this PirateBox rockin

MacBook-Pro:~ jsoul$ telnet 192.168.1.1
Trying 192.168.1.1...
telnet: connect to address 192.168.1.1: Connection refused
telnet: Unable to connect to remote host