Projet

Général

Profil

Mikrotik » Historique » Version 40

Laurent GUERBY, 13/11/2013 08:56

1 39 Laurent GUERBY
{{>toc}}
2 39 Laurent GUERBY
3 1 Laurent GUERBY
h1. Mikrotik
4 1 Laurent GUERBY
5 1 Laurent GUERBY
RouterOS
6 1 Laurent GUERBY
7 1 Laurent GUERBY
http://wiki.mikrotik.com/wiki/MikroTik_RouterOS
8 1 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Manual:TOC
9 1 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Manual:Webfig
10 1 Laurent GUERBY
11 5 Laurent GUERBY
http://www.mikrotik.com/download.html
12 5 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Upgrading_RouterOS
13 5 Laurent GUERBY
14 27 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Supported_Hardware
15 33 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Manual:Password_reset
16 34 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Manual:PoE-Out
17 27 Laurent GUERBY
18 15 Laurent GUERBY
h2. Boitiers
19 15 Laurent GUERBY
20 16 Laurent GUERBY
* Nice box : http://forum.mikrotik.com/viewtopic.php?p=297825#p297825
21 21 Laurent GUERBY
* http://www.mikrotik.com/mfm
22 21 Laurent GUERBY
* http://www.aerial.net/shop/product_info.php?products_id=1085
23 21 Laurent GUERBY
* http://www.stationbox.info/
24 21 Laurent GUERBY
25 23 Julien Aubé
* Boîtiers Rexel très chers
26 23 Julien Aubé
* http://www.technic-achat.com/coffret-electrique-ip66-imo,fr,4,144T_XX.cfm (144T0010)
27 23 Julien Aubé
* http://www.interprojekt.com.pl/gold-alubox-outdoor-waterproof-case-p-472.html
28 23 Julien Aubé
* http://www.materielelectrique.com/coffret-polyester-marina-ip66-ik10-7035-300x220x160-p-6579.html
29 23 Julien Aubé
30 15 Laurent GUERBY
31 20 Laurent GUERBY
h2. Montage
32 20 Laurent GUERBY
33 20 Laurent GUERBY
* http://shop.varia-store.com/product_info.php?info=p1390_RF-Elements-EasyBracket---EasyBracket-Universal.html
34 20 Laurent GUERBY
35 19 Laurent GUERBY
h2. PoE
36 19 Laurent GUERBY
37 19 Laurent GUERBY
* http://www.i4wifi.eu/en/EU-230V-powering/PoE-convertor-48-V-24-V-802-3af-at.html
38 19 Laurent GUERBY
39 32 Laurent GUERBY
h2. Password
40 32 Laurent GUERBY
41 32 Laurent GUERBY
From: 	Le Net du Kermeur
42 32 Laurent GUERBY
Utilitaire mtpass, ça se trouve là : http://manio.skyboo.net/mikrotik/
43 32 Laurent GUERBY
Ca se compile sous g++, donc sur n'importe quel Linux ou *BSD.
44 32 Laurent GUERBY
Testé sous OpenBSD, il fait le boulot.
45 32 Laurent GUERBY
46 40 Laurent GUERBY
h2. RB433L and RB433UAHL
47 40 Laurent GUERBY
48 40 Laurent GUERBY
h3. NPK
49 40 Laurent GUERBY
50 40 Laurent GUERBY
http://routing.explode.gr/node/96
51 40 Laurent GUERBY
https://forum.openwrt.org/viewtopic.php?id=32320&p=3
52 40 Laurent GUERBY
https://forum.openwrt.org/viewtopic.php?pid=165526#p165526
53 40 Laurent GUERBY
https://github.com/lqez/npk
54 40 Laurent GUERBY
Easy install of OpenWrt on MikroTik's devices https://forum.openwrt.org/viewtopic.php?id=39171
55 40 Laurent GUERBY
http://wp.ayufan.eu/2013/02/the-rb951g-and-openwrt/
56 40 Laurent GUERBY
57 40 Laurent GUERBY
h3. Misc
58 40 Laurent GUERBY
59 40 Laurent GUERBY
TODO
60 40 Laurent GUERBY
http://i.mt.lv/routerboard/files/rb433L-series-qg_1377089307.pdf
61 40 Laurent GUERBY
62 1 Laurent GUERBY
h2. RB750UP
63 1 Laurent GUERBY
64 1 Laurent GUERBY
http://routerboard.com/RB750UP
65 2 Laurent GUERBY
66 25 Laurent GUERBY
http://blog.lekermeur.net/wp-content/uploads/2012/03/Printemps2012_RB750.pdf
67 16 Laurent GUERBY
68 26 Laurent GUERBY
Attention : problèmes lors que le RB750UP est alimenté en PoE : http://forum.mikrotik.com/viewtopic.php?f=3&t=57943
69 26 Laurent GUERBY
> we are working on new FW that would add useful features that are currently missing. One of them is reworked power management.
70 26 Laurent GUERBY
71 12 Laurent GUERBY
Voltage : http://forum.mikrotik.com/viewtopic.php?f=3&t=58124
72 13 Laurent GUERBY
> limit on power out port is 500mA regardless of output voltage. so at 12V you will be able to power only MAX 6W device. while at 30V 15W.
73 13 Laurent GUERBY
> If you power RB570UP with PoE 24V adapter over 100m cable, then resulting output voltage at full load (all 4 ports giving out 500mA totaling to 2A) then voltage to powered ports at RB750UP end will be around 21V then losses on cable and protections you end up with around 19V at the end device. and cables stretching for 200m from PSU brick.
74 13 Laurent GUERBY
> PoE in port has no input limitation only output is limited to 500mA and with 4 prots it is 2A
75 12 Laurent GUERBY
76 35 Laurent GUERBY
Upgrade to 5.20
77 35 Laurent GUERBY
78 35 Laurent GUERBY
<pre>
79 35 Laurent GUERBY
80 35 Laurent GUERBY
[admin@MikroTik] /interface ethernet poe settings> upgrade
81 35 Laurent GUERBY
Do you really want to upgrade PoE firmware? [y/n] 
82 35 Laurent GUERBY
y
83 35 Laurent GUERBY
Please reboot to finish PoE firmware upgrade.
84 35 Laurent GUERBY
85 35 Laurent GUERBY
[admin@MikroTik] /interface ethernet poe settings> pr
86 35 Laurent GUERBY
                   version: 2.0
