MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified...

38
Phyo Phyo Hein B. C. Tech (hons), MikroTik Certified Trainer and Consultant MTCNA, MTCRE, MTCWE, MTCTCE, MTCUME, MTCINE CCNA R&S, CCNP R&S, CCIP, JNCIA-Junos, JNCDA 1 MikroTik RouterOS Online Training Class Special Series 3 Burmese Version

Transcript of MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified...

Page 1: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Phyo Phyo Hein

B. C. Tech (hons), MikroTik Certified Trainer and Consultant

MTCNA, MTCRE, MTCWE, MTCTCE, MTCUME, MTCINE

CCNA R&S, CCNP R&S, CCIP, JNCIA-Junos, JNCDA

1

MikroTik RouterOSOnline Training Class – Special Series 3

Burmese Version

Page 2: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

EOIP VPN in Hub and

Spoke TopologyPresented by Phyo Phyo Hein

14-05-2017

Information Beam Co.,Ltd

2

Page 3: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

About Me

Phyo Phyo Hein

B. C. Tech (hons)

MikroTik Consultant

Director of Information Beam Co.,Ltd.

Experiences:

Cisco instructor since 2005 at i-BEAM Co., Ltd

SingTel Mobile Support Network Engineer at NCS Co., Ltd (2008-2010)

Nera Telecommunications (Singapore) (2011-2012)

System Integration Manager at Yatanarpon Teleport (2012-2014)

Enterprise/ISP Manager at Kinetic Myanmar Technology (2014-2016)

Certifications:

Cisco CCNA R&S, CCNP R&S, CCIP, CCIE R&S Written

Juniper JNCIA-Junos, JNCDA

3

Page 4: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

What is EOIP?

Stands for Ethernet Over IP.

A MikroTik Proprietary Protocol.

Use GRE Protocol (Protocol ID 47).

Configurable as Layer 2 VPN or Layer 3 VPN

L2VPN: All sites in same subnet

L3VPN: Each Site is in separate subnet.

No Encryption by default.

Tunnel MAC address Range : 00:00:5E:80:00:00 - 00:00:5E:FF:FF:FF

IPsec for encryption as optional.

Can be run over PPTP or IPIP Tunnel or any connections which is able to transport IP.

4

Page 5: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Why do we use EOIP?

Case Scenario

Bridging the LANs of the Offices where are located in different Countries.

Head Quarter’s Requirement

Internet Line

Public IP

Branch Office’s Requirement

Internet Line

Public IP

EOIP Solution which can bridge office LANs across internet .

5

Page 6: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Case Scenario of Bridging Multiple

Office LANs

6

Page 7: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Pros and Cons

Pros

Office LANs can be in same subnet by bridging EOIP and LAN .

Cons

No Encryption by default.

Can cause Layer 2 Loop

Broadcast Domain, Unicast Flooding, MAC Table Instability..etc.

Solutions for L2 Loop

STP(Spanning Tree Protocol)

RSTP (Rapid Spanning Tree Protocol)

7

Page 8: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

How To Secure EOIP Tunnel

By default, there is no Encryption.

Optionally, IPsec Secret can be added for encrypting EOIP Traffic.

Need to specify both local address and remote address of Tunnel.

Automatically adds IPsec Peer with Pre-shared key and Policy with

default-values (by default phase2 uses sha1/aes128cbc)

8

Page 9: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

IPsec Secret For Encryted EOIP Traffic9

Page 10: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

MTU Factor Consideration

Total MTU of EOIP – 1542 bytes

