Vous êtes sur la page 1sur 45

69/96 M.

4 Bangkadi16, Samaedum, Bangkuntien, Bangkok 10150 Thailand


Tel: 081-0101006 E-mail: info@easynetwork.co.th
Web-site: www.easynetwork.co.th

Chapter: MikroTik RouterOS Training

MikroTik RouterOS
Training

MikroTik RouterOS Training

- MikroTik RouterOS and RouterBOARD

- RouterOS
- MikroTik
LAB Overview
Setup Internet Connection
- IP Address and default gateway
- DHCP - Client
- NAT masquerade
Upgrade RouterOS
- Download Package
- Upgrade ways ; FTP , Winbox
MikroTik RouterOS Tunnels
Secure local network
- Create PPPoE client on RouterOS
MikroTik RouterOS Bridging
Bridging concepts
- Create bridge
- Add ports to bridge
Mikrotik RouterOS Network Management
HotSpot
- Setup
- Users
- Ip-binding
- User profiles
- Server profiles
DHCP server and client
- Server setup

- Leases management
- DHCP-server network configuration
MikroTik RouterOS Wireless
802.11a/b/g/n Concepts
- Bands
- Frequencies
- Channels
- Country regulation
DHCP server and client
- Server setup
- Leases management
- DHCP-server network configuration
MikroTik RouterOS Wireless
802.11a/b/g/n Concepts
- Bands
- Frequencies
- Channels
Backup and export/import configuration
- Save and restore backup
- Edit export file
Manage RouterOS login
- User and password change
Netinstall
- Reinstall RouterOS
- Reset RouterOS
RouterOS license
- Levels
- Update license
NTP client configuration

Chapter: MikroTik RouterOS Training

MikroTik Router Introduction

Config WinBox
http://www.mikrotik.com/download/winbox.exe
Icon Winbox Run

Mikrotik WinBox Load

Browse Mikrotik
Save User, Password, IP Address, MAC Address
Mikrotik
Connect Mikrotik
Remove User, Password, IP Address, MAC Address
Mikrotik

Chapter: Config WinBox

Tools
Remove All Addresses
Clear Cache
Export Addresses
Import Addresses

Winbox

Chapter: Config WinBox

1. Browse Config Connect IP Address


MAC Address Router Board, Version Router OS

2. Login: admin default Password:


3. Connect Plugins Mikrotik
Winbox

Chapter: Config WinBox

4. Default Configuration
Modem Config Mode Router

Reset Config
1. Config Reset Config Default sys resetconfig terminal Menu New Terminal

2. Remove Configuration

Chapter: Reset Config

Reset Y
Winbox Disconnect

Setup Internet Connection

1. DHCP Client Modem (Router Mode) Menu IP > DHCP-Client


2. + DHCP-Client
3. Interface Modem
4. Use peer DNS , Add Default Route OK

Chapter: Setup Internet Connection

Menu IP > Address IP Address Ether1

5. Config Internet
5.1. Terminal Ping www.yahoo.com Packets

DHCP Server

1.3. IP Address Address


1.4. Interface Ok
Address List IP
2. DHCP SERVER Client ether 4

Chapter: DHCP Server

1. IP Address Network 192.168.88.1/24 interface = ether4


1.1. Menu IP > Address
1.2. + IP Address

2.1. Menu IP DHCP SERVER DHCP SETUP

2.2. DHCP SERVER Interface interface

Chapter: DHCP Server

2.3. DHCP Address Space Network

2.4. Gateway DHCP Network

2.4. Addresses to Give Out

2.5. DNS Server DNS ISP

Chapter: DHCP Server

2.6. Lease Time

2.7. Setup Completed

### Add IP Address ###


/ip address
add address=192.168.88.1/24 disabled=no interface=ether3
### Add IP Pool ###
/ip pool
add name=hs-pool-1 ranges=192.168.100.20-192.168.88.30
### Add DNS ###
/ip dns
set allow-remote-requests=yes servers=203.144.207.49
### Add DHCP_SERVER ###
/ip dhcp-server
add address-pool=hs-pool-1 disabled=no interface= ether3 name=dhcp1
/ip dhcp-server network

Chapter: DHCP Server

add address=192.168.88.0/24 gateway=192.168.88.1

10

Upgrade / Downgrade ROS WinBox


Package file download 2 Mipsbe RB7xx RB4xx
Package PPC RB1xxx , RB6xx RB8xx

Upgrade ROS WinBox


Download File Update unzip
1. winbox File

3. Reboot System Reboot Boot Update


Chapter: Upgrade / Downgrade ROS WinBox

2. File Package Update File Winbox Upload

11

Downgrade ROS WinBox


1. winbox File
2. Copy Package file Downgrade
3. WinBox Terminal
3.1. /system package downgrade Downgrade
3.2. Reboot y

downgrade boot

Chapter: Downgrade ROS WinBox

