0% found this document useful (0 votes)
249 views19 pages

Mikrotik Configuration Guide Step by Step - Part 1 - Basic Configuration - CCTV Application System

mikrotic

Uploaded by

Thai Huynh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
249 views19 pages

Mikrotik Configuration Guide Step by Step - Part 1 - Basic Configuration - CCTV Application System

mikrotic

Uploaded by

Thai Huynh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

 

OPEN PORT - NAT PORT (EN), TECHNICAL DOCUMENT

Mikrotik Configuration Guide Step By Step – Part 1:


Basic Configuration
POSTED ON 9 SEPTEMBER, 2022 BY CCTVAPP.NET

09

Sep

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 1/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

Mikrotik is a European device supplier with the very famous RouterOS


operating system. In this article SmartWifi will guide configuring Mikrotik 
step by step for any router.

The images in this article are taken on router Mikrotik RB750Gr3. This is a
very powerful gigabit router that can handle 80-100 users and is very
commonly used in cafes or small corporate offices.
Hi! Can I help you? (Xin
chào. Mình có thể giúp gì
Content (Nội dung chính) [Hide (Ẩn)]
cho bạn?)
I. What to prepare before configuring Mikrotik?
1. Tools needed Trợ giúp

2. Update software for router Mikrotik.


3. Delete all settings on the router
II. Basic Mikrotik configuration steps
Step 1: Create a bridge for the local area network (LAN)
Step 2: Set the IP for the newly created bridge.
https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 2/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

Step 3: Setup DHCP Server for bridge-LAN.

× 1 – DHCP Setup  
2 – Set IP range, automatically set if bridge already has IP
3 – Set gateway ID
4 – Set first and last IP
5 – Set DNS
6 – Set IP lease time
7 – Finish DHCP server settings
Step 4: Configure WAN for Mikrotik.
Step 5: NAT LAN traffic to the Internet – Allow internet access
Step 6. Set final parameters.
III. Final configuration check

I. What to prepare before configuring Mikrotik?


1. Tools needed

First you need to prepare a windows computer, network cable to connect the computer to the router.
Then download the software winbox  to your computer.

The computer needs a LAN port for easy connection, set a static IP for the network card:
192.168.88.99/24.

If the computer has a wifi card connected to the internet, the LAN card
should not set a gateway.

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 3/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

Open the winbox software and connect to the router. If in the neighbors tab Iyou
Hi! Can see
help the (Xin
you? router has
an IP, then double-click the IP box to connect. In case IP = 0.0.0.0, chào. Mình
connect có thể
by MAC giúp gì–
address
Connection via MAC is less stable than connection via IP cho bạn?)

2. Update software for router Mikrotik. Trợ giúp

The next step is to update your routerOS software to the latest version. The latest version will make
the router run smoother and it has also fixed security issues.

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 4/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

Back to page download  by Mikrotik, scroll down to RouterOS and Find the entry that corresponds to

×  row, click on the latest Stable version (or long-term) to save it to 


your router. On the Main package
your computer. The other two betas should not be used unless you want to test.

The saved file is named *.npk (eg routeros-mipsbe-6.47.2.npk). Go back to the winbox window
connected to the router to upgrade. The process is as follows:

Go to the Files menu to upload this file to the root directory.

Reboot to restart the router to complete the upgrade.

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 5/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

How to upload is also very easy to do. Go to the File menu and leave the winbox windows and the
folder window containing the downloaded file next to each other. Proceed to drag the file and drop it
into the Files window in winbox.

3. Delete all settings on the router


Hi! Can
After reboot upgrade is complete you can proceed to delete the settings. GoI help
back you? (Xin and go
to winbox
chào.
to menu System > Reset Configuration to clear all settings put. Note theMình cóbox
check thể No
giúp gì
Default
cho bạn?)
Configuration.

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 6/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

II. Basic Mikrotik configuration steps


Step 1: Create a bridge for the local area network (LAN)

With routerOS, bridge  is a bridge connecting hosts on different networks. It is created to link


interfaces including: ethernet interface, wlan, vlan…

Here, we can roughly understand creating a bridge is to create a group of ports that can be
connected like a switch .

Go to the Bridge menu, click + to add a bridge, name it bridge-LAN

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 7/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

Next add the ports you need to use to the newly created bridge.

In the bridge window, click the Ports tab, press the + sign to add a port. Below are all 4 ports 2-5
that are included in the bridge-LAN.

Step 2: Set the IP for the newly created bridge.

This IP will act as the Gateway for the clients in the LAN. From Winbox, go to menu IP >
Addresses to open a subwindow Address List. Press + and declare IP:

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 8/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

Step 3: Setup DHCP Server for bridge-LAN.


Go to menu IP > DHCP Server  to open the settings window. Click the button DHCP Setup  to open
a subwindow. Select bridge-LAN and click Next to continue.

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp
1 – DHCP Setup

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 9/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

2 – Set IP range, automatically set if bridge already has IP

3 – Set gateway ID

