Telnet Server and Client

Document revision 1.2 (05-May-2003)
This document applies to the MikroTik RouterOS v2.7

Table of Contents

Summary

MikroTik RouterOS has a build-in Telnet server and client features. These two are used to communicate with other systems over a network.

Specifications

Packages required : None
License required : Any
Home menu level : /system, /ip service
Standards and Technologies : Telnet (RFC 854)
Hardware usage : not significant

Related Documents

Software Package Installation and Upgrading
Services, Protocols and Ports
Configuration Backup and Restore

Telnet Server

Submenu level : /ip service

Description

Telnet protocol is intended to provide a fairly general, bi-directional, eight-bit byte oriented communications facility. The main goal is to allow a standard method of interfacing terminal devices to each other.

MikroTik RouterOS implements industry standard Telnet server. It uses port 23, which must not be disabled on the router in order to use the feature.

You can enable/disable this service or allow the use of the service to certain IP addresses.

Example

[admin@MikroTik] ip service> print detail
Flags: X - disabled, I - invalid
  0   name="telnet" port=23 address=0.0.0.0/0

  1   name="ftp" port=21 address=0.0.0.0/0

  2   name="www" port=80 address=0.0.0.0/0

[admin@MikroTik] ip service> set 0 address 10.10.10.0/24
[admin@MikroTik] ip service>

Telnet Client

Command name : /system telnet

Description

MikroTik RouterOS telnet client is used to connect to other hosts in the network via Telnet protocol.

You can type something that cannot be treated as an IP address into the telnet prompt in order to use advanced telnet mode. This is for advanced users only.

Example

A simple example of Telnet connection:
[admin@MikroTik] > /system telnet 192.168.0.2
Trying 192.168.0.2...
Connected to 192.168.0.2.
Escape character is '^]'.

MikroTik v2.7rc4
Login: admin
Password:

  MMM      MMM       KKK                          TTTTTTTTTTT      KKK
  MMMM    MMMM       KKK                          TTTTTTTTTTT      KKK
  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK
  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK
  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK
  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK

  MikroTik RouterOS v2.7 (c) 1999-2003       http://www.mikrotik.com/


Terminal unknown detected, using single line input mode
[admin@MikroTik] >
Advanced Telnet command mode:
[admin@MikroTik] > system telnet
:
telnet> ?
Commands may be abbreviated.  Commands are:

close           close current connection
logout          forcibly logout remote user and close the connection
display         display operating parameters
mode            try to enter line or character mode ('mode ?' for more)
open            connect to a site
quit            exit telnet
send            transmit special characters ('send ?' for more)
set             set operating parameters ('set ?' for more)
unset           unset operating parameters ('unset ?' for more)
status          print status information
toggle          toggle operating parameters ('toggle ?' for more)
slc             set treatment of special characters

z               suspend telnet
environ         change environment variables ('environ ?' for more)
telnet>

© Copyright 1999-2003, MikroTik