87 35 Laurent GUERBY
  ether1-poe-in-long-cable: no
88 35 Laurent GUERBY
89 35 Laurent GUERBY
[admin@MikroTik] /interface ethernet poe> monitor [find]
90 35 Laurent GUERBY
               name: ether2-master-local ether3-slave-local ether4-slave-local ether5-slave-local
91 35 Laurent GUERBY
    poe-out-voltage:                                                           23.5V
92 35 Laurent GUERBY
    poe-out-current:                                                           160mA
93 35 Laurent GUERBY
      poe-out-power:                                                           3.7W
94 35 Laurent GUERBY
</pre>
95 35 Laurent GUERBY
96 35 Laurent GUERBY
97 12 Laurent GUERBY
98 7 Laurent GUERBY
* http://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS
99 7 Laurent GUERBY
* To update firmware (latest RouterOS 5.12):
100 7 Laurent GUERBY
* Files / upload choose file : routeros-mipsbe-5.12.npk (12MB)
101 7 Laurent GUERBY
* Attendre la fin de upload
102 7 Laurent GUERBY
* System / Packages / IPv6 schedule for update
103 7 Laurent GUERBY
* System / Reboot
104 8 Laurent GUERBY
* about 90 seconds. Note: PoE will be cut during the reboot
105 7 Laurent GUERBY
106 7 Laurent GUERBY
chiwa admin VLAN 3175
107 1 Laurent GUERBY
192.168.3.20
108 1 Laurent GUERBY
109 1 Laurent GUERBY
telnet login admin pass (vide)
110 1 Laurent GUERBY
web
111 1 Laurent GUERBY
112 3 Jérôme Nicolle
113 3 Jérôme Nicolle
<pre>
114 3 Jérôme Nicolle
[admin@rb750up-chiwawa] > interface ethernet print                                                                 
115 3 Jérôme Nicolle
Flags: X - disabled, R - running, S - slave 
116 3 Jérôme Nicolle
 #    NAME                               MTU MAC-ADDRESS       ARP        MASTER-PORT                            SWITCH                           
