Changes

no edit summary
Line 3: Line 3:  
A '''command line interface''' ('''CLI''') is a means of interacting with a computer program or system where the user (or client) issues commands to the program in the form of successive lines of text (command lines). A program which handles the interface is called a '''command language interpreter''' or '''shell'''.
 
A '''command line interface''' ('''CLI''') is a means of interacting with a computer program or system where the user (or client) issues commands to the program in the form of successive lines of text (command lines). A program which handles the interface is called a '''command language interpreter''' or '''shell'''.
   −
RUT routers support a variety of different command line interfaces all of which will be described in this article. Only the methods of reaching and logging in via a specified CLI will be described here and not any specific command usage.
+
RUTxxx routers support a variety of different command line interfaces all of which will be described in this article. Only the methods of reaching and logging in via a specified CLI will be described here and not any specific command usage.
    
In all cases, CLI login information for RUT routers is:
 
In all cases, CLI login information for RUT routers is:
Line 14: Line 14:  
RUT routers have a command line interface built-in to their '''Web User Interfaces''' ('''WebUI'''). This is the most accessible method because all you need is web browser.
 
RUT routers have a command line interface built-in to their '''Web User Interfaces''' ('''WebUI'''). This is the most accessible method because all you need is web browser.
   −
* Simply log in to the WebUI by typing the router's LAN IP address into the search field of your web browser and press "Enter" on your keyboard:
+
* Simply login to the WebUI by typing the router's LAN IP address into the search field of your web browser and press "Enter" on your keyboard:
    
[[File:Default login ip.png]]
 
[[File:Default login ip.png]]
 
----
 
----
* After this, you will be greeted with the log in window. Type in the user name '''admin''' and the router's admin password and click "Login":
+
* After this, you will be greeted with the login window. Type in the user name '''admin''' and the router's admin password and click "Login":
    
[[File:How to log in to rut.png]]
 
[[File:How to log in to rut.png]]
Line 26: Line 26:  
[[File:How to locate cli.png]]
 
[[File:How to locate cli.png]]
 
----
 
----
* Type in the log in name ''root'', press "Enter", type in the router's admin password and press "Enter" again. You should be greeted with a message such as this:
+
* Type in the login name ''root'', press "Enter", type in the router's admin password and press "Enter" again. You should be greeted with a message such as this:
    
[[File:Cli rutos.PNG]]
 
[[File:Cli rutos.PNG]]
Line 36: Line 36:  
===Linux===
 
===Linux===
 
----
 
----
Linux operating systems support many applications that can be used to log in to a RUT router via SSH, but the most common one is '''Terminal''', which we'll be using for this example.
+
Linux operating systems support many applications that can be used to login to a RUT router via SSH, but the most common one is '''Terminal''', which we'll be using for this example.
   −
* Open a new Terminal window, type '''ssh [email protected]''' and press "Enter". If this is your first time logging in, you might be asked to clarify whether you really want to log in. In that case, just type '''yes''' and press "Enter". Then type in the router's admin password and press "Enter" to finish the log in process:  
+
* Open a new Terminal window, type '''ssh [email protected]''' and press "Enter". If this is your first time logging in, you might be asked to clarify whether you really want to login. In that case, just type '''yes''' and press "Enter". Then type in the router's admin password and press "Enter" to finish the login process:  
    
[[File:Ssh linux login.png]]
 
[[File:Ssh linux login.png]]
Line 46: Line 46:  
===Windows===
 
===Windows===
 
----
 
