This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_sw_vs_bridge [2016/11/09 07:54] gcooper |
networking:router:mikrotik_sw_vs_bridge [2016/11/09 08:22] (current) gcooper |
||
---|---|---|---|
Line 5: | Line 5: | ||
===== Faster Packet Processing ===== | ===== Faster Packet Processing ===== | ||
- | You may get significantly faster packet processing and lower CPU utilization by removing ports from a bridge, where possible, to add them to switch group. | + | You may get significantly faster packet processing and lower CPU utilization by removing ports from a bridge, where possible, to add them to a switch group. |
- | When router ports are bridged, | + | **When router ports are bridged, all packets going through these interface are processed using the router' |
- | So, in the case of an RB2011 with two switches and ten Ethernet ports, you can make '' | + | ===== Example ===== |
+ | |||
+ | So, in the case of an RB2011 with two switches and ten Ethernet ports, you could: | ||
+ | |||
+ | * make '' | ||
+ | * make '' | ||
+ | * make '' | ||
:!: Don't forget that before assigning master port you must remove them from any bridge. | :!: Don't forget that before assigning master port you must remove them from any bridge. | ||
< | < | ||
+ | /interface | ||
+ | set ether1 name=ether1-gateway | ||
+ | set ether2 name=ether2-master | ||
+ | set ether3 name=ether3-slave | ||
+ | set ether4 name=ether4-slave | ||
+ | set ether5 name=ether5-slave | ||
+ | set ether6 name=ether6-master | ||
+ | set ether7 name=ether7-slave | ||
+ | set ether8 name=ether8-slave | ||
+ | set ether9 name=ether9-slave | ||
+ | set ether10 name=ether10-slave | ||
+ | |||
/interface ethernet | /interface ethernet | ||
set ether1 master-port=none | set ether1 master-port=none | ||
- | set ether2 master-port=ether1 | + | set ether2 master-port=none |
- | set ether3 master-port=ether1 | + | set ether3 master-port=ether2 |
- | set ether4 master-port=ether1 | + | set ether4 master-port=ether2 |
- | set ether5 master-port=ether1 | + | set ether5 master-port=ether2 |
set ether6 master-port=none | set ether6 master-port=none | ||
set ether7 master-port=ether6 | set ether7 master-port=ether6 | ||
Line 27: | Line 45: | ||
</ | </ | ||
- | After doing that you' | + | After doing that you' |
- Use a software bridge | - Use a software bridge | ||
+ | * Perhaps '' | ||
- Connect them using a cable | - Connect them using a cable | ||
+ | * Wastes physical ports | ||
===== Software (CPU) bridging ===== | ===== Software (CPU) bridging ===== | ||
- | In this case, switch groups | + | In this case, traffic between |
< | < | ||
/interface bridge | /interface bridge | ||
add name=bridge-local | add name=bridge-local | ||
- | port add interface=eth1 bridge=bridge-local | + | port add interface=ether2 |
- | port add interface=eth6 bridge=bridge-local | + | port add interface=ether6 bridge=bridge-local |
+ | port add interface=sfp1 | ||
</ | </ | ||
- | NOTE: don't forget to assign an IP address to the bridge and, if you're using DHCP server on Mikrotik, change its interface to bridge-local as well. | + | < |
< | < | ||
/ip address add interface=bridge-local address=192.168.1.1/ | /ip address add interface=bridge-local address=192.168.1.1/ | ||
- | /ip dhcp-server add interface=bridge-local address-poll=[name of your address pool] | + | /ip dhcp-server add interface=bridge-local address-pool=[name of your address pool] |
</ | </ | ||
===== Patch Cord ===== | ===== Patch Cord ===== | ||
- | Just connect any port from group 1 (ether1-5) to any port in group 2 (ether6-10). | + | While rarely done, you //can// just connect any port from group 1 (ether2-5) to any port in group 2 (ether6-10). |
+ | |||
+ | Generally, we suggest using the first option (bridging). |