mikrotik mum april 2017 · 2017-05-02 · mum cambodia, phnom penh , april 24, 2017 | chan ty...

27
MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1

Upload: others

Post on 10-Jul-2020

6 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

MikroTikRouterOS Tools

�1

Page 2: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

About Me

• Name: Chan Ty

• Experience: Routing, Switching and QoS

• Certified to deliver: MTCNA, MTCRE, MTCINE and MTCTCE

�2

Page 3: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Agenda

• I am going to present some usual tools that is available in RouterOS

• Most of them are under Tools menu

�3

Page 4: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

IP Scan

• IP Scan tool allows user to scan network based on some network prefix or by setting interface to listen to

• Either way tool collects data from the network

�4

Tools → IP Scan

Page 5: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

E-mail• Allows to send e-mails

from the router

• For example to send router backup

�5

Tools → Email/export file=export /tool e-mail send [email protected]\ subject="$[/system identity get name] export"\ body="$[/system clock get date]\ configuration file" file=export.rsc

A script to make an export file and send it via e-mail

Page 6: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Traffic Monitor

• Traffic Monitor tool is used to execute console script when interface traffic crosses a given threshold

�6

Tools → Traffic Monitor

Page 7: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Profiler

• Profiler tool show CPU usage for each process running in RouterOS

• It helps to identify which process is using most of the CPU resources

�7Tools → Profiles

Page 8: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Bandwidth Test• The Bandwidth Tester can be

used to measure the throughput to another MikroTik router and thereby help to discover network bottlenecks

• Support both TCP and UDP

�8Tools → Bandwidth TestTools → BTest Server

Page 9: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Bandwidth Test

�9

Page 10: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Traffic Generator• Traffic Generator is a

tool that allows to evaluate performance of DUT (Device Under Test)

• Tool can generate and send RAW packets over specific port

�10

Tools → Traffic Generator

Page 11: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

DUT Traffic Generator

Ether1 10.0.0.1/24

Ether2 20.0.0.1/24

Ether1 10.0.0.2/24

Ether2 20.0.0.2/24

t1

t2

Firewall Queue Mangle

Traffic Generator

�11

Page 12: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty�12

• Traffic Generator Configuration

Traffic Generator

/tool traffic-generator packet-template add header-stack=mac,ip,upd ip-dst=20.0.0.2 ip-gateway=10.0.0.1 name=t1 add header-stack=mac,ip,upd ip-dst=10.0.0.2 ip-gateway=20.0.0.1 name=t2

A script to make an T1 and T2 packet template

A command to generate T1 and T2 traffic

Page 13: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Traffic Generator• Device Under Test (DUT)

�13

A command to see traffic statistic on Aggregate, Ether1 and Ether2

Page 14: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Netwatch• Monitor state of hosts on

the network

• Send ICMP echo request (ping)

• Can excite a script when a host becomes unreachable or reachable

�14

Tools → Netwatch

Page 15: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Netwatch

�15

/system script add name=e-down source=“/tool e-mail send [email protected] server=smtp.example.com body=“Your Internet line 1 is down” [email protected]

/system script add name=e-up source=“/tool e-mail send [email protected] server=smtp.example.com body=“Your Internet line 1 is up” [email protected]

Page 16: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Interface Traffic Monitor

• Real time traffic status

• Available for each interface in traffic tab

• Can also be accessed from both WebFig and command line interface

�16Interfaces → wlan1 → Traffic

Page 17: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Graphing

• RouterOS can generate graphs showing how much traffic has passed through an interface or a queue

• Can show CPU, memory and disk usage

• For each metric there are 4 graphs - daily, weekly, monthly and yearly

�17

Page 18: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Graphing

�18

Set specific interface to

monitor or leave all, set IP address/subnet which will be able to access

the graphs

Tools → Graphing

Page 19: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Graphing

�19

• Available on the router: http://router_ip/graphs

Page 20: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Graphing

�20

Page 21: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

The Dude• Application by MikroTik which can dramatically

improve the way you manage your network environment

• Automatic discovery and layout map of devices

• Monitoring of services and alerting

• Free of charge

�21

Page 22: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

The Dude

• Support SNMP, ICMP, DNS and TCP monitoring

• Server part run on RouterOS (CCR, CHR, or x86)

• Client on Windows (works on Linux and OS X using Wine)

�22

Page 23: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

The Dude

�23

Page 24: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Torch

• Real-time monitoring tool

• Can be used to monitor the traffic flow through the interface

• Can monitor traffic classified by IP protocol name, source/destination address (IPv4/IPv6), port number

�24

Page 25: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Torch

• Traffic flow from the laptop to the mikrotik.com web server HTTPS port

�25

Tools → Torch

Page 26: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

Traffic Flow• Traffic Flow is a system that provides statistic information

about packets which pass through the router

�26Tools → Traffic Flow www.ntop.org

Page 27: Mikrotik MUM April 2017 · 2017-05-02 · MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty MikroTik RouterOS Tools 1. ... A script to make an T1 and T2 packet template A command

MUM Cambodia, Phnom Penh , April 24, 2017 | Chan Ty

That is it!!Or Khun (Thanks)

�27