Router Board boot

1
2

Upgrade / Downgrade ROS FTP


Upgrade ROS FTP
1. windows explorer ftp://you ip router board ftp://192.168.30.1

Chapter: Upgrade / Downgrade ROS FTP

2. Pop up user = admin Password =

13

3. Copy Package file Upgrade


4. WinBox Terminal
4.1. system reboot Upgrade
4.2. Reboot Y

Router Board boot

Downgrade ROS FTP


1. Copy Package file Downgrade
2. WinBox Terminal
2.1. /system package downgrade Downgrade

Router Board boot

Chapter: Upgrade / Downgrade ROS FTP

2.2. Downgrade Y

14

Admin Access Control


1. Menu System User User Admin Password OK

Chapter: Admin Access Control

/user set admin password=P@ssw0rd

15

BackUp Configulation
2
1

1. Menu File
2. Backup

3. File Backup
copy (drag) winbox desktop (

copy file)
Restore

file BackUP Restore

!! Config BackUp backup file

Chapter: BackUp Configulation

16

2.

1. Terminal
2. " export file=backup "

command promt
File

File Backup

Notepad command
Copy command notepad
Paste New Terminal
run command promt

Chapter: BackUp Configulation

Copy 1

17

Command
BackUp Restore
2

Chapter: BackUp Configulation

!! 2 command

18

Llicense RouterOS
1. Menu System

Chapter: Llicense RouterOS

/system license print

19

NTP Client
Set NTP Client 2
1.
1. Winbox Menu System NTP Client

1.1. Primary NTP Server = 158.108.212.149 Secondary NTP Server =


158.108.32.17 Apply
2
1. New Terminal Copy

/system ntp client


set enabled=yes mode=unicast primary-ntp=158.108.212.149 secondary-ntp=158.108.32.17
/system clock
set time-zone-name=Asia/Bangkok

Chapter: NTP Client

#set ntp

20

NetInstall Upgrade ROS


netinstall Upgrade Router Os RB4xx
Console RS232

1. Copy folder package file Upgrade Folder Netinstall

2.1. net booing

Chapter: NetInstall Upgrade ROS

2. netinstall

21

2.2. IP Address 192.168.1.3


2.3. IP Address Computer 192.168.1.10
3. console Rs232 Computer

4. Lan Computer Port Eth1/PoE

Chapter: NetInstall Upgrade ROS

3.1. HyperTerminal Config 75

22

5.
Reboot HyperTerminal Enter 2-3
login User =admin password =

Reboot sys reboot

Chapter: NetInstall Upgrade ROS

reboot Y

23

config PPPOE client ADSL Modem


1. Config Reset Config Remove Config
2. Internet WAN Modem ADSL PPPoE
2
1 .
2.1. Menu PPP Interface

2.3. Interface Modem ether1 Ether1 Dial Out

Chapter: config PPPOE client ADSL Modem

2.2. New Interface PPPoE Client

24

2.4. User Password


2.5. Use Peer DNS DNS ISP OK
3. Config Internet

2 . Command Terminal
1. copy
user , password New terminal

Chapter: config PPPOE client ADSL Modem

3.1. Terminal Ping www.yahoo.com Packets

25

#config pppoe out (please change username,password)


/interface pppoe-client
add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 comment=\
"" dial-on-demand=no disabled=no interface=ether1 max-mru=1480 max-mtu=\
1480 mrru=disabled name=pppoe-out1 password=password profile=default \

Chapter: config PPPOE client ADSL Modem

service-name="" use-peer-dns=yes user=username

26

Config Bridge Interface


1. Menu Bridge + Interface OK

Chapter: Config Bridge Interface

2. Port + Bridgeport Interface Bridge OK

27

#Bridge
/interface bridge
add name=bridge1 disabled=no
/interface bridge port
add bridge=bridge1 interface=ether1 disabled=no

Chapter: Config Bridge Interface

add bridge=bridge1 interface=wlan1 disabled=no

28

hotspot server
1. IP Address Hotspot wizards
1.1. IP / Hotspot

1.3. Interface Hotspot ether4 next

Chapter: hotspot server

1.2. Hotspot Setup

29

1.4. IP Address Interface

1.5. IP Address Client

Chapter: hotspot server

1.6. SSL CERTIFICATE


Import None Next

30

1.7. IP Address SMTP Server IP Address Mail Server Next

1.8. DNS Server ISP ( ) Next

Chapter: hotspot server

1.9. DNS Name Hotspot hotspot.yourname.com Next

31

1.10. user password Hotspot

1.11. Setup has completed successfully OK

Config Add user 1 user

Hotspot Computer Config Local Area


Connection Internet protocol (TCP/IP) Obtain an IP Address automatically Obtain
DNS server Address automatically
Hotspot IP Address

Chapter: hotspot server

Authen disable hotspot server

32

Status Local Area Connection IP Address

