Вы находитесь на странице: 1из 85

ISP Setup using MikroTik

Class - I
MikroTik Basic, Installation of PC based MikroTik
using Vmware, Winbox, Interfaces,
IP Addressing, SRC-NAT, DNS
M Abdullah Al Naser
B.Sc in CSE
CCNA, RHCE, RHCSA, MTCNA

About MikroTik
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

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

About MikroTik
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 (mail.naserbd@yahoo.com)

About MikroTik

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

RouterOS
The operating system of RouterBoard.
Can be also installed on a PC.
RouterOS is an Operating System that will make
your device:
a dedicated router.
a bandwidth manager.
a firewall/packet filter.
a wireless router/AP.
Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

RouterBoard
The hardware manufactured by MikroTik.
Variety of ranges from small home AP to
business class router.

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

Installing VMware in PC
1. Collect VMware installation file with License
key and run the setup.exe

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

Installing VMware in PC
2. VMware Workstation 8 initializing..

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

Installing VMware in PC
3. Click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

Installing VMware in PC
4. Click Typical

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

10

Installing VMware in PC
5. You can Change installation directory (Optional)
6. Click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

11

Installing VMware in PC
7. Click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

12

Installing VMware in PC
8. Click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

13

Installing VMware in PC
9. Click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

14

Installing VMware in PC
10. Click Continue

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

15

Installing VMware in PC
11. Installation is in progress..

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

16

Installing VMware in PC
12. Put License Key and click Enter

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

17

Installing VMware in PC
13. Click Finish

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

18

Customize Network Setting


1. Run VMware Workstation

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

19

Customize Network Setting


2. Accept License Agreement and click OK

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

20

Customize Network Setting


3. Sample Topology

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

21

Customize Network Setting


4. Click Edit --> Virtual Network Editor

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

22

Customize Network Setting


5. Select VMnet1, configure parameters
accordingly and then select VMnet8

VMnet1
for
Local LAN

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

23

Customize Network Setting


6. Configure parameters accordingly and then
click OK

VMnet8
for
WAN

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

24

Create Virtual Machine


1. Click File --> New Virtual Machine

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

25

Create Virtual Machine


2. Select Typical and click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

26

Create Virtual Machine


3. Select last option here and click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

27

Create Virtual Machine


4. Select OS Other, Version Other and click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

28

Create Virtual Machine


5. Enter Machine Name, select Location, and
click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

29

Create Virtual Machine


6. Put Disk Size, select Single storage file, and
click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

30

Create Virtual Machine


7. Click Finish

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

31

Edit Virtual Machine


1. Double-click MT1 and click Edit VM Settings

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

32

Edit Virtual Machine


2. Select Network Adapter, select VMnet1

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

33

Edit Virtual Machine


3. Click Add to add another adapter

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

34

Edit Virtual Machine


4. Select Network Adapter and click Next

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

35

Edit Virtual Machine


5. Choose VMnet8 and click Finish

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

36

Edit Virtual Machine


5. Select CD/DVD, locate MikroTik IOS image
file and click Ok

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

37

Install PC Based MikroTik on VM


1. Double-click MT1 and click Power on this VM

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

38

Install PC Based MikroTik on VM


2. Installation initializing

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

39

Install PC Based MikroTik on VM


3. Displaying available packages

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

40

Install PC Based MikroTik on VM


4. Press a to select all packages and press i to
start installation

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

41

Install PC Based MikroTik on VM


5. Firstly Press n and then press y for appropriate
prompt

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

42

Install PC Based MikroTik on VM


6. Installation is in progress

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

43

Install PC Based MikroTik on VM


7. Press Enter to reboot

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

44

Install PC Based MikroTik on VM


8. MikroTik is booting up

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

45

Install PC Based MikroTik on VM


9. Login in to MikroTik using username admin
and password null [no password] (By Default)

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

46

Install PC Based MikroTik on VM


10. MikroTik is now ready to configure in CLI
Mode

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

47

Install PC Based MikroTik on VM


11. Verify interfaces using following command

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

48

Install PC Based MikroTik on VM


12. Set IP address on ether1 for LAN connectivity
using given command

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

49

Install PC Based MikroTik on VM


13. Set IP address on PC

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

50

Install PC Based MikroTik on VM


14. Set IP address on PC

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

51

Install PC Based MikroTik on VM


15. Disable VMnet8 adapter for the time being

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

52

Install PC Based MikroTik on VM


16. Verify connectivity between PC and
MikroTiks LAN interface

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

53

Install PC Based MikroTik on VM


17. Browse 192.168.100.1 and download Winbox

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

54

Install PC Based MikroTik on VM


18. Save Winbox in your PC

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

55

Install PC Based MikroTik on VM


19. login in to the MikroTik using 192.168.100.1
Username admin and password null [no password] (By
default) and click Connect

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

56

Install PC Based MikroTik on VM


20. Finally the MikroTik is ready to configure
using Winbox

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

57

RB750GL
It is a MikroTik Router Board with five
FastEthernet Interfaces

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

58

Connecting to RouterBoard
Lab Topology

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

59

Connecting to RouterBoard
Login in to router using Winbox

Winbox is an application for configuring RouterOS


which can be downloaded from www.mikrotik.com

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

60

Login in to MikroTik
Default username is admin and there is no password

Put default username, password and click Connect

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

61

Login in to MikroTik
Remove default configuration

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

62

Winbox Navigation

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

63

Interfaces

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

64

Rename Interfaces

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

65

Rename Interfaces

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

66

Assign IP Address on an Interface

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

67

Assign IP Address on an Interface

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

68

Add Default Route


A Default Route is configured to forward
traffic to the next-hop where destination is
unspecified or unknown. Generally Default
Route is used to get access to the internet.

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

69

Add Default Route

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

70

Add Default Route

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

71

Verify Connectivity Between Router and ISP

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

72

Verify connectivity between PC and ISP


Not Successful !! What is the problem ??

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

73

Network Address Translation (NAT)


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 (mail.naserbd@yahoo.com)

74

SRC-NAT
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 (mail.naserbd@yahoo.com)

75

Configure SRC-NAT

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

76

Configure SRC-NAT

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

77

Configure SRC-NAT

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

78

Configure SRC-NAT

OR

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

79

Verify connectivity between PC and ISP


Now Successful !! Reason was: SRC-NAT

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

80

DST-NAT
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 (mail.naserbd@yahoo.com)

81

DNS
Domain Name Service (DNS) protocol is
used to resolve Internet names to IP
addresses.

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

82

DNS

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

83

Configure DNS

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

84

Thank you very much

Prepared by- M Abdullah Al Naser (mail.naserbd@yahoo.com)

85

Вам также может понравиться