Difference between revisions of "Manual:Special Login"

From MikroTik Wiki
Jump to navigation Jump to search
Line 53: Line 53:
Connection to closed.
Connection to closed.
[[Category:Manual|Special Login]]
[[Category:Console|Special Login]]

Revision as of 10:19, 14 April 2010


Applies to RouterOS: 3, v4


Special login can be used to control devices connected to router over serial port.


For demonstration we will use two RouterBoards and one PC.

Routers R1 and R2 are connected with serial cable and PC is connected to R1 via ethernet. Lets say we want to access router R2 via serial cable from our PC. To do this you have to set up serial interface proxy on R1. It can be done by feature called special-login.

Note that by default console is bound to serial port. So the first task is to unbind console from serial simply by disabling entry in /system console menu:

[admin@MikroTik] /system console> print
Flags: X - disabled, U - used, F - free
 #   PORT                                                                    TERM
 0 X serial0                                                                 vt102

Next step is to add new user, in this case serial, and bind it to the serial port

[admin@MikroTik] > /user add name=serial group=full
[admin@MikroTik] > /special-login add user=serial port=serial0 disabled=no
[admin@MikroTik] > /special-login print
Flags: X - disabled
 #   USER                                                                    PORT
 0   serial                                                                  serial0

Now we are ready to access R2 from our PC.

maris@bumba:/$ ssh serial@

[Ctrl-A is the prefix key]
R2 4.0beta4
R2 Login:

[admin@R2] >

To exit special login mode press Ctrl+A and Q

[admin@MikroTik] >
[Q - quit connection]      [B - send break]
[A - send Ctrl-A prefix]   [R - autoconfigure rate]

Connection to closed.