Category:Bridging and switching: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
Created page with "{{Versions|v3, v4 +}} <div class=manual> ==Sub Categories== {{ycgu-cooltable-3 |title-left='''List of reference sub-pages''' |title-center='''Case studies''' |title-right='..."
 
No edit summary
Line 3: Line 3:
<div class=manual>
<div class=manual>


==Sub Categories==
=Sub Categories=


{{ycgu-cooltable-3
{{ycgu-cooltable-3
Line 10: Line 10:
|title-right='''List of examples'''
|title-right='''List of examples'''
|content-left=
|content-left=
<splist
showparent=yes
/>


|content-center=
|content-center=
Line 22: Line 19:
shownamespace = false
shownamespace = false
</DynamicPageList>
</DynamicPageList>


|content-right=
|content-right=
Line 34: Line 30:


}}
}}
==Summary==
<p id="shbox"><b>Sub-menu:</b> <code>/interface</code></p>
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==
{{Mr-arg-table-h
|prop=Property
|desc=Description
}}
{{Mr-arg-table
|arg=l2mtu
|type=integer
|default=
|desc=Layer2 Maximum transmission unit. Note that this property can not be configured on all interfaces. [[ Maximum_Transmission_Unit_on_RouterBoards | Read more>> ]]
}}
{{Mr-arg-table
|arg=mtu
|type=integer
|default=
|desc=Layer3 Maximum transmission unit
}}
{{Mr-arg-table-end
|arg=name
|type=string
|default=
|desc=Name of an interface
}}
===Read-only properties===
{{Mr-arg-table-h
|prop=Property
|desc=Description
}}
{{Mr-arg-ro-table
|arg=bindstr
|type=
|desc=
}}
{{Mr-arg-ro-table
|arg=bindstr2
|type=
|desc=
}}
{{Mr-arg-ro-table
|arg=caps
|type=
|desc=
}}
{{Mr-arg-ro-table
|arg=default-name
|type=
|desc=
}}
{{Mr-arg-ro-table
|arg=dynamic
|type=yes{{!}}no
|desc=Whether interface is dynamically created
}}
{{Mr-arg-ro-table
|arg=default-name
|type=
|desc=
}}
{{Mr-arg-ro-table
|arg=fast-path
|type=yes {{!}} no
|desc=
}}
{{Mr-arg-ro-table
|arg=flags
|type=
|desc=
}}
{{Mr-arg-ro-table
|arg=id
|type=integer
|desc=interface id
}}
{{Mr-arg-ro-table
|arg=ifindex
|type=integer
|desc=interface index
}}
{{Mr-arg-ro-table
|arg=ifname
|type=string
|desc=interface name in Linux kernel
}}
{{Mr-arg-ro-table
|arg=mac-address
|type=MAC
|desc=
}}
{{Mr-arg-ro-table
|arg=max-l2mtu
|type=integer
|desc=Max supported L2MTU
}}
{{Mr-arg-ro-table
|arg=running
|type=<nowiki>yes|no</nowiki>
|desc=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]])
}}
{{Mr-arg-ro-table
|arg=rx-byte
|type=integer
|desc=Number of received bytes. [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table
|arg=rx-drop
|type=integer
|desc=Number of received packets being dropped [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table
|arg=rx-errors
|type=integer
|desc=Packets received with some kind of an error. [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table
|arg=rx-packet
|type=integer
|desc=Number of packets received. [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table
|arg=slave
|type=<nowiki>yes|no</nowiki>
|desc=Whether interface is configured as a slave of another interface (for example [[Bonding]])
}}
{{Mr-arg-ro-table
|arg=status
|type=string
|desc=
}}
{{Mr-arg-ro-table
|arg=tx-byte
|type=integer
|desc=Number of transmitted bytes. [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table
|arg=tx-drop
|type=integer
|desc=Number of transmitted packets being dropped [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table
|arg=tx-errors
|type=integer
|desc=Packets transmitted with some kind of an error. [[#Stats | Read more>> ]]
}}
{{Mr-arg-ro-table-end
|arg=tx-packet
|type=integer
|desc=Number of transmitted packets. [[#Stats | Read more>> ]]
}}
==Traffic monitor==
<br />
The traffic passing through any interface can be monitored using following command: <br />
<code>/interface monitor-traffic [id | name]</code>
For example monitor ether2 and aggregate traffic. <code>Aggregate</code> is used to monitor total ammount of traffic handled by the router:
<pre>
[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
</pre>
==Stats==
RouterOS v3.22 introduces a new command:
<pre>
/interface print stats
</pre>
This command prints total [[#Read-only_properties | 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 | Traffic monitor]] now also displays errors per second, in addition to the usual stats:
<pre>
/interface monitor-traffic
</pre>
<code>/interface ethernet print stats</code> will display all kinds of other statistics if the interface is supporting them (currently only RB450G ether2-ether5 and also RB750 ether2-ether5).
</div>


{{Cont}}
{{Cont}}

Revision as of 14:55, 17 April 2018