117 3 Jérôme Nicolle
 0    ether1-gateway                    1500 00:0C:42:E9:BA:8A enabled   
118 3 Jérôme Nicolle
 1 R  ;;; To chiwa's router *** NO POE ***
119 3 Jérôme Nicolle
      ether2-master-local               1500 00:0C:42:E9:BA:8B enabled    none                                   switch1                          
120 3 Jérôme Nicolle
 2 RS ;;; to Vince' NS5M -  To Myrys
121 3 Jérôme Nicolle
      ether3-slave-local                1500 00:0C:42:E9:BA:8C enabled    ether2-master-local                    switch1                          
122 3 Jérôme Nicolle
 3 RS ;;; to NS5M east - To CDRX
123 3 Jérôme Nicolle
      ether4-slave-local                1500 00:0C:42:E9:BA:8D enabled    ether2-master-local                    switch1                          
124 3 Jérôme Nicolle
 4 RS ;;; to beaconing NS5M (port balcon.3)
125 3 Jérôme Nicolle
      ether5-slave-local                1500 00:0C:42:E9:BA:8E enabled    ether2-master-local                    switch1         
126 3 Jérôme Nicolle
</pre>
127 3 Jérôme Nicolle
128 28 Laurent GUERBY
RouterOS v2
129 28 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Manual:PoE-Out#RouterOS_2   
130 28 Laurent GUERBY
http://wiki.mikrotik.com/wiki/Manual:PoE-Out#Changes_between_1.x_and_2.0_PoE-Out_controller_firmware
131 28 Laurent GUERBY
<pre>
132 28 Laurent GUERBY
[admin@MikroTik] > interface ethernet poe monitor [find]
133 28 Laurent GUERBY
              name: ether2 ether3 ether4 ether5
134 28 Laurent GUERBY
   poe-out-voltage: 23.2V  23.2V  23.2V  
135 28 Laurent GUERBY
   poe-out-current: 224mA  116mA  64mA   
136 28 Laurent GUERBY
     poe-out-power: 5.1W   2.6W   1.4W 
137 28 Laurent GUERBY
</pre>
138 28 Laurent GUERBY
139 11 Laurent GUERBY
http://wiki.mikrotik.com/wiki/PoE-Out
140 3 Jérôme Nicolle
141 11 Laurent GUERBY
/interface ethernet set ether2 poe-out=on
142 2 Laurent GUERBY
/interface ethernet set ether2 poe-out=off
143 2 Laurent GUERBY
/interface ethernet set ether2 poe-out=auto
144 11 Laurent GUERBY
145 11 Laurent GUERBY
Note:
146 11 Laurent GUERBY
<obinou> Le poe-out, il faut le mettre à "on" , et pas à "auto".
147 11 Laurent GUERBY
<obinou> sans ça, j'ai l'impression que le RB fait un power-cycle si il détecte une perte de link
148 11 Laurent GUERBY
<obinou> or, quand la NSM5 démarre, entre le bootloader & le firmware ca perd le link
149 11 Laurent GUERBY
<obinou> conclusion: reboot en boucle.
150 1 Laurent GUERBY
151 22 Julien Aubé
Note:
152 22 Julien Aubé
Après essais il est préférable d'éviter le 12V: Si au départ ça semble marcher, les pics de courants
153 22 Julien Aubé
dépassent parfois la limite autorisé par port de 500mA, et le port se coupe immédiatement.
154 22 Julien Aubé
Le 24V n'a pas montré ce souci.
155 22 Julien Aubé
156 24 Julien Aubé
Note 2: 
157 24 Julien Aubé
Dans les derniers firmwares Microtik, l'option "poe-out" prend comme option "auto", "forced-on", ou "forced-off".
158 24 Julien Aubé
159 2 Laurent GUERBY
http://forum.mikrotik.com/viewtopic.php?f=3&t=49976&sid=40ea9661791968a896ab35214dc18f15&start=50
160 4 Laurent GUERBY
http://forum.mikrotik.com/viewtopic.php?f=3&t=57608
161 1 Laurent GUERBY
162 6 Laurent GUERBY
<pre>
163 1 Laurent GUERBY
[admin@MikroTik-Ouin] > /interface ethernet print detail            
164 6 Laurent GUERBY
Flags: X - disabled, R - running, S - slave 
165 6 Laurent GUERBY
 0 R  name="ether1-gateway" mtu=1500 l2mtu=1600 mac-address=00:0C:42:D3:94:D5 arp=enabled auto-negotiation=yes full-duplex=yes speed=100Mbps 