----
To log in to a RUT router via SSH using a Windows OS you will need an SSH client application. The most common is '''PuTTY''' - free, open source SSH and Telnet client, which we'll be using for this example. You can download PuTTY from '''[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html here]'''.
+
To login to a RUT router via SSH using a Windows OS you will need an SSH client application. The most common is '''PuTTY''' - free, open source SSH and Telnet client, which we'll be using for this example. You can download PuTTY from '''[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html here]'''.
    
* Launch PuTTY and select the '''SSH Connection type'''. Type in the router's LAN IP address into the '''Host Name (or IP address)''' field, type the SSH port into the '''Port''' field ('''22''' by default) and click '''Open''':
 
* Launch PuTTY and select the '''SSH Connection type'''. Type in the router's LAN IP address into the '''Host Name (or IP address)''' field, type the SSH port into the '''Port''' field ('''22''' by default) and click '''Open''':
Line 52: Line 52:  
[[File:Putty login 1.PNG]]
 
[[File:Putty login 1.PNG]]
 
----
 
----
* In the next window type in the log in name ''root'', press "Enter", type in the router's admin password and press "Enter" again. You should be greeted with a message such as this:
+
* In the next window type in the login name ''root'', press "Enter", type in the router's admin password and press "Enter" again. You should be greeted with a message such as this:
    
[[File:Putty login 2.PNG]]
 
[[File:Putty login 2.PNG]]
Line 69: Line 69:  
</font>
 
</font>
   −
You can log in to the RS485 console with a 2-wire cable. You can use the RS485 jack that comes with the router for one end; the other end of the cable basically depends on your end device's capabilities (it can be USB, RS232, etc.)
+
You can login to the RS485 console with a 2-wire cable. You can use the RS485 jack that comes with the router for one end; the other end of the cable basically depends on your end device's capabilities (it can be USB, RS232, etc.)
    
===Router configuration===
 
===Router configuration===
 
----
 
----
The configuration for the router's side is fairly simple. Just log in to the router's WebUI, go to '''Services → RS232/RS485''', put a check mark next to '''Enable''' field and select '''Serial type: Console''' (the same is true for both RS232 and RS485):
+
The configuration for the router's side is fairly simple. Just login to the router's WebUI, go to '''Services → RS232/RS485''', put a check mark next to '''Enable''' field and select '''Serial type: Console''' (the same is true for both RS232 and RS485):
    
[[File:Rs232 console configuration.png]]
 
[[File:Rs232 console configuration.png]]
Line 81: Line 81:  
===Linux===
 
===Linux===
 
----
 
----
To log in from a Linux PC, you'll need an application for serial communication like '''minicom''' or '''gtkterm'''.  
+
To login from a Linux PC, you'll need an application for serial communication like '''minicom''' or '''gtkterm'''.  
    
* For this example we'll be using minicom. You can download it by typing these lines into the Terminal:
 
* For this example we'll be using minicom. You can download it by typing these lines into the Terminal:
Line 100: Line 100:  
Once done press "Enter". In the next menu you can save these settings as defaults by selecting '''Save setup as dfl''' so that you wouldn't need to set everything up the next time you use the console.
 
Once done press "Enter". In the next menu you can save these settings as defaults by selecting '''Save setup as dfl''' so that you wouldn't need to set everything up the next time you use the console.
 
----
 
----
* Press "Esc" on your keyboard to return to the console window and type in the log in name ''root'', press "Enter", type in the router's admin password and press "Enter" again. After this, you will be able to use the RS232/RS485 console.  
+
* Press "Esc" on your keyboard to return to the console window and type in the login name ''root'', press "Enter", type in the router's admin password and press "Enter" again. After this, you will be able to use the RS232/RS485 console.  
    
===Windows===
 
===Windows===
 
----
 
----
To log in from a Windows PC, you'll need an application for serial communication. The most common is '''PuTTY''' - free, open source SSH and Telnet client, which we'll be using for this example. You can download PuTTY from '''[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html here]'''.
+
To login from a Windows PC, you'll need an application for serial communication. The most common is '''PuTTY''' - free, open source SSH and Telnet client, which we'll be using for this example. You can download PuTTY from '''[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html here]'''.
    
* First you must find out which '''Serial line''' (or '''COM port''') your cable uses. To do so, go to Windows '''Device Manager''' (you can find it easily via the search field or in the Control Panel). Find '''Ports (COM & LPT)''' in the device list and expand that section. Locate your serial device (depends on the type of cable) and take note of its '''COM port number''' ('''COM7''' in our example):
 
* First you must find out which '''Serial line''' (or '''COM port''') your cable uses. To do so, go to Windows '''Device Manager''' (you can find it easily via the search field or in the Control Panel). Find '''Ports (COM & LPT)''' in the device list and expand that section. Locate your serial device (depends on the type of cable) and take note of its '''COM port number''' ('''COM7''' in our example):
Line 114: Line 114:  
[[File:Putty serial login 2.JPG|500px]]
 
[[File:Putty serial login 2.JPG|500px]]
 
----
 
----
* In the next window type in the log in name ''root'', press "Enter", type in the router's admin password and press "Enter" again. You should be greeted with a message such as this:
+
* In the next window type in the login name ''root'', press "Enter", type in the router's admin password and press "Enter" again. You should be greeted with a message such as this:
    
[[File:Putty serial login 3.JPG|600px]]
 
[[File:Putty serial login 3.JPG|600px]]