MTU 1500+42 bytes EOIP Header ((8byte GRE + 14 byte Ethernet + 20

byte IP).

Use Case : Bridging

L3MTU 1500, no change to underlying link MTU, fragmentation happens

L3MTU 1500, change underlying link MTU, no fragmentation

Use Case : Routing

can set lower MTU to avoid EoIP GRE packets fragmentation

1500-IP-Ethernet-GRE=1458

10

Page 11: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

LAB SETUP

HUB Router

Configure WLAN as AP Mode, SSID,

Security Profiles.

Configure WLAN IP Address.

Configure LAPTOP IP as 192.168.99.1/24.

Configure EOIP Tunnels to each Branch

Routers.

Create Bridge and Add EOIP Tunnel and LAN Port to the Bridge.

BRANCH Routers

Configure WLAN as Station and Connect

to HUB Router SSID.

Configure WLAN IP Address (10.100.0.X/24)

Configure LAPTOP IP to be the same subnet IP as Hub Routers. (192.168.99.X/24)

Create EOIP Tunnel to Hub Router.

Create Bridge and Add EOIP Tunnel and

LAN Port to the Bridge.

11

Page 12: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

HUB ROUTER CONFIGBasic Setup

Tunnel Configuration

Bridge Configuration and add ports to Bridge

12

Page 13: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Wireless AP Configuration13

Page 14: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Wireless AP Security Profile

Wireless => Security Profile14

Page 15: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

WLAN IP CONFIGURATION15

Page 16: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

EOIP TUNNEL SET UP with BRANCH0116

Page 17: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

EOIP TUNNEL SETUP with BRANCH0117

Page 18: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

BRIDGE SET UP18

Page 19: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

ADD EOIP TUNNEL TO BRIDGE PORTS19

Page 20: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

ADD LAN PORT TO BRIDGE PORTS20

Page 21: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

EOIP SETUP WITH BRANCH0221

Page 22: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

ADDING TUNNEL PORTS TO BRIDGE

PORTS22

Page 23: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

ASSIGN IP TO LAPTOP’S LAN IP23

Page 24: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

PING TO BRANCH LAN IPs24

Page 25: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

BRANCH ROUTER CONFIGConnect to WLAN AP

Tunnel Configuration

Bridge Configuration/Adding ports to Bridge

25

Page 26: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

WIRELESS CONFIGURATION26

Page 27: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

WIRELESS SECURITY PROFILE

CONFIGURATION

27

Page 28: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

BRANCH ROUTER EOIP TUNNEL CONFIG28

Page 29: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

BRANCH ROUTER BRIDGE CONFIG29

Page 30: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

PING TO HUB LAN30

Page 31: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

PING FROM BRANCH TO BRANCH31

Page 32: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

SPANNING TREE PROTOCOL

Builds loop-free network for Ethernet Networks.

Prevents L2 Bridging Loops

Broadcast Loop and Unicast Flooding Issues.

Makes it easier for Redundancy Network Links without loop issue

When Primary Link is down, auto-failover to secondary link

Non-Designated (BLK) port changed to Forwarding State

Selection of Root Bridge per Network

Lowest Priority

Priority Ties: Lowest MAC

32

Page 33: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Potential Issue In Hub and Spoke

ROOT BRIDGE

(Lowest Bridge ID (Lowest Priority/Lowest MAC)

HUB ROUTER

256k

512k

1M

1M

512k

1M

R1

R4

R4 to R3 R4-R1-R2-R3

(instead of R4-R1-R3)

R3 to R4 R3-R2-R1-R4

(instead of R3-R1-R4)

R2

R3

Wastes bandwidth

Traffic Congestion on low cost

bandwidth

33

Page 34: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Solution !!!

256k

512k

1M

1M

512k

1M

R1 (Root Bridge- Hub)

R4

R2

R3

R1 (Hub Router) should be set as root bridge in RSTP

34

Page 35: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

ROOT BRIDGE SETTING35

Page 36: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

VERIFICATION OF ROOT BRIDGE36

Page 37: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

Q & A Section!!!Please feel free to ask me if you have any question.

37

Page 38: MikroTik RouterOS - informationbeam.net RouterOS... · B. C. Tech (hons), MikroTik Certified Trainer ... MikroTik RouterOS Online Training Class –Special Series 3 Burmese Version.

THANKS FOR

YOUR ATTENTION!!!!38