4 – Set first and last IP

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
5 – Set DNS
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 10/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

6 – Set IP lease time

×  

7 – Finish DHCP server settings

Step 4: Configure WAN for Mikrotik.


WAN for routers comes in many forms, usually DHCP Client or PPPoE. In this configuration guide,
PPPoE will be selected to install the WAN port on ether1.

To install pppoe, go to menu PPP to open a sub-window. From this window click on  +  and
select PPPoE Client  in the drop-down menu.

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

The window New Interface  will be opened for you to enter the parameters:

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 11/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

In the next step when configuring pppoe, you need to select 2 items: Use Peer DNS and Add
Default Route to connect pppoe automatically using carrier-provided DNS and also automatically
adding default route.

If you don’t select these 2 items, you will have to declare DNS and default route manually.

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp
After clicking OK to create PPPoE Interface, it’s done. If the modem has switched to  bridge
mode and the router’s ether1 has been wired to the modem, this interface will start connecting to the
network operator to receive the IP.

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 12/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

Step 5: NAT LAN traffic to the Internet – Allow internet access


Hi! Can I help you? (Xin
Access menu IP > Firewall and select tab NAT. chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 13/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

In the Firewall window, select tab NAT  and click the button marked +  to add a NAT rule.

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 14/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

In the window New NAT Rule: Enter the values ​in the tab General like above. Then switch to

×
tab Action:  

After clicking OK you will have a NAT rule that allows all local networks to be NATed to the internet.
Creating a rule like this will be a total NAT rule – it will work for all other bridges or interfaces.

If you configure Mikrotik at a more advanced level, when creating a NAT rule, you can set more
options such as In – Interface, Src Address… However, creating rules in the way described in this
article also works at a basic level. latest version. Hi! Can I help you? (Xin
chào. Mình có thể giúp gì
cho normally.
After this step, machines in the bridge-LAN can connect to the internet bạn?)

Step 6. Set final parameters. Trợ giúp

At this step you can proceed with the following settings to finish the installation

Set a password for the admin account in the System menu > Password.

Set optional DNS at IP > DNS


https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 15/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

Setting to automatically update system date and time: System > SNTP Client
the firewall to make the system more secure.
×Install some basic rules for 

III. Final configuration check


After completing Step 6 above, you should have a relatively good router. You can either use a
computer connected to ether2 to test the internet or do an external ping to see the results.

If the computer can ping to the internet then everything is configured correctly. You can perform a
backup of the system configuration for future use.

Source: https://smartwifi.com.vn

Thank you for following this post!!!

     

This entry was posted in Open Port - NAT Port (EN), Technical document. Bookmark the permalink.

 Step-by-step Mikrotik Configuration Guide – Summary of Training Kbvision September 2021

Part 2: Security and Wireless Setup 

CATEGORIES

Select Category

NEW POST Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)
What is the difference between 5M-N and 5MP resolution?

Difference between 2M-N (Lite) and 2MP (Full) resolution? Trợ giúp

Flip image on Dahua IP Camera

Open Port (NAT Port) on Router TotoLink N300RH

Assigning MAC Set Static IP on ToToLink N300RH Router

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 16/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

Assigning MAC to set Static IP on Modem Viettel GPON F606, F600W, F668, F608

× 
Assigning MAC to set Static IP on Viettel Modem H646GM-V

Assigning MAC to set Static IP on TPLink Archer C54 Router

Open Port (NAT Port) on TPLink Archer C54 Router

Open Port (NAT Port) ASUS Router RT-AC1200G+

How to reset password IPC-HFW1431SP?

How to reset password KHA-1020D?

[DAHUA] Good news – PT Camera SD2A Product Series Supports Smart Tracking

Instructions to reset password IMOU Cruiser 2 (IPC-GS7EP-3M0WE)

[DAHUA] Product Introduction of Camera PTZ SD8C

Open Port (NAT Port) Viettel Modem vG-421WD

How to reset password IPC-HFW1230V-A-I4

How to reset password IPC-HDPW1230R1-S5

Open Port (NAT Port) Router Ruijie Reyee RG-EW1200G

[IMOU] Introducing Imou Home Security System

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 17/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

 CCTV Quiz

 Tech News

 News Product

 Security Camera

 Privacy Policy

 Developer

 HTTP API

 SDK cho Camera

 Software

 Dahua - IMOU Firmware (Private)

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

CONTACT
Phone: +84 898 312 383

Email: [email protected]

> Click here to leave a message <

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 18/19
1/14/23, 7:41 AM Mikrotik Configuration Guide Step By Step - Part 1: Basic Configuration - CCTV Application System

×  

404 FOUND CODE


Channel Youtube from CCTVAPP
Subscribe to support me guys!

Copyright 2023 © CCTVAPP

Hi! Can I help you? (Xin


chào. Mình có thể giúp gì
cho bạn?)

Trợ giúp

https://cctvapp.net/en/2022/09/09/mikrotik-configuration-guide-step-by-step-part-1-basic-configuration/ 19/19

You might also like