Advanced Commands

From MiOS
(Difference between revisions)
Jump to: navigation, search
m (Performance bottlenecks with network throughput)
m
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:User Instructions]]
+
<br> '''Here are some notes about commands for advanced users and developer'''s: <br>
[[Category:How To]]
+
  
'''Here are some notes about commands for advanced users and developer'''s: <br>
+
*Note: Telnet only works for outdated firmware versions of Vera.
* Note: Telnet only works for outdated firmware versions of Vera
+
  
== Telnet &amp; SSH ==
+
== Telnet &amp; SSH ==
=== Telnet ===
+
Telnet is enabled by default on Vera. With the network autoconfiguration left on, if Vera gets an internal IP address on the WAN port (i.e. any 192.168.x.x, or 172... or 10... address).<br>
+
Vera is put into 'switch' mode; all 5 ports are bridged together like a switch. In this mode you can telnet into Vera using the IP Vera gets from the WAN port.<br>
+
If you don't know it, go to [http://findvera.com findvera.com] and click 'Setup my Vera in my home' to be redirected. If Vera gets an external IP address on the WAN port, or no IP at all, Vera goes into Gateway mode.<br>
+
  
=== SSH ===
+
=== Telnet  ===
For more info on how to acces Vera through SSH please click [[Logon_Vera_SSH|here]]
+
  
=== Local acces ===
+
Telnet is enabled by default on Vera.&nbsp; With the network autoconfiguration left on, if Vera gets an internal IP address on the WAN port (i.e. any 192.168.x.x, or 172.x.x.x or 10.x.x.x address), Vera is put into 'switch' mode and all 5 ports are bridged together like a switch.&nbsp; In this mode you can telnet into Vera using the IP Vera gets from the WAN port.&nbsp; If you don't know it, go to [http://findvera.com findvera.com] and click 'Setup my Vera in my home' to be redirected.&nbsp; If Vera gets an external IP address on the WAN port, or no IP at all, Vera goes into Gateway mode.<br>
The firewall is enabled and the DHCP server is turned on. You cannot telnet into Vera using the IP on the WAN port; you must connect your PC to the LAN 1 through LAN 4 ports and telnet to 192.168.81.1 (the default IP for Vera). Note that even in switch mode Vera will still listen to IP 192.168.81.1, so you can always set your PC to a static IP in that range. Telnet uses the default port 23.  
+
  
* Note: Once you set a root password, telnet is disabled and you must use ssh instead. Set the root password either with the Linux passwd command, or by going into the OpenWRT configuration found on Vera's Advanced, Net &amp; Wi-Fi, Advanced Configuration link.
+
=== SSH  ===
  
== Performance bottlenecks with network throughput ==
+
For more info on how to acces Vera through SSH please click [[Logon Vera SSH|here]].
  
When in gateway mode (see above 'Telnet &amp; SSH') all network traffic runs through Vera's CPU, and the CPU maxes out at around 30 Mbps and you'll find Vera is slow to respond. If you will be needing high volume network traffic it's best to use Vera in switch mode, so the network traffic goes through at full speed without using Vera's CPU. This is not a limitation of our software, it is the nature of residential/consumer access point hardware and most access points have roughly the same performance and speed of CPU.
+
=== Local acces  ===
  
='''Manually upgrading the firmware'''=
+
The firewall is enabled and the DHCP server is turned on.&nbsp; You cannot telnet into Vera using the IP on the WAN port; you must connect your PC to a LAN&nbsp;port on Vera and telnet to 192.168.81.1 (the default IP for Vera).&nbsp; Note that even in switch mode Vera will still listen to IP 192.168.81.1, so you can always set your PC to a static IP in that range.&nbsp; Telnet uses the default port 23.
  
If you lose access through the web page you can enable SSH on Vera by setting a root password (see above 'Telnet &amp; SSH'). Then use scp to copy the firmware image to Vera's /tmp directory. Then you can either manually write the firmware using this command:  
+
*Note: Once you set a root password, telnet is disabled and you must use ssh instead.&nbsp; Set the root password either with the Linux passwd command, or by going into the OpenWRT configuration found on Vera's Advanced, Net &amp; Wi-Fi, Advanced Configuration link.
 +
 
 +
<br>
 +
 
 +
== Performance Bottlenecks with Network Throughput  ==
 +
 
 +
When in gateway mode (see above 'Telnet &amp; SSH') all network traffic runs through Vera's CPU, and the CPU maxes out at around 30 Mbps and you'll find Vera is slow to respond.&nbsp; If you will be needing high volume network traffic it's best to use Vera in switch mode, so the network traffic goes through at full speed without using Vera's CPU.&nbsp; This is not a limitation of our software, it is the nature of residential/consumer access point hardware and most access points have roughly the same performance and speed of CPU.
 +
 
 +
