chvdr
11-19-2009, 11:21 PM
Hello guys,
This article I wrote several days before. It's for my own usage, I have to tell my colleagues how to install routerstations, it's my job to do that.
It simply says how to install rs in a short easy steps. If administrators think that it's helpful, let them use for a wiki or whatever. I try to add in a wiki page of ubnt, but not rules to do that... Now our office will use it every time when have to install rs.
How to install PyCI on routerstation
1. PREPARATION. What we need before we start?
Computer (of course), with ip-address 192.168.1.254/24. If computer
uses Internet thru another interface, fill ipaddress and netmask
only. Leave gateway and DNS settings blank.
Attach that interface of your computer to the PoE interface of
routerstation.
Create directory on your computer with tftp client (if you do not
know what it means or even where to find, ask google). Also ask to
find latest PyCI latest bynaries. At the moment this is
pyci_mostly_minimal-ar71xx-ubnt-rs-squashfs.bin - I found it browsing
ubnt.com, but it's easy reachable ewerywhere.
2. FLASHING IMAGE.
Open XTERM console and ping 192.168.1.20
Power off the router by unplugging PoE cable from it.
Press and hold reset button and DO NOT LET GO. Connect the WAN/POE
cable. Watch the blinking lights ;-)
The normal 3 LED dance will start. But if you are still holding the
reset button, eventually, the WAN LED will light and then the RF LED
will light. The lit RF LED is your indication that the system is now
in debrick mode (assuming you removed the radio cards). You can let
go now.
In a few (approx 6-8) seconds, you will see replies from 192.168.1.20.
In the 3d xterm box, do the following:
tftp -i 192.168.1.20 put pyci_mostly_minimal-ar71xx-ubnt-rs-squashfs.bin
Once the file is transferred, it will take another few seconds to
write it to memory (be pationed here). But shortly, you should see
the pings to 192.168.1.20 stop and the LEDs indicating a reboot is in
progress.
Now we wait ... and wait ... and wait ... and suddenly our ping
should start up. During this time, OpenWRT was performing its initial
JFFS install and other one-time preparations, hence the wait.
So, wait ROUTER BE AUTO REBOOTED TWICE. It takes usually 3-5 minutes.
At this point you've successfully reflashed your Routerstation and can
telnet into it (assuming a standard OpenWRT build) and begin
configuration.
3. LOGIN.
Last term said all but let's explain recently. When I tried to fix a rs
for a first time there was nobody to tell me how. What is a problem?
We made flash of the rs successfully. But...
Now PyCI is untouchable. No web, no ssh. Id est, there IS web, but
it is a ssl one. And there IS ssh, but both cases it not recognizes
user name or/and password.
Here is a trick: login onto rs by telnet. Use open xterm console.
telnet 192.168.1.20...
Login with no username and password. Your'e in. Change password to
some desired using:
blah~# passwd
Now you are ready to login by ssh or web with username root and
just set password.
Just keep in mind that web is a ssl, i.e. web address of the rs is:
https://192.168.1.20 (not http://192.168.1.20).
That's all. Now you are ready to config rs. But if You need that
guide and if read it, better read some "how-to-configure" first.
Go to ubnt home site, find right howto or use google for that
and... go ahead.
This article I wrote several days before. It's for my own usage, I have to tell my colleagues how to install routerstations, it's my job to do that.
It simply says how to install rs in a short easy steps. If administrators think that it's helpful, let them use for a wiki or whatever. I try to add in a wiki page of ubnt, but not rules to do that... Now our office will use it every time when have to install rs.
How to install PyCI on routerstation
1. PREPARATION. What we need before we start?
Computer (of course), with ip-address 192.168.1.254/24. If computer
uses Internet thru another interface, fill ipaddress and netmask
only. Leave gateway and DNS settings blank.
Attach that interface of your computer to the PoE interface of
routerstation.
Create directory on your computer with tftp client (if you do not
know what it means or even where to find, ask google). Also ask to
find latest PyCI latest bynaries. At the moment this is
pyci_mostly_minimal-ar71xx-ubnt-rs-squashfs.bin - I found it browsing
ubnt.com, but it's easy reachable ewerywhere.
2. FLASHING IMAGE.
Open XTERM console and ping 192.168.1.20
Power off the router by unplugging PoE cable from it.
Press and hold reset button and DO NOT LET GO. Connect the WAN/POE
cable. Watch the blinking lights ;-)
The normal 3 LED dance will start. But if you are still holding the
reset button, eventually, the WAN LED will light and then the RF LED
will light. The lit RF LED is your indication that the system is now
in debrick mode (assuming you removed the radio cards). You can let
go now.
In a few (approx 6-8) seconds, you will see replies from 192.168.1.20.
In the 3d xterm box, do the following:
tftp -i 192.168.1.20 put pyci_mostly_minimal-ar71xx-ubnt-rs-squashfs.bin
Once the file is transferred, it will take another few seconds to
write it to memory (be pationed here). But shortly, you should see
the pings to 192.168.1.20 stop and the LEDs indicating a reboot is in
progress.
Now we wait ... and wait ... and wait ... and suddenly our ping
should start up. During this time, OpenWRT was performing its initial
JFFS install and other one-time preparations, hence the wait.
So, wait ROUTER BE AUTO REBOOTED TWICE. It takes usually 3-5 minutes.
At this point you've successfully reflashed your Routerstation and can
telnet into it (assuming a standard OpenWRT build) and begin
configuration.
3. LOGIN.
Last term said all but let's explain recently. When I tried to fix a rs
for a first time there was nobody to tell me how. What is a problem?
We made flash of the rs successfully. But...
Now PyCI is untouchable. No web, no ssh. Id est, there IS web, but
it is a ssl one. And there IS ssh, but both cases it not recognizes
user name or/and password.
Here is a trick: login onto rs by telnet. Use open xterm console.
telnet 192.168.1.20...
Login with no username and password. Your'e in. Change password to
some desired using:
blah~# passwd
Now you are ready to login by ssh or web with username root and
just set password.
Just keep in mind that web is a ssl, i.e. web address of the rs is:
https://192.168.1.20 (not http://192.168.1.20).
That's all. Now you are ready to config rs. But if You need that
guide and if read it, better read some "how-to-configure" first.
Go to ubnt home site, find right howto or use google for that
and... go ahead.