michael193
Goto Top

MikroTik Hardware Offloading

Hallo zusammen

Ich kenne mich mit MikroTik nicht sehr gut aus. Es geht um den MikroTik Router CRS312-4C+8XG. Ich habe eine Konfiguration für ein statisches Routing (siehe unten). Das Routing funktioniert soweit, nur der Datendurchsatz ist recht bescheiden. Beim Übertragen von grösseren Datenmengen springt die CPU-Last von 0% auf 100%. Somit wäre auch gesagt, wo das Problem liegt: Das Routing wird komplett mit der CPU gemacht. MikroTik bietet ein Feature, das die CPU entlasten soll: Hardware Offloading. Um Hardware Offloading zu nutzen, müssen die Ports mit einer Bridge verbunden werden. Ich habe die Bridge entsprechend angepasst, leider ohne Erfolg, d.h. das Routing funktioniert so nicht mehr. Im Moment sehe ich grad nicht weiter. Welche Teile der Konfiguration müssen denn geändert werden? Weiss jemand weiter?

Die funktionierende Konfiguration ohne Hardware Offloading sieht so aus:
# feb/22/2020 18:25:00 by RouterOS 6.46.3
# software id = K9UC-SSTZ
#
# model = CRS312-4C+8XG
# serial number = ...
/interface bridge
add admin-mac=74:4D:28:XX:XX:XX arp=proxy-arp auto-mac=no comment=defconf name=bridge protocol-mode=none
/interface ethernet
set [ find default-name=combo1 ] arp=proxy-arp
set [ find default-name=ether1 ] arp=proxy-arp loop-protect=off
set [ find default-name=ether2 ] arp=proxy-arp loop-protect=off
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/interface bridge port
add bridge=bridge comment=defconf interface=combo2
add bridge=bridge comment=defconf interface=combo3
add bridge=bridge comment=defconf interface=combo4
/ip address
add address=192.168.88.1/24 interface=ether9 network=192.168.88.0
add address=192.168.1.55/24 interface=ether2 network=192.168.1.0
add address=10.103.0.55/16 interface=combo1 network=10.103.0.0
add address=192.168.1.55/24 interface=ether1 network=192.168.1.0
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=10.103.15.1 new-routing-mark=UUTA passthrough=yes
add action=mark-routing chain=prerouting dst-address=10.103.15.2 new-routing-mark=UUTA passthrough=yes
add action=mark-routing chain=prerouting dst-address=10.103.15.220 new-routing-mark=UUTA passthrough=yes
add action=mark-routing chain=prerouting dst-address=192.168.1.105 new-routing-mark=main passthrough=yes routing-mark=UUTA
add action=mark-routing chain=prerouting dst-address=10.103.25.1 new-routing-mark=UUTB passthrough=yes
add action=mark-routing chain=prerouting dst-address=10.103.25.2 new-routing-mark=UUTB passthrough=yes
add action=mark-routing chain=prerouting dst-address=10.103.25.220 new-routing-mark=UUTB passthrough=yes
add action=mark-routing chain=prerouting dst-address=192.168.1.105 new-routing-mark=main passthrough=yes routing-mark=UUTB
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=10.103.15.1 routing-mark=UUTA to-addresses=192.168.1.1
add action=dst-nat chain=dstnat dst-address=10.103.15.2 routing-mark=UUTA to-addresses=192.168.1.2
add action=dst-nat chain=dstnat dst-address=10.103.15.220 routing-mark=UUTA to-addresses=192.168.1.220
add action=src-nat chain=srcnat routing-mark=UUTA src-address=10.103.0.100 to-addresses=192.168.1.105
add action=dst-nat chain=dstnat dst-address=10.103.25.1 routing-mark=UUTB to-addresses=192.168.1.1
add action=dst-nat chain=dstnat dst-address=10.103.25.2 routing-mark=UUTB to-addresses=192.168.1.2
add action=dst-nat chain=dstnat dst-address=10.103.25.220 routing-mark=UUTB to-addresses=192.168.1.220
add action=src-nat chain=srcnat routing-mark=UUTB src-address=10.103.0.100 to-addresses=192.168.1.105
/ip route
add distance=1 dst-address=10.103.15.1/32 gateway=192.168.1.1 routing-mark=UUTA
add distance=1 dst-address=10.103.15.2/32 gateway=192.168.1.1 routing-mark=UUTA
add distance=1 dst-address=10.103.15.220/32 gateway=192.168.1.1 routing-mark=UUTA
add distance=1 dst-address=10.103.25.1/32 gateway=192.168.1.1 routing-mark=UUTB
add distance=1 dst-address=10.103.25.2/32 gateway=192.168.1.1 routing-mark=UUTB
add distance=1 dst-address=10.103.25.220/32 gateway=192.168.1.1 routing-mark=UUTB
add distance=1 dst-address=192.168.1.105/32 gateway=10.103.0.100
/ip route rule
add dst-address=10.103.15.1/32 interface=combo1 table=UUTA
add dst-address=10.103.15.2/32 interface=combo1 table=UUTA
add dst-address=10.103.15.220/32 interface=combo1 table=UUTA
add dst-address=192.168.1.105/32 routing-mark=UUTA table=main
add dst-address=10.103.25.1/32 interface=combo1 table=UUTB
add dst-address=10.103.25.2/32 interface=combo1 table=UUTB
add dst-address=10.103.25.220/32 interface=combo1 table=UUTB
add dst-address=192.168.1.105/32 routing-mark=UUTB table=main
/ip route vrf
add interfaces=ether1 route-distinguisher=101:1 routing-mark=UUTA
add interfaces=ether2 route-distinguisher=102:2 routing-mark=UUTB
/system clock
set time-zone-name=Europe/Zurich
/system routerboard settings
set boot-os=router-os

Vielen Dank,
Michael

Content-Key: 551229

Url: https://administrator.de/contentid/551229

Printed on: April 20, 2024 at 02:04 o'clock

Member: Der-Phil
Solution Der-Phil Feb 24, 2020 at 07:25:29 (UTC)
Goto Top
Hi!

Was Du tun möchtest, ist so nicht möglich. Der CRS ist ein Layer-2-Switch mit einer mickrigen CPU, die man als Router zweckentfremden kann. Geeignet ist sie dafür nicht.

--> Hardware-Offloading mit dem CRS ermöglicht es, die CPU beim SWITCHING zu umgehen

Phil
Member: radiogugu
Solution radiogugu Feb 24, 2020 at 09:19:04 (UTC)
Goto Top
Hallo.

Hast Du keine Möglichkeit einen separaten Router (PFSense / OPNSense, etc) zu nutzen? Du hast leider keine Aussage getroffen über Deine restliche Umgebung.

Wie Der-Phil schon anmerkte ist das Gerät nicht wirklich für das Routing geeignet und die Mikrotik Homepage lässt auch darauf schließen, dass die Layer 3 Funktionalitäten in Verbindung mit dem RouterOS nur eine Möglichkeit sind. Die Kernkompetenz liegt eindeutig auf dem Switiching.

Gruß
Radiogugu
Member: Michael193
Michael193 Feb 24, 2020 at 18:32:51 (UTC)
Goto Top
Hallo zusammen

Vielen Dank für eure Antworten. Ihr habt mir weitergeholfen. Ich werde wohl einen "echten" Router mit genügend Power einsetzen müssen.

Grüsse
Michael