apostila - curso mikrotik
TRANSCRIPT
-
o
o
!"#o !!""#
-
$!! %& (
o $%!&!o
(o $%!()!*++ ,
! "!! "!
-. ------ , . / ------ , - / ------0 , / 1 ------. , 2 . ------. , / ------. , 0 ------- , 1 ## , 1 ## !!" !!" !!" !! #"""$ %
$%
)
o 345%!5+5 *
o 345%555556 55!5+%5$758%55!59:%5 &5;
+o 345%55!$%9%5&%5;! &34+"%&5
-
&,-&
o $!55&%=5&54:5%&5> ?&
&.&o %"%@!&"5!55 5,o AB+555C+5%&4%3 $"55"5+
&!%5o D@5*+!*5"&5 54o %4+&%$3%55$%55%+"E 5$75!5>
FD 1F" FG &
&)/&
o %"%@!5!3!%%5!5%%$ 5o &3% H7+!&"5&I *!*
o 7+%"%@!5>
-1FH
&
&!
-o 53%&H%E%&o ":%&56
*o &"!%5!o 8"%!"5%4&5%o %&4%(""F4%"
!o HG!5&&
!o
012 3
-
(!!
,&4 - * 5 *$ &&&6&&&%&3.& -**0&7 2
*83 &2/9: %"( +#; ! % !
)
+ &?@@ . .+, 2 4A434B
( !%*!
&. + .: =+&
+
&o H%5B+o H)5%5# (%,
-
,!!
,:!CD #+88 %+&E-.,=.6,"!2/5: F
o 5%5&!5+%"%@+!" &"%&%%"Mo 74*%5&&45& %54@ "%&
-!.+
%"o &%#%#$%D&+54(!!% Mo "&%%3%Mo D+!"5!&5Mo H!%5!$%4%&+%"%@&/file print; o 6%%&%&& /system reboot +&"N"N"
&5"Mo H!%5$%4%B+55!&54%5 "5&&
& /system package print;
-/!!
&o L%I5%"G+"o 5+3%9%;F5&
,Go 9O;5+"!!%P%B+5C
[Mikrotik] > ?
o 9O;!P5+&%&!"55!Q5%5 !:$%5!5&[Mikrotik] > interface ?
()&
0!!.12"#!
*((+(,(((
*((
-.()
-.(-(*/(0(1
-.(&2
-.(((3(45
((-.()6,. #*&&3$
7(+
(((
-
()8
-
9,:0(**(-0(**
&!!3+(!!4 !4
5HI
!"#$%&( )))*&+ $$, $-&
5&&A"(H1 JIB
"( +," %& AB :
!&3!"!(!
))C (#K;K;
C &4"+I34B+5B++ &%*!7R4%%M H%@*B+$5&5!&5B+5 %54@&%*
,(;A:B6 CD
7 F5!53$"!"34B+ ( ( M 77 F5!53$"!"34B+ &( M1 :; F5!53$"!"34B+ &&,*( M
) >5 *5*D
-
=((>:0(**
53!6!33!
:(?,*
@*6((7/
@*6((7/
@*6((((/&
@*6((
@*6*?(=
()8
-
9,A(*(&)#A&$*((#&+(,.$
7
+). ./%,0 ,()& .$1,#$ 0&+) 23
o 45 6&o 4()7o ,)()*#$ o 8.29/)#$(&o +0/o ()*/( -)&
(!!3
+(,/ 1809& 1*/)/ &:!2 :!;2;%1 ,3&
+08)9#$5 0&
)6$
o D ) 53%
o D ( )0>&89 &/8/9( //(#$ /&
o L: >$8 9&
"
* $ *&60$
o D (0#(
o D 0(
o D:: #
o D
-
$!$%
,*?(.--.,((*
86(!97
"&3$4%"57%%5" %%534"57!55:$" &5+%+%B+%&"5555%
/queue tree
=((>A&,*(B.(,
-
/ queue tree add name="Todos Marcados" parent=Computech packet-m ark="" limit-at=0 queue=default priority=8 \ max-limit=0 burst-limit=0 burst-threshold=0 bur st-time=0s disabled=no add name="HTTP" parent="Todos Marcados" packet-mark =pacotes_http limit-at=0 queue=default \ priority=8 max-limit=0 burst-limit=0 burst-thre shold=0 burst-time=0s disabled=no add name="P2P" parent="Todos Marcados" packet-mark= pacotes_p2p limit-at=2000000 queue=default \ priority=8 max-limit=3000000 burst-limit=0 burs t-threshold=0 burst-time=0s disabled=no
()8
-
DEEF((,*()8
/2
6%&+"J%+"J%+"%$( #RJ,7+&+%&Q5!%$" +%"%@!+!5++&C+!55+%5%+ %Q5&5+:&%+&+%&Q 5!8"%&&!I!",
-
()8
-
=.(.&,)8(,*()8&,.
/!6!
.*(* *(* $%3$%5%I5"!F9 -H 9-(+H*GH $%3$%5GH
%+%+$$"+$%3$"+5& 5+%$%3$"5 5%"W5+$ $" $ + $%3$" +5 & 5+% $%3$" 5 &5 5 $%3$"7""5*4+&%!5 5&%!+"
% , F+&&55%5+$" 5)5 , F5++" * FH"#+! F+$"$%3$" (* F&5"&%5%" F!B+&"$+!5I& + ((1 R&$++!+$") * F&$+$"!$% R&$+++8$"% , R&$+++ ,K R&$+++$/ R&$++!+8%% F&$++!+$"5%
-
F&$++!+$"%$" ! 1,- F%!$" 0+* FI&+&5B++&%*4$ %
&,,,(J(+,0""0&,
-
;*7(
Adicionar novas entradas
Remover entradas existentes
Habilitar o item
Desabilitar o item
Acrescentar ou adicionar comentrios Desfazer a ao Refazer a ao
-
!"#$ %&()*(*(
( +,)(( -./(0/( (&12#+$3(/40!#$5((/+
6$
(($7$($( )(/$(/8%
2#+$3(/40!#$ 5((/+
!9$1.%:$/(# &+!9$1.5/(#!/ :$/(#!9$1.:$/(! /$/(
-
((/((#;($/ (/):$/(( /7**1
/(
((/(5/&$((( (?$0/(4
/((+/4( -. 6$(+
-
@@($
(+ ;($+ ,?!((.#1%+ (4)(+ (4"/$A 6 (/$4"+$ (#$?6 //(=/() 7?( 4 /($7(((A6 (/( 4"+(4&3 7($&+
-
@($
/$/(((+
)/(4+6 $ + / ( B#(C+ / )
(0A6 4 / (B#(C0/ (/ (
)+/((DA6 )($A6//(/(($ $*//%A6 /($7((($A6 ! /($($A6! (#$7 / (&0 /6 D
(/6E(4"(%+
""# (+
$ /(4+6%&() FGH+I#5II#/A6%&() FGH+II#5II#/FGH+II5JK#/ %A6 %&() FGI+II 5 JK#/ $%A6%&() /(/(?( 7( 5IGF#/A6*()+ FGH+II5JK#/A6*() )/(/(?(7(5IGF#/A6%&(),-) )B$*C0$3$IG)73A6%&()*) )B$*C0$3$J)73A6*&(),-) )B$*C0$3$IG)73A6*&()*) )B$*C0$3$J)73+
-
./ 0 ( -. (#$7 4 # $7 ($=(+
"01 $( -.(+ 69(?($0 (B/((C &($A 6($0(#( -. ($=(A 66(4(( -./ 0$6/(/(&($+"0 ($ (4+ ( (4 / ( (L$(($L(1/($+
./ 0 6 /( ( -. /
/ (10 /. ?! ( (?$ ( $$40 (6 7 /@A
6 /( / $ /.5(/$/((A
6 0 $ /&$ $4 /(7$+ /./(/$7(;((/( +
/(4+
( @7+
#." )$4M( -.+6 DA60+ 2 B6$C $7 / ( /((
(( -.A60 2/((B6$C$7 ( -.
+ ( NG 5 $0 $ 4 /(($0(?( /(/$/+
!"##$###%&" "#"(")&*+ ,"-)
)5 /( (( (4" /(/( ?()*(*% / ($ (( / (#$ /#$ &("H+O+HJ%&(" $(+
6 2%&3&%* $ !" ( /( &(" (2+/&$$(A
6%&3&%* !" /(( &( / &$ $75+# #$ ! ?!0 #/ $ / ( ;$+# #$!?!0#/ $ /&(=/($0#50)*(*+ # 0 $67% / 4 /( ( /$/($($
-
.& "/ " # 0 1 #& """//"### &1")
5 ""# "# ,2 &0 # 3 # " " 45)
(#-&0#)
@D
$5 /&$ (( ! ( /( ! ?0
6" 6" 7 ! ( ?(/(+ 6$806$07 !/(/(/&($/((
#!#"! #$#(6#-
-
@&
8(($5($3/((&( +2$/(&$( &( ( 8( (!0 ( /$/(((((5#$ 4+
" :( ?! 4" / ( + =(HGGP+
09 / !/(4 % / ( 4 (#*;$%&/(4 6 1
-
KGQ RJG IOG RPJKJQ KGJ 6 6
7/&(J@73 J@736(# H@736# H@736
D$ )! D$ )! D$ )! D$ )!JGGGJ+H@73$1% RG HGK HH IGH L L L LJHIIFGI+IIL#% RG KGO HH HGK IGO KGO L L
JHIHFGH+IIL#L%
HJ KGO HH HGK RG KGO JH KGO
2#(&4 &$( ( (( & (
-
$ 7//(
/ /( /& ;($ / (&(;($/(+
D V$( $ $ 5(+
D$SR
2 $ (1 (&$ / /= $ 5 (/ 4/(/&;($
-
61,&3#$$0(D 5(?+9 M0 /&/( $ *0 ( M /( 7? $ (4 ( ( 0 5 /(B*;C+9$*&$ /(B*;C+( $7 $( ( D M+ &5 0 $3 $ #( /( /(( $* &$ E (0
-
@(
( 5 /($ /(/(?( )*(* F GH+II% /( # $%% 5&
Here is a step-by-step explanation how to enable nstreme dual on a fresh installed MikroTik devices:
I. MikroTik Device 1
1.1. Enabling wireless cards 1 and 2:
[admin@MikroTik] > interface enable wlan1 [admin@MikroTik] > interface enable wlan2
1.2. Assigning IP address to the ethernet interface:
[admin@MikroTik] > ip address add address=192.168.1 .1/24 interface=ether1
1.3. Creating bridge interface:
[admin@MikroTik] > interface bridge add
1.4. Adding ethernet interface to the bridge interface:
[admin@MikroTik] > interface bridge port add interf ace=ether1 bridge=bridge1
1.5. Setting wireless cards 1 and 2 to nstreme mode:
[admin@MikroTik] > interface wireless set wlan1 mod e=nstreme-dual-slave [admin@MikroTik] > interface wireless set wlan2 mod e=nstreme-dual-slave
1.6. Creating nstreme dual interface and setting Tx and Rx radios and frequencies:
[admin@MikroTik] > interface wireless nstreme-dual add rx-radio=wlan1 tx-radio=wlan2 rx-band=5ghz tx-band=5ghz rx-frequency=5180 tx-freq uency=5300
1.7. Adding nstreme interface to the bridge:
[admin@MikroTik] > interface bridge port add interf ace=nstreme1 bridge=bridge1
1.8. Checking the MAC address of the nstreme interface (in this example: 11:11:11:11:11:11):
-
[admin@MikroTik] > interface wireless nstremedual p rint Flags: X disabled, R running 0 X name="nstreme1" mtu=1500 macaddress=11:11:11:1 1:11:11 arp=enabled disablerunningcheck=no tx-radio=wlan2 rx-radio=wlan 1 remote-mac=00:00:00:00:00:00 tx-band=5ghz tx-frequency=5300 rx-band=5ghz rx-freq uency=5180 ratesb=1Mbps,2Mbps,5.5Mbps,11Mbps ratesa/g=6Mbps,9Mbps,12Mbps,18Mbps,24Mbps,36Mbps,48 Mbps,54Mbps framerpolicy=none framerlimit=2560
II. MikroTik Device 2
2.1. Enabling wireless cards 1 and 2:
[admin@MikroTik] > interface enable wlan1 [admin@MikroTik] > interface enable wlan2
2.2. Assigning IP address to the ethernet interface:
[admin@MikroTik] > ip address add address=192.168.1 .2/24 interface=ether1
2.3. Creating bridge interface:
[admin@MikroTik] > interface bridge add
2.4. Adding ethernet interface to the bridge interface:
[admin@MikroTik] > interface bridge port add interf ace=ether1 bridge=bridge1
2.5. Setting wireless cards 1 and 2 to nstreme mode:
[admin@MikroTik] > interface wireless set wlan1 mod e=nstreme-dual-slave [admin@MikroTik] > interface wireless set wlan2 mod e=nstreme-dual-slave
2.6. Creating Nstreme dual interface and setting Tx and Rx radios and frequencies and setting the MAC address of the remote nstreme interface (in this example: 11:11:11:11:11:11 [step 1.8]):
[admin@MikroTik] > interface wireless nstreme-dual add rx-radio=wlan1 tx-radio=wlan2 rx-band=5ghz tx-band=5ghz rx-frequency=5300 tx-freq uency=5180 remotemac=11:11:11:11:11:11 disabled=no
2.7. Adding nstreme interface to the bridge:
[admin@MikroTik] > interface bridge port add interf ace=nstreme1 bridge=bridge1
2.8. Checking the MAC address of the nstreme interface (in this example: 22:22:22:22:22:22):
[admin@MikroTik] > interface wireless nstremedual p rint Flags: X disabled, R running
-
0 R name="nstreme1" mtu=1500 macaddress=22:22:22:2 2:22:22 arp=enabled disablerunningcheck=no tx-radio=wlan2 rx-radio=wla n1 remote-mac=11:11:11:11:11:11 tx-band=5ghz tx-frequency=5180 rx-band=5ghz rx-freq uency=5300 ratesb=1Mbps,2Mbps,5.5Mbps,11Mbps ratesa/g=6Mbps,9Mbps,12Mbps,18Mbps,24Mbps,36Mbps,48 Mbps,54Mbps framerpolicy=none framerlimit=2560
III. MikroTik Device 1
1.9. Setting the MAC address of the remote nstreme interface (in this example: 22:22:22:22:22:22 [step 2.8]):
[admin@MikroTik] > interface wireless nstreme-dual set nstreme1 remotemac=22:22:22:22:22:22 disabled=no
-
D@D222,>D2D DZ)2
E#>,
((#($ ($ (/( &(#(
-
/0(#( !/$;6#(%
$ #2Q
6$ ((??(( /(7(I$IE#(( 6$ ( 6(0$77(I 6(0$7#((;6#( 6$ #2Q 6$ &( 6(0$7;$I 6(0$7#((;6#( 6$ #2Q
-
( 7
-
>.(FG>#>6">:#"7
6$ ($ 6D.$ /$(;$I ($0(/ 6D(? 6)$7/4; 6DD 6$7#H@73IG)73/((#$7 (OGG)73% 6( 1$7$HKHP$K% 6$3D$ $ 6/D)0$7/41 6/DD$(0$7#(( ;6#(% 6$ #2Q 6$ ( 6$7/4D 6)((0$7/4;$I 6$ #2Q2#((#$7(OGG)730&6( RN+