Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
mikrotikvlanswitching [2021/08/17 08:33] – Fabian Horst | mikrotikvlanswitching [2021/08/17 12:52] (aktuell) – Fabian Horst | ||
---|---|---|---|
Zeile 15: | Zeile 15: | ||
- | Warning: Not all devices with a switch chip are capable of VLAN switching on a hardware level, check the supported features for each switch chip, the compatibility table can be found Here. If a device has VLAN table support, then it is capable of VLAN switching using the built-in switch chip. You can check the device' | + | Warning: Not all devices with a switch chip are capable of VLAN switching on a hardware level, check the supported features for each switch chip, the compatibility table can be found Here. If a device has VLAN table support, then it is capable of VLAN switching using the built-in switch chip. You can check the device' |
+ | Achtung: Nicht alle Geräte mit einem Switch Chip unterstützten VLAN-Switching auf Hardware Ebene! Prüfe bei jedem Gerät die kompatibilität! Wenn ein Gerät eine VLAN-Switchin Tabelle hat ist es unterstützt. Du kannst die Funktion bei einem MikroTik mit folgendem Befehl prüfen: < | ||
+ | |||
+ | Hier ein Beispiel eines RB2011LS(mipsbe) | ||
+ | < | ||
+ | [admin@MikroTik] > /interface ethernet switch print | ||
+ | Flags: I - invalid | ||
+ | # | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 2011,RB750 etc. Musterkonfiguration ==== | ||
< | < | ||
Zeile 39: | Zeile 52: | ||
set switch1-cpu vlan-header=leave-as-is vlan-mode=secure | set switch1-cpu vlan-header=leave-as-is vlan-mode=secure | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | bridge -> vlan filtering an!</ | ||
More detailed examples can be found here. https:// | More detailed examples can be found here. https:// | ||
Zeile 71: | Zeile 87: | ||
More detailed examples can be found here: | More detailed examples can be found here: | ||
https:// | https:// | ||
+ | |||
+ | === Bad Config === | ||
+ | |||
+ | < | ||
+ | /interface bridge | ||
+ | add name=bridge | ||
+ | add name=bridge10 | ||
+ | add name=bridge20 | ||
+ | add name=bridge30 | ||
+ | /interface wireless | ||
+ | set [ find default-name=wlan1 ] ssid=MikroTik | ||
+ | /interface ethernet | ||
+ | set [ find default-name=ether1 ] name=ether1-RPI-TRUNK | ||
+ | set [ find default-name=ether2 ] name=ether2-ISP1-10 | ||
+ | set [ find default-name=ether3 ] name=ether3-ISP2-20 | ||
+ | set [ find default-name=ether4 ] name=ether4-ISP3-30 | ||
+ | set [ find default-name=ether5 ] name=ether5-LAN | ||
+ | /interface vlan | ||
+ | add interface=bridge name=ether1-vlan10 vlan-id=10 | ||
+ | add interface=bridge name=ether1-vlan20 vlan-id=20 | ||
+ | add interface=bridge name=ether1-vlan30 vlan-id=30 | ||
+ | /interface wireless security-profiles | ||
+ | set [ find default=yes ] supplicant-identity=MikroTik | ||
+ | /interface bridge port | ||
+ | add bridge=bridge interface=ether5-LAN | ||
+ | add bridge=bridge interface=ether1-RPI-TRUNK | ||
+ | add bridge=bridge10 interface=ether2-ISP1-10 | ||
+ | add bridge=bridge10 interface=ether1-vlan10 | ||
+ | add bridge=bridge20 interface=ether1-vlan20 | ||
+ | add bridge=bridge20 interface=ether3-ISP2-20 | ||
+ | add bridge=bridge30 interface=ether4-ISP3-30 | ||
+ | add bridge=bridge30 interface=ether1-vlan30 | ||
+ | /ip dhcp-client | ||
+ | add disabled=no interface=bridge | ||
+ | /ip dns | ||
+ | set servers=8.8.8.8, | ||
+ | /system clock | ||
+ | set time-zone-name=Europe/ | ||
+ | /system identity | ||
+ | set name=MPTCP-SWITCH | ||
+ | /system ntp client | ||
+ | set enabled=yes server-dns-names=de.pool.ntp.org | ||
+ | </ |