ether4 IP 192.168.10.1(Gateway) IP Address DHCP


Server 192.168.10.2-192.168.10.254

Chapter: hotspot server

33

IE Login Hotspot user = admin password


=

User login IP Address download upload


1

Chapter: hotspot server

Login Status

34

HOTSPOT SETUP COMMAND LINE


### Add IP Address ###
/ip address
add address=192.168.100.1/24 disabled=no interface=bridge1
### Add IP Pool ###
/ip pool
add name=hs-pool-1 ranges=192.168.100.10-192.168.100.200
### Add DNS ###
/ip dns
set allow-remote-requests=yes servers=203.144.207.49
### Add DHCP_SERVER ###
/ip dhcp-server
add address-pool=hs-pool-1 disabled=no interface=bridge1 name=dhcp1
/ip dhcp-server network
add address=192.168.100.0/24 gateway=192.168.100.1
### Add HotSpot ###
/ip hotspot profile
add hotspot-address=192.168.100.1 login-by=http-chap name=hsprof1
/ip hotspot
add address-pool=hs-pool-1 disabled=no interface=bridge1 name=hotspot1 profile=hsprof1

add address-pool=hs-pool-1 name="512k Limit" rate-limit=512k/512k


/ip hotspot user
add disabled=no name=user1 password=1234 profile="512k Limit" server=hotspot1
### Add NAT ###
/ip firewall nat add action=masquerade chain=srcnat out-interface=pppoe-out1 disabled=no

Chapter: hotspot server

/ip hotspot user profile

35

Bandwidth User Profile


Profiles User Hotspot
1. IP / Hotspot
1.1. User Profile New Hotspot User profile
1.2. Profile Name
1.3. Rate Limit rx/tx rx server client
Upload client

tx server client Download client

2. user Profiles

Chapter: Bandwidth User Profile

128k/256k upload 128kbps, download 256kbps OK

36

2.1. User New Hotspot User


2.2. user Name Password
2.3. Profile OK
3. user Download / Upload
3.1 Login User= user1 Password =

Chapter: Bandwidth User Profile

4. Test Speed Internet Profiles

37

Config Wireless
1. Menu Wireless wlan1
2. Wireless Config AP Mode = Ap Bridge
3. Band 2G B/G
4. Channel Width 20MHz
5. Frequency

/interface wireless
set wlan1 mode=ap-bridg band=2ghz-b/g frequency=2462 ssid=MikroTik channel-width=20mhz
disabled=no

Chapter: Config Wireless

6. SSID

38

Bit Torrent Peer 2 Peer


New Terminal
copy

#Create Queue for All-P2P
/ queue simple
add name=p2p p2p=all-p2p max-limit=64000/64000 limit-at=64000/64000

31 p2p Queue hotspot


queue hotspot queue p2p queue
Drag, p2p queue hotspot queue
Queue p2p hotspot

Chapter: Bit Torrent Peer 2 Peer

Queue p2p

39

#Move Queue for All-P2P

Chapter: Bit Torrent Peer 2 Peer

/queue simple move "p2p" destination=0

40

By-Pass DVR, Dream box, Access Point

1.1. host double-click


1.2. Make binding Type () bypass OK

DVR, Dream box, Access Point


Chapter: By-Pass

1. IP/Hotspot Host host

41

Download/Upload host

2.1. Queue
2.2. target IP "192.168.88.251
2.3. upload, download user
Upload Download tx/rx
OK

DVR, Dream box, Access Point


Chapter: By-Pass

2. Queue New Simple Queue

42

2.4. Queue Queue


Hotspot Queue

IP Address Mac Address


3. IP/DHCP Server
3.1. Leases
3.2. host IP

DVR, Dream box, Access Point


Chapter: By-Pass

3.3. Make Static

43

Level number

3 (WISP CPE)

4 (WISP)

5 (WISP)

6 (Controller)

yes

yes

yes

yes

yes

yes

yes

yes

yes

yes

yes

EoIP tunnels

unlimited

unlimited

unlimited

PPPoE tunnels

200

500

unlimited

PPTP tunnels

200

unlimited

unlimited

L2TP tunnels

200

unlimited

unlimited

OVPN tunnels

200

unlimited

unlimited

VLAN interfaces

unlimited

unlimited

unlimited

P2P firewall rules

unlimited

unlimited

unlimited

NAT rules
Hotspot active
users
RADIUS client

unlimited

unlimited

unlimited

unlimited

200

500

unlimited

yes

yes

yes

yes

Queues

unlimited

unlimited

unlimited

unlimited

yes

yes

yes

yes

yes

yes

yes

10

20

50

unlimited

Wireless AP
Wireless Client
and Bridge
RIP, OSPF, BGP
protocols

Web Proxy
Synchronous
interfaces
User manager
active sessions

Chapter: License Level

License Level

44

Vous aimerez peut-être aussi