MAC access

From MikroTik Wiki
Jump to: navigation, search
Version.png

Applies to RouterOS: 2.9, v3, v4

MAC telnet is used to provide access to a router that has no IP address set. It works just like IP telnet. MAC telnet is possible between two MikroTik RouterOS routers only.

Specifications

  • Packages required: system
  • License required: Level1
  • Submenu level: /tool, /tool mac-server
  • Standards and Technologies: MAC Telnet
  • Hardware usage: Not significant

MAC Telnet Server

  • Submenu level: /tool mac-server

Property Description

  • interface (name | all; default: all) - interface name to which the mac-server clients will connect

Notes

There is an interface list in this submenu level. If you add some interfaces to this list, you allow MAC telnet to that interface. Disabled (disabled=yes) item means that interface is not allowed to accept MAC telnet sessions on that interface. all interfaces iss the default setting to allow MAC teltet on any interface. Example

To enable MAC telnet server on ether1 interface only:

[admin@MikroTik] tool mac-server> print
Flags: X - disabled
 #   INTERFACE
 0   all
[admin@MikroTik] tool mac-server> remove 0
[admin@MikroTik] tool mac-server> add interface=ether1 disabled=no
[admin@MikroTik] tool mac-server> print
Flags: X - disabled
 #   INTERFACE
 0   ether1
[admin@MikroTik] tool mac-server>

MAC WinBox Server

  • Submenu level: /tool mac-server mac-winbox

Property Description

  • interface (name | all; default: all) - interface name to which it is alowed to connect with Winbox using MAC-based protocol

Notes

There is an interface list in this submenu level. If you add some interfaces to this list, you allow MAC Winbox to that interface. Disabled (disabled=yes) item means that interface is not allowed to accept MAC Winbox sessions on that interface. Example

To enable MAC Winbox server on ether1 interface only:

[admin@MikroTik] tool mac-server mac-winbox> print
Flags: X - disabled
 #   INTERFACE
 0   all
[admin@MikroTik] tool mac-server mac-winbox> remove 0
[admin@MikroTik] tool mac-server mac-winbox> add interface=ether1 disabled=no
[admin@MikroTik] tool mac-server mac-winbox> print
Flags: X - disabled
 #   INTERFACE
 0   ether1
[admin@MikroTik] tool mac-server mac-winbox>

Monitoring Active Session List

  • Submenu level: /tool mac-server sessions

Property Description

  • interface (read-only: name) - interface to which the client is connected to
  • src-address (read-only: MAC address) - client's MAC address
  • uptime (read-only: time) - how long the client is connected to the server

Example

To see active MAC Telnet sessions:

[admin@MikroTik] tool mac-server sessions> print
 # INTERFACE SRC-ADDRESS       UPTIME
 0 wlan1     00:0B:6B:31:08:22 00:03:01
[admin@MikroTik] tool mac-server sessions>

MAC Scan

  • Command name: /tool mac-scan

This command discovers all devices, which support MAC telnet protocol on the given network.

Property Description

  • (name) - interface name to perform the scan on

MAC Telnet Client

Command name: /tool mac-telnet Property Description (MAC address) - MAC address of a compatible device

Example

[admin@MikroTik] > /tool mac-telnet 00:02:6F:06:59:42
Login: admin
Password:
Trying 00:02:6F:06:59:42...
Connected to 00:02:6F:06:59:42

  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 3.0beta10 (c) 1999-2007       http://www.mikrotik.com/

Terminal linux detected, using multiline input mode
[admin@MikroTik] >