Difference between revisions of "Command line interfaces"

From Teltonika Networks Wiki
Line 51: Line 51:
  
 
It is also possible to control a RUT955 router via the RS232 or RS485 console. For this, however, you will need the adequate cables:
 
It is also possible to control a RUT955 router via the RS232 or RS485 console. For this, however, you will need the adequate cables:
 
+
<font size="-1">
'''RS232''': RUT955 routers have a female RS232 connector. Therefore, you can use one of the following cable types:
+
{| class="wikitable" style="border:2px solid white; background: white"
* a straight-through Female/Male RS232 cable: <br> [[File:Services rs232 connector female male.PNG]]
+
|+
* a Null-modem (crossed) Male/Male RS232 cable: <br> [[File:Male male rs232 cable.jpg]]
+
| style="border:1px solid white; width: 400px" | '''Straight-through Female/Male RS232 cable''' <br> [[File:Services rs232 connector female male.PNG|300px|left]]
* a USB to RS232 (male) cable: <br> [[File:Usb to rs232 male.png]]
+
| style="border:1px solid white; width: 400px" | '''Null-modem (crossed) Male/Male RS232 cable''' <br> [[File:Male male rs232 cable.jpg|230px|left]]
 +
| style="border:1px solid white; width: 400px" | '''USB to RS232 (male) cable''' <br> [[File:Usb to rs232 male.png|187px|left]]
 +
|-
 +
|}
 +
</font>
  
 
==UART==
 
==UART==

Revision as of 12:44, 26 April 2018

Pages with broken file links > Command line interfaces

Introduction

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.

In all cases, CLI login information is:

  • User name: root
  • Password: router's admin password (default: admin01)

CLI (WebUI)

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:

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 clicl "Login":

How to log in to rut.png


  • Then locate CLI under the Services tab:

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:

Cli rutos.PNG

SSH

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. The best known example application is for remote login to computer systems by users. The login process is different for different operating systems. Therefore, this section is split into two part: Linux and Windows.

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.

  • 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:

Ssh linux login.png

After this you should be greeted with a window such as the one depicted in the figure above.

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 here.

RS232/RS485 console (only with RUT955)

It is also possible to control a RUT955 router via the RS232 or RS485 console. For this, however, you will need the adequate cables:

Straight-through Female/Male RS232 cable
Services rs232 connector female male.PNG
Null-modem (crossed) Male/Male RS232 cable
Male male rs232 cable.jpg
USB to RS232 (male) cable
Usb to rs232 male.png

UART

External links