Project

General

Profile

How to configure mikrotik network equipment » History » Version 7

Nico Schottelius, 05/21/2020 03:32 PM

1 1 Nico Schottelius
h1. How to configure mikrotik network equipment
2
3 6 Nico Schottelius
{{toc}}
4 1 Nico Schottelius
5
h2. Status
6
7
This document is **PRE PRODUCTION**.
8
9
h2. Setting up a newly arrived Mikrotik switch
10
11
This part is specific for mikrotik-crs326 devices and should
12
13
After arriving within 1 work day do:
14
15
* Unpack
16
* Find out which name the switch should have
17
** go to https://netbox.ungleich.ch
18
** search for crs326
19
** identify the last used number
20
** Create a new device
21
*** go to devices 
22
*** devices
23
*** add
24
**** name: "mikrotik-crs326-XX"
25
**** device-role: a device role
26
**** device-type: CRS326
27
**** serial-number: <from the device>
28
**** site: placeX -
29
**** create
30
* Add a physical label with its name
31
** Do not continue before you have done that!
32
* configure your notebook with the ipv4 address 192.168.88.23/24 
33
* connect to the crs326: @ssh admin@192.168.88.1@
34
* Configure the switch
35
** Set identity: @/system identity set name=mikrotik-crs326-XX@ # use the correct name
36
** Set password: @/user set admin password=@ # use the password for mikrotik in the place that you are, use password store
37
** Enable IPv6: @/system package enable ipv6@
38
** Reboot so that IPv6 is enabled: @/system reboot@
39 2 Nico Schottelius
** Add a place indendent, unrouted IPv6 address: @/ipv6 address add eui-64=yes advertise=no interface=bridge address=2a0a:e5c0:1:c::/64@
40
** Get the assigned IPv6 address: @/ipv6 address print@
41
** Disconnect from the switch
42
* Assign your notebook the IPv6 address *2a0a:e5c0:1:c::23/64*
43 1 Nico Schottelius
* Connect to the switch via IPv6
44 3 Nico Schottelius
** Remove the IPv4 address 192.168.88.1 to avoid collisions with other switches: @/ip address remove numbers=0@
45
*** Verify: @/ip address print@
46
* Verify / update entries in netbox:
47
** Verify that the serial number is correct: @:put [ /system routerboard get serial-number ]@
48 4 Nico Schottelius
** Netbox
49
*** go to the ipv6 prefix https://netbox.ungleich.ch/ipam/prefixes/216/
50
**** create a new ipv6 address
51
**** set the DNS name to *mikrotik-crs326-XX*
52 5 Nico Schottelius
**** role = loopback
53 6 Nico Schottelius
* Ensure all steps are taken correctly
54
* Move the device to our inventory / stock if not directly used
55 7 Nico Schottelius
56
57
h2. Configuring a Mikrotik switch for integration into the network
58
59
Depending on the usage scenario, we will define a variety of bridges and assign ports to it.
60
61
* In almost all cases the uplink port will be the *sfp-sfpplus1* port.
62
* In almost all cases we want to apply vlan tagging to that port
63
* For server networks, we configure the MTU to the highest value the switch supports
64
** Devices are configured with a 9200 MTU
65
** So the MTU on the switch ports needs to be at least 9200
66
67
h3. First step for all integrations
68
69
* Setup MTU of the *sfp-sfpplus* ports (plural)
70
71
h3. Use case 1: coworking network
72
73
To use the switch in a coworking network, we keep the MTU