mikrotikcertified network associate 2015-2016 by m.sc. i.t ... · routerboard.npk package when you...

24
University of Babylon, IT College Information Network Dep., Third Class, Second Semester MTCNA Course MikroTik Certified Network Associate 2015-2016 By M.Sc. I.T Alaa A. Mahdi

Upload: vankhanh

Post on 28-Jul-2019

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

University of Babylon, IT College

Information Network Dep., Third Class, Second Semester

MTCNA Course

MikroTik Certified Network Associate

2015-2016

By M.Sc. I.T Alaa A. Mahdi

Page 2: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Objectives

• Upgrade RouterOS ;

• Bootloader Upgrade;

• get packages;

• upgrade ways;

2

• upgrade ways;

• type of packages;

• Manage RouterOS logging;

Page 3: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Bootloader Upgrade Methods

• Check your RouterBOARD Bootloader version:

[admin@MikroTik] > system routerboard print

• routerboard: yes

3

• routerboard: yes

• model: "750"

• serial-number: "1FC201DD513B"

• current-firmware: "2.18"

• upgrade-firmware: "2.20"

[admin@MikroTik] >

Page 4: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Bootloader Upgrade Methods

1. New Bootloader versions come with the

routerboard.npk package when you install and

upgrade your router. Do the upgrade command

now:

4

[admin@MikroTik] > system routerboard upgrade

Routerboot will be upgraded.

2. You can upload the Bootloader file directly to

the Files folder in RouterOS, and do the

command then.

Page 5: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Bootloader Upgrade Methods

3. If there is no IP connectivity with your

RouterBOARD, you can also use the Serial

Console XMODEM transfer to send the FWF file

to the router, while connected via Serial

Console. From the Bootloader menu it's possible

5

Console. From the Bootloader menu it's possible

to upgrade the firmware with this method. This

method is the last resort, and should be used

only if the first two methods are not available.

Page 6: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

RouterOS Upgrade Methods

You can upgrade RouterOS in the following ways:

1- Winbox – drag and drop files to the Files menu

2- FTP - upload files to root directory

3- The Dude

6

3- The Dude

Note: RouterOS cannot be upgraded

through serial cable. Using this method

only RouterBOOT can be upgraded.

Page 7: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Upgrade process

• First step - visit www.mikrotik.com and

head to the download page, there choose

the type of system you have the RouterOS

installed on.

7

installed on.

• Download the Combined package, it will

include all the functionality of RouterOS:

Page 8: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

8

Page 9: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Using Winbox

• Connect to your router with Winbox, Select the

downloaded file with your mouse, and drag it to

the Files menu. If there are some files already

present, make sure to put the package in the

root menu, not inside the hotspot folder!

9

root menu, not inside the hotspot folder!

• The upload will start.

• After it finishes - REBOOT and that's all! The

New version number will be seen in the Winbox

Title and in the Packages menu.

Page 10: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

10

Page 11: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Using FTP

• Open your favourite FTP program (in this

case it is Filezilla), select the package and

upload it to your router (demo2.mt.lv is the

address of my router in this example).

11

address of my router in this example).

• You can open the main directory file of the

router board through the path

ftp://192.168.88.1

Where 192.168.88.1 is the ip address of

your RB

Page 12: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

12

Page 13: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

13

Page 14: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

If you wish, you can check if the file is successfully

transferred onto the router (optional):

14

And reboot your router for the upgrade process to begin :

system reboot After the reboot, your router will be up to date, you can check it in this menu:

/system package print if your router did not upgrade correctly, make sure you check the log

More Info. On Package see System-Packages PDF file

Page 15: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Log

• RouterOS is capable of logging (track)

various system events and status

information. Logs can be saved in routersmemory (RAM), disk, file, sent by email or

15

memory (RAM), disk, file, sent by email or

even sent to remote syslog server.

Page 16: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

16

Page 17: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Logging configuration

17

Page 18: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Rule

• topics

– log all messages that falls into specified topic

or list of topics.

For example, we want to log NTP debug info

18

For example, we want to log NTP debug info without too much details:

/system logging add topics=ntp,debug,!packet

Page 19: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Rule

• prefix

prefix added at the beginning of logmessages.

• action

19

• action

specifies one of the system default actionsor user specified action listed in actionsmenu

Default: memory: logs are stored in localmemory buffer.

Page 20: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

Logging Example Logging to file

• To log everything to file, add new log

action:

/system logging action add name=Filetarget=disk disk-file-name=Log

20

target=disk disk-file-name=Log

Page 21: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

• and then make everything log using thisnew action:

/system logging action=File

21

Page 22: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

• You can log only errors there by issuing

command:

• /system logging topics=erroraction=File

22

action=File

Page 23: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

• This will log into files log.0.txt and

log.1.txt.

• You can specify maximum size of file in

lines by specifying disk-lines-per-file.

23

lines by specifying disk-lines-per-file.

<file>.0.txt is active file were new logs are

going to be appended and once it size will

reach maximum it will become <file>.1.txt,

and new empty <file>.0.txt will be created.

Page 24: MikroTikCertified Network Associate 2015-2016 By M.Sc. I.T ... · routerboard.npk package when you install and upgrade your router. Do the upgrade command now: 4 [admin@MikroTik]

• You can log into USB flashes or intoMicroSD/CF (on Routerboards) byspecifying it's directory name before filename. For example, if you have accessibleusb flash as usb1 directory under /files,you should issue following command:

• /system logging action add name=usb

24

• /system logging action add name=usbtarget=disk disk-file-name=usb1/log

• For more information see Manual:System/LogPdf file