This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_switch [2014/03/03 15:01] gcooper |
networking:router:mikrotik_switch [2014/03/27 11:18] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mikrotik Switches ====== | ====== Mikrotik Switches ====== | ||
+ | |||
+ | FIXME | ||
http:// | http:// | ||
Line 8: | Line 10: | ||
http:// | http:// | ||
+ | |||
+ | Interesting: | ||
===== Port Switching ===== | ===== Port Switching ===== | ||
Line 20: | Line 24: | ||
< | < | ||
+ | /interface ethernet print | ||
/interface ethernet switch print | /interface ethernet switch print | ||
- | + | /interface ethernet | |
- | /interface ethernet print | + | |
</ | </ | ||
- | ===== Configure | + | ===== Configure Switch |
- | :!: Here we divide the switch into two 12-port | + | :!: Here we divide the switch into two switch groups |
- | :!: We are routing via the SFP port. | + | :!: We reserve |
- | Remove default slave configuration, define two master ports and assign | + | :!: We erase all configuration |
+ | |||
+ | Reset the router to no configuration: | ||
< | < | ||
+ | /system reset-configuration no-defaults=yes | ||
+ | </ | ||
- | /interface ethernet | + | First, we rename all of the interfaces to match our plan: |
- | set [find master-port=ether2-slave-local] master-port=none | + | :!: '' |
- | set 0 name=ether1-master-local | + | :!: '' |
- | set 12 name=ether13-master-local | + | |
- | set 1, | + | < |
- | set 13, | + | / |
+ | | ||
+ | set ether2 name=ether2-master | ||
+ | set ether3 name=ether3-slave | ||
+ | set ether4 name=ether4-slave | ||
+ | set ether5 name=ether5-slave | ||
+ | set ether6 name=ether6-slave | ||
+ | set ether7 name=ether7-slave | ||
+ | set ether8 name=ether8-slave | ||
+ | set ether9 name=ether9-slave | ||
+ | set ether10 name=ether10-slave | ||
+ | set ether11 name=ether11-slave | ||
+ | set ether12 name=ether12-slave | ||
+ | set ether13 name=ether13-slave | ||
+ | set ether14 name=ether14-slave | ||
+ | set ether15 name=ether15-slave | ||
+ | set ether16 name=ether16-slave | ||
+ | set ether17 name=ether17-slave | ||
+ | set ether18 name=ether18-slave | ||
+ | set ether19 name=ether19-master | ||
+ | set ether20 name=ether20-slave | ||
+ | set ether21 name=ether21-slave | ||
+ | set ether22 name=ether22-slave | ||
+ | set ether23 name=ether23-slave | ||
+ | set ether24 name=ether24-slave | ||
+ | set sfp1 name=sfp1-wan | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Then we modify the switch configuration: | ||
+ | |||
+ | < | ||
+ | /interface ethernet | ||
+ | set ether3-slave | ||
+ | set ether4-slave master-port=ether2-master | ||
+ | set ether5-slave | ||
+ | set ether6-slave master-port=ether2-master | ||
+ | set ether7-slave master-port=ether2-master | ||
+ | set ether8-slave master-port=ether2-master | ||
+ | set ether9-slave master-port=ether2-master | ||
+ | set ether10-slave master-port=ether2-master | ||
+ | set ether11-slave master-port=ether2-master | ||
+ | set ether12-slave master-port=ether2-master | ||
+ | set ether13-slave master-port=ether2-master | ||
+ | set ether14-slave master-port=ether2-master | ||
+ | set ether15-slave master-port=ether2-master | ||
+ | set ether16-slave master-port=ether2-master | ||
+ | set ether17-slave master-port=ether2-master | ||
+ | set ether18-slave master-port=ether2-master | ||
+ | set ether20-slave master-port=ether19-master | ||
+ | set ether21-slave master-port=ether19-master | ||
+ | set ether22-slave master-port=ether19-master | ||
+ | set ether23-slave master-port=ether19-master | ||
+ | set ether24-slave master-port=ether19-master | ||
</ | </ | ||
- | ===== Add IP Addresses to Master Switch Ports ===== | + | ===== Build Bridges |
- | :!: The SFP port is the gateway. | + | :!: Use the master ports for bridging and routing. |
- | Here we add IP addresses for the upstream link and the two master switch ports: | + | :!: We don't actually use these bridges here. |
< | < | ||
- | /ip address | + | / |
- | + | add name=bridge1 | |
- | add address=172.16.1.2/ | + | add name=bridge2 |
- | add address=198.167.189.17/ | + | |
- | add address=10.10.4.1/ | + | |
</ | </ | ||
- | Then we remove the default management | + | ===== Add IP Addresses to Master Switch Ports ===== |
- | < | + | :!: To use the SFP port as the gateway, just substitute the name of the interface ('' |
- | remove numbers=0 | + | |
- | </ | + | |
- | ===== Add Static Routes ===== | + | :!: Adjust the IP addressing to your needs. |
- | /ip route | + | Here we add IP addresses for the upstream link and the two master switch ports: |
- | add comment=" | + | < |
+ | /ip address | ||
+ | | ||
+ | add address=10.10.4.1/24 interface=ether2-master comment=" | ||
+ | add address=xxx.xxx.xxx.xxx/ | ||
+ | |||
+ | </ | ||
+ | ===== Configure Basic Networking ===== | ||
+ | Here we set the host name, DNS servers and the default route: | ||
+ | |||
+ | < | ||
+ | /system identity set name=CRS125 | ||
+ | /ip dns set servers=8.8.8.8, | ||
+ | /ip route add dst-address=0.0.0.0/ | ||
+ | </ | ||
===== Disable Neighbor Discovery ===== | ===== Disable Neighbor Discovery ===== | ||
Line 86: | Line 157: | ||
< | < | ||
- | /ip neighbor discovery set ether1-master-local,ether13-master-local | + | /ip neighbor discovery set ether2-master,ether19-master discover=no |
</ | </ | ||