<br>
 +
 
 +
== Manually Upgrading the Firmware  ==
 +
 
 +
=== Vera 1  ===
 +
 
 +
If you lose access through the web page you can enable SSH on Vera by setting a root password (see above [[#Telnet_.26_SSH|Telnet &amp; SSH]]).&nbsp; Then use '''scp''' to copy the firmware image to Vera's '''/tmp''' directory. Then you can either manually write the firmware using this command:  
  
 
  mtd -r write [filename] linux  
 
  mtd -r write [filename] linux  
  
However you will lose all your settings. To preserve your settings name the image: firmware.img and run: /usr/bin/cmh-upgrade.sh which will create a backup of your configuration online, restore the firmware, and then restore the backup on the first boot.
+
However you will lose all your settings.&nbsp; To preserve your settings name the image: ''firmware.img'' and run:  
 +
 
 +
/usr/bin/cmh-upgrade.sh
 +
 
 +
which will create a backup of your configuration online, restore the firmware, and then restore the backup on the first boot.  
 +
 
 +
For more info check the guide for flashing your Vera 1 [[Firmware Flash Vera 1|here]] or for Vera 2 [[Firmware Flash Vera2|here]].
 +
 
 +
=== Vera 2  ===
 +
 
 +
TBD (Needs to be added.)<br>
 +
 
 +
=== Vera 3 ===
 +
 
 +
TBD&nbsp;(Needs to be added.)
  
For more info check the guide for flashing your Vera 1 [[Firmware_Flash_Vera_1|here]] or for Vera 2 [[Firmware_Flash_Vera2|here]]
+
[[Category:User_Instructions]] [[Category:How_To]]

Latest revision as of 02:54, 14 December 2011


Here are some notes about commands for advanced users and developers:

  • Note: Telnet only works for outdated firmware versions of Vera.

Contents

[edit] Telnet & SSH

[edit] Telnet

Telnet is enabled by default on Vera.  With the network autoconfiguration left on, if Vera gets an internal IP address on the WAN port (i.e. any 192.168.x.x, or 172.x.x.x or 10.x.x.x address), Vera is put into 'switch' mode and all 5 ports are bridged together like a switch.  In this mode you can telnet into Vera using the IP Vera gets from the WAN port.  If you don't know it, go to findvera.com and click 'Setup my Vera in my home' to be redirected.  If Vera gets an external IP address on the WAN port, or no IP at all, Vera goes into Gateway mode.

[edit] SSH

For more info on how to acces Vera through SSH please click here.

[edit] Local acces

The firewall is enabled and the DHCP server is turned on.  You cannot telnet into Vera using the IP on the WAN port; you must connect your PC to a LAN port on Vera and telnet to 192.168.81.1 (the default IP for Vera).  Note that even in switch mode Vera will still listen to IP 192.168.81.1, so you can always set your PC to a static IP in that range.  Telnet uses the default port 23.

  • Note: Once you set a root password, telnet is disabled and you must use ssh instead.  Set the root password either with the Linux passwd command, or by going into the OpenWRT configuration found on Vera's Advanced, Net & Wi-Fi, Advanced Configuration link.


[edit] Performance Bottlenecks with Network Throughput

When in gateway mode (see above 'Telnet & SSH') all network traffic runs through Vera's CPU, and the CPU maxes out at around 30 Mbps and you'll find Vera is slow to respond.  If you will be needing high volume network traffic it's best to use Vera in switch mode, so the network traffic goes through at full speed without using Vera's CPU.  This is not a limitation of our software, it is the nature of residential/consumer access point hardware and most access points have roughly the same performance and speed of CPU.


[edit] Manually Upgrading the Firmware

[edit] Vera 1

If you lose access through the web page you can enable SSH on Vera by setting a root password (see above Telnet & SSH).  Then use scp to copy the firmware image to Vera's /tmp directory. Then you can either manually write the firmware using this command:

mtd -r write [filename] linux 

However you will lose all your settings.  To preserve your settings name the image: firmware.img and run:

/usr/bin/cmh-upgrade.sh

which will create a backup of your configuration online, restore the firmware, and then restore the backup on the first boot.

For more info check the guide for flashing your Vera 1 here or for Vera 2 here.

[edit] Vera 2

TBD (Needs to be added.)

[edit] Vera 3

TBD (Needs to be added.)

Personal tools