166 1 Laurent GUERBY
 1    name="ether2-master-local" mtu=1500 l2mtu=1598 mac-address=00:0C:42:D3:94:D6 arp=enabled auto-negotiation=yes full-duplex=yes speed=100Mbps master-port=none bandwidth=unlimited/unlimited switch=switch1 poe-out=auto 
167 6 Laurent GUERBY
 2    name="ether3-slave-local" mtu=1500 l2mtu=1598 mac-address=00:0C:42:D3:94:D7 arp=enabled auto-negotiation=yes full-duplex=yes speed=100Mbps master-port=none bandwidth=unlimited/unlimited switch=switch1 poe-out=auto 
168 10 Laurent GUERBY
 3 R  name="ether4-slave-local" mtu=1500 l2mtu=1598 mac-address=00:0C:42:D3:94:D8 arp=enabled auto-negotiation=yes full-duplex=yes speed=100Mbps master-port=none bandwidth=unlimited/unlimited switch=switch1 poe-out=on 
169 6 Laurent GUERBY
 4 R  name="ether5-slave-local" mtu=1500 l2mtu=1598 mac-address=00:0C:42:D3:94:D9 arp=enabled auto-negotiation=yes full-duplex=yes speed=100Mbps master-port=none bandwidth=unlimited/unlimited switch=switch1 poe-out=on 
170 6 Laurent GUERBY
</pre>
171 6 Laurent GUERBY
172 29 Laurent GUERBY
<pre>
173 29 Laurent GUERBY
[admin@MikroTik-Ouin] > sys resource pr
174 29 Laurent GUERBY
                   uptime: 6m6s
175 29 Laurent GUERBY
                  version: 5.12
176 29 Laurent GUERBY
              free-memory: 17880KiB
177 29 Laurent GUERBY
             total-memory: 29708KiB
178 29 Laurent GUERBY
                      cpu: MIPS 24Kc V7.4
179 29 Laurent GUERBY
                cpu-count: 1
180 29 Laurent GUERBY
            cpu-frequency: 400MHz
181 29 Laurent GUERBY
                 cpu-load: 0%
182 29 Laurent GUERBY
           free-hdd-space: 30844KiB
183 29 Laurent GUERBY
          total-hdd-space: 61440KiB
184 29 Laurent GUERBY
  write-sect-since-reboot: 214
185 29 Laurent GUERBY
         write-sect-total: 96113
186 29 Laurent GUERBY
               bad-blocks: 0%
187 29 Laurent GUERBY
        architecture-name: mipsbe
188 29 Laurent GUERBY
               board-name: RB750UP
189 29 Laurent GUERBY
                 platform: MikroTik
190 29 Laurent GUERBY
</pre>
191 29 Laurent GUERBY
192 38 Laurent GUERBY
h3. NTP
193 38 Laurent GUERBY
194 38 Laurent GUERBY
<pre>
195 38 Laurent GUERBY
/system ntp client set primary-ntp=172.31.31.254 enabled=yes
196 38 Laurent GUERBY
</pre>
197 38 Laurent GUERBY
198 39 Laurent GUERBY
h3. rsyslog
199 39 Laurent GUERBY
200 39 Laurent GUERBY
http://randomtweaks.blogspot.fr/2013/03/mikrotik-remote-logging-using-ubuntu.html
201 39 Laurent GUERBY
202 39 Laurent GUERBY
<pre>
203 39 Laurent GUERBY
/system log action set 3 remote=172.31.31.252
204 39 Laurent GUERBY
</pre>
205 38 Laurent GUERBY
206 17 Jérôme Nicolle
h2. Bridging sur le 750UP
207 17 Jérôme Nicolle
208 18 Jérôme Nicolle
Le RB750UP est conçu dans l'idée d'en faire un CPE multi-antennes. Par défaut, le port 1 (POE-in ou LAN) n'est pas bridgé sur le switch des 4 ports POE-out, on s'en sert plutôt en mode routé.
209 18 Jérôme Nicolle
210 18 Jérôme Nicolle
Pour l'utiliser comme un simple switch et non comme un routeur il suffit de créer un bridge entre les interfaces :
211 18 Jérôme Nicolle
212 17 Jérôme Nicolle
<pre>
213 17 Jérôme Nicolle
[admin@rb750up-chiwawa] > interface bridge add name=bridge1 
214 17 Jérôme Nicolle
[admin@rb750up-chiwawa] > interface bridge port add bridge=bridge1 interface=ether1-gateway 
215 17 Jérôme Nicolle
[admin@rb750up-chiwawa] > interface bridge port add bridge=bridge1 interface=ether2-master-local 
216 1 Laurent GUERBY
</pre>
217 22 Julien Aubé
218 37 Laurent GUERBY
h2. DHCP sur le 750UP
219 37 Laurent GUERBY
220 22 Julien Aubé
Note: Attention, un serveur DHCP est actif par défaut sur les ports 2 à 5. Il faut le désactiver
221 22 Julien Aubé
pour passer en mode switch.
222 17 Jérôme Nicolle
223 37 Laurent GUERBY
<pre>
224 37 Laurent GUERBY
ip dhcp-server print
225 37 Laurent GUERBY
ip dhcp-server remove 0
226 37 Laurent GUERBY
</pre>
227 37 Laurent GUERBY
228 37 Laurent GUERBY
h2. Routing sur le 750UP
229 37 Laurent GUERBY
230 37 Laurent GUERBY
<pre>
231 37 Laurent GUERBY
ip route add dst-address=0.0.0.0/0 gateway=172.16.0.254
232 37 Laurent GUERBY
</pre>
233 17 Jérôme Nicolle
234 10 Laurent GUERBY
h2. RB250GS
235 1 Laurent GUERBY
236 30 Laurent GUERBY
VLAN http://wiki.mikrotik.com/wiki/SwOS/Router-On-A-Stick
237 30 Laurent GUERBY
Doc http://wiki.mikrotik.com/wiki/SwOS
238 30 Laurent GUERBY
vlan limitation mikrotik rb250gs http://forum.mikrotik.com/viewtopic.php?f=17&t=45721
239 31 Jocelyn Dealande
Routeur, switch, VLAN et multi-modems (via rb250gs) http://doc.rhizome-fai.net/doku.php?id=technique:routeur:vlan
240 36 Mehdi Abaakouk
241 36 Mehdi Abaakouk
242 36 Mehdi Abaakouk
243 36 Mehdi Abaakouk
h2. RB750UP en mode BOX pour les nanostation
244 36 Mehdi Abaakouk
245 36 Mehdi Abaakouk
Connection to the routerboard
246 36 Mehdi Abaakouk
247 36 Mehdi Abaakouk
<pre>
248 36 Mehdi Abaakouk
ssh admin@192.168.88.1
249 36 Mehdi Abaakouk
</pre>
250 36 Mehdi Abaakouk
251 36 Mehdi Abaakouk
Reset the RouterBoard :
252 36 Mehdi Abaakouk
<pre>
253 36 Mehdi Abaakouk
$ setup 
254 36 Mehdi Abaakouk
$ r
255 36 Mehdi Abaakouk
$ y
256 36 Mehdi Abaakouk
</pre>
257 36 Mehdi Abaakouk
258 36 Mehdi Abaakouk
Le routerboard reboot et on se reconnect
259 36 Mehdi Abaakouk
260 36 Mehdi Abaakouk
Configuration du WAN
261 36 Mehdi Abaakouk
262 36 Mehdi Abaakouk
<pre>
263 36 Mehdi Abaakouk
$ ip address add address=91.224.149.194/24 interface=ether1-gateway
264 36 Mehdi Abaakouk
$ ip route add gateway=91.224.149.254
265 36 Mehdi Abaakouk
$ ip address print 
266 36 Mehdi Abaakouk
$ ip route print 
267 36 Mehdi Abaakouk
</pre>