modified on 3 March 2014 at 15:02 ••• 142,100 views

Manual:Interface

From MikroTik Wiki

Jump to: navigation, search
Version.png

Applies to RouterOS: v3, v4 +

Contents

Sub Categories

List of reference sub-pages

Case studies

List of examples

Summary

Sub-menu: /interface

MikroTik RouterOS supports a variety of Network Interface Cards as well as virtual interfaces (e.g. Bonding, Bridge, VLAN etc.). Each of them have their own sub-menu, but common properties of all interfaces can be configured and read in the general interface menu.

Properties

Property Description
l2mtu (integer; Default: ) Layer2 Maximum transmission unit. Note that this property can not be configured on all interfaces. Read more>>
mtu (integer; Default: ) Layer3 Maximum transmission unit
name (string; Default: ) Name of an interface


Read-only properties

Property Description
bindstr ()
bindstr2 ()
caps ()
default-name ()
dynamic (yes|no) Whether interface is dynamically created
default-name ()
fast-path (yes | no)
flags ()
id (integer) interface id
ifindex (integer) interface index
ifname (string) interface name in Linux kernel
mac-address (MAC)
max-l2mtu (integer) Max supported L2MTU
running (yes|no) Whether interface is running. Note that some interfaces may not have a 'running check' and they will always be reported as "running" (e.g. EoIP)
rx-byte (integer) Number of received bytes. Read more>>
rx-drop (integer) Number of received packets being dropped Read more>>
rx-errors (integer) Packets received with some kind of an error. Read more>>
rx-packet (integer) Number of packets received. Read more>>
slave (yes|no) Whether interface is configured as a slave of another interface (for example Bonding)
status (string)
tx-byte (integer) Number of transmitted bytes. Read more>>
tx-drop (integer) Number of transmitted packets being dropped Read more>>
tx-errors (integer) Packets transmitted with some kind of an error. Read more>>
tx-packet (integer) Number of transmitted packets. Read more>>

Traffic monitor


The traffic passing through any interface can be monitored using following command:
/interface monitor-traffic [id | name]

For example monitor ether2 and aggregate traffic. Aggregate is used to monitor total ammount of traffic handled by the router:

[maris@maris_main] > /interface monitor-traffic ether2,aggregate 
    rx-packets-per-second: 9        14
      rx-drops-per-second: 0        0
     rx-errors-per-second: 0        0
       rx-bits-per-second: 6.6kbps  10.2kbps
    tx-packets-per-second: 9        12
      tx-drops-per-second: 0        0
     tx-errors-per-second: 0        0
       tx-bits-per-second: 13.6kbps 15.8kbps

Stats

RouterOS v3.22 introduces a new command:

 /interface print stats

This command prints total packets, bytes, drops and errors.

All interfaces that support this feature will be displayed. Some interfaces are not supporting Error and Drop counters at the moment (RB4XX except RB450G ether 2-5), these devices will not display these counters.


Traffic monitor now also displays errors per second, in addition to the usual stats:

 /interface monitor-traffic

/interface ethernet print stats will display all kinds of other statistics if the interface is supporting them (currently only RB450G ether2-ether5 and also RB750 ether2-ether5).


[ Top | Back to Content ]