Upload
joeshouse
View
219
Download
0
Embed Size (px)
Citation preview
7/24/2019 CSLtraining MikroTik Class 1
1/85
ISP Setup using MikroTik
Class - I
MikroTik Basic, Installation of PC based MikroTikusing Vmware, Winbox, Interfaces,
IP Addressing, SRC-NAT, DNS
M Abdullah Al NaserB.Sc in CSE
CCNA, RHCE, RHCSA, MTCNA
7/24/2019 CSLtraining MikroTik Class 1
2/85
About MikroTik
2Prepared by- M Abdullah Al Naser ([email protected])
Router software and Hardware manufacturer.
Products used by ISPs, companies and
individuals.
Make network/internet technology easier,
faster, affordable to wider range of user.
Riga, Latvia, Northen Europe, EU
7/24/2019 CSLtraining MikroTik Class 1
3/85
About MikroTik
3
MikroTik History 1995: Established
1997: Router OS software for x86 (PC)
2002: Introduce RouterBoard
Source of Info
www.mikrotik.com www.routerboard.com
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
4/85
About MikroTik
4Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
5/85
RouterOS
5
The operating system of RouterBoard. Can be also installed on a PC.
RouterOS is an Operating System that will makeyour device:
a dedicated router.
a bandwidth manager.
a firewall/packet filter.
a wireless router/AP.
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
6/85
RouterBoard
6
The hardware manufactured by MikroTik. Variety of ranges from small home AP to
business class router.
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
7/85
Installing VMware in PC
1. Collect VMware installation file with Licensekey and run the setup.exe
7Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
8/85
Installing VMware in PC
2. VMware Workstation 8 initializing..
8Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
9/85
Installing VMware in PC
3. Click Next
9Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
10/85
Installing VMware in PC
4. Click Typical
10Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
11/85
Installing VMware in PC
5. You can Change installation directory (Optional)6. Click Next
11Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
12/85
Installing VMware in PC
7. Click Next
12Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
13/85
Installing VMware in PC
8. Click Next
13Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
14/85
Installing VMware in PC
9. Click Next
14Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
15/85
Installing VMware in PC
10. Click Continue
15Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
16/85
Installing VMware in PC
11. Installation is in progress..
16Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
17/85
Installing VMware in PC
12. Put License Key and click Enter
17Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
18/85
Installing VMware in PC
13. Click Finish
18Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
19/85
Customize Network Setting
1. Run VMware Workstation
19Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
20/85
Customize Network Setting
2. Accept License Agreement and click OK
20Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
21/85
Customize Network Setting
3. Sample Topology
21Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
22/85
Customize Network Setting
4. Click Edit --> Virtual Network Editor
22Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
23/85
Customize Network Setting
5. Select VMnet1, configure parametersaccordingly and then select VMnet8
23
VMnet1forLocal LAN
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
24/85
Customize Network Setting
6. Configure parameters accordingly and thenclick OK
24
VMnet8for
WAN
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
25/85
Create Virtual Machine
1. Click File -->New Virtual Machine
25Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
26/85
Create Virtual Machine
2. Select Typical and click Next
26Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
27/85
Create Virtual Machine
3. Select last option here and click Next
27Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
28/85
Create Virtual Machine
4. Select OS Other, Version Other and click Next
28Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
29/85
Create Virtual Machine
5. Enter Machine Name, select Location, andclick Next
29Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
30/85
Create Virtual Machine
6. Put Disk Size, select Single storage file, andclick Next
30Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
31/85
Create Virtual Machine
7. Click Finish
31Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
32/85
Edit Virtual Machine
1. Double-click MT1 and click Edit VM Settings
32Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
33/85
Edit Virtual Machine
2. Select Network Adapter, select VMnet1
33Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
34/85
Edit Virtual Machine
3. Click Add to add another adapter
34Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
35/85
Edit Virtual Machine
4. Select Network Adapter and click Next
35Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
36/85
Edit Virtual Machine
5. Choose VMnet8 and click Finish
36Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
37/85
Edit Virtual Machine
5. Select CD/DVD, locate MikroTik IOS imagefile and click Ok
37Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
38/85
Install PC Based MikroTik on VM
1. Double-click MT1 and click Power on this VM
38Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
39/85
Install PC Based MikroTik on VM
2. Installation initializing
39Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
40/85
Install PC Based MikroTik on VM
3. Displaying available packages
40Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
41/85
Install PC Based MikroTik on VM
4. Press a to select all packages and press i tostart installation
41Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
42/85
Install PC Based MikroTik on VM
5. Firstly Press n and then press y for appropriateprompt
42Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
43/85
Install PC Based MikroTik on VM
6. Installation is in progress
43Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
44/85
Install PC Based MikroTik on VM
7. Press Enter to reboot
44Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
45/85
Install PC Based MikroTik on VM
8. MikroTik is booting up
45Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
46/85
Install PC Based MikroTik on VM
9. Login in to MikroTik using username admin
and password null [no password] (By Default)
46Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
47/85
Install PC Based MikroTik on VM
10. MikroTik is now ready to configure in CLI
Mode
47Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
48/85
Install PC Based MikroTik on VM
11. Verify interfaces using following command
48Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
49/85
Install PC Based MikroTik on VM
12. Set IP address on ether1 for LAN connectivity
using given command
49Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
50/85
Install PC Based MikroTik on VM
13. Set IP address on PC
50Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
51/85
Install PC Based MikroTik on VM
14. Set IP address on PC
51Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
52/85
Install PC Based MikroTik on VM
15. Disable VMnet8 adapter for the time being
52Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
53/85
Install PC Based MikroTik on VM
16. Verify connectivity between PC and
MikroTiks LAN interface
53Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
54/85
Install PC Based MikroTik on VM
17. Browse192.168.100.1
anddownload Winbox
54Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
55/85
Install PC Based MikroTik on VM
18. Save Winbox in your PC
55Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
56/85
Install PC Based MikroTik on VM
19. login in to the MikroTik using 192.168.100.1
Username admin and password null [no password] (Bydefault) and click Connect
56Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
57/85
Install PC Based MikroTik on VM
20. Finally the MikroTik is ready to configure
using Winbox
57Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
58/85
RB750GL
It is a MikroTik Router Board with fiveFastEthernet Interfaces
58Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
59/85
Connecting to RouterBoard
Lab Topology
59Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
60/85
Login in to router using Winbox
Winbox is an application for configuring RouterOS
which can be downloaded from www.mikrotik.com
60
Connecting to RouterBoard
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
61/85
7/24/2019 CSLtraining MikroTik Class 1
62/85
Login in to MikroTik
Remove default configuration
62Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
63/85
Winbox Navigation
63Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
64/85
Interfaces
64Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
65/85
Rename Interfaces
65Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
66/85
Rename Interfaces
66Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
67/85
Assign IP Address on an Interface
67Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
68/85
Assign IP Address on an Interface
68Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
69/85
Add Default Route
69
A Default Route is configured to forward
traffic to the next-hop where destination is
unspecified or unknown. Generally DefaultRoute is used to get access to the internet.
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
70/85
Add Default Route
70Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
71/85
71
Add Default Route
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
72/85
Verify Connectivity Between Router and ISP
72Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
73/85
Verify connectivity between PC and ISP
73
Not Successful !! What is the problem ??
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
74/85
Network Address Translation (NAT)
74
In NAT terminology, the inside network is
the set of networks that is subject to
translation.
Routers are able to change the source and
destination address of packets that is
traversing through itself.
In MikroTik, there are two NAT Chains:
SRC-NAT and DST-NAT.
NAT rules work on IF-THEN principle.
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
75/85
SRC-NAT
75
SRC-NAT changes packets source address.
Can be used to reach public network from a
private network.
Masquerade is one type of SRC-NAT. It is not possible to reach internal servers
from outside.
Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
76/85
Configure SRC-NAT
76Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
77/85
Configure SRC-NAT
77Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
78/85
Configure SRC-NAT
78Prepared by- M Abdullah Al Naser ([email protected])
f
7/24/2019 CSLtraining MikroTik Class 1
79/85
Configure SRC-NAT
79
OR
Prepared by- M Abdullah Al Naser ([email protected])
if i i b d
7/24/2019 CSLtraining MikroTik Class 1
80/85
Verify connectivity between PC and ISP
80
Now Successful !! Reason was: SRC-NAT
Prepared by- M Abdullah Al Naser ([email protected])
S
7/24/2019 CSLtraining MikroTik Class 1
81/85
DST-NAT
81
DST-NAT changes packets destination IP
address and port.
It can be used to reach internal servers from
public network.
Configuring DST-NAT will be discussed later in
this course.
Prepared by- M Abdullah Al Naser ([email protected])
DNS
7/24/2019 CSLtraining MikroTik Class 1
82/85
DNS
82
Domain Name Service (DNS) protocol is
used to resolve Internet names to IP
addresses.
Prepared by- M Abdullah Al Naser ([email protected])
DNS
7/24/2019 CSLtraining MikroTik Class 1
83/85
DNS
83Prepared by- M Abdullah Al Naser ([email protected])
C fi DNS
7/24/2019 CSLtraining MikroTik Class 1
84/85
Configure DNS
84Prepared by- M Abdullah Al Naser ([email protected])
7/24/2019 CSLtraining MikroTik Class 1
85/85
Thank you very much