RB2011 switch port groups

Hi.

does anybody knows if ports can be grouped on RB2011 to act like a simple switch ? The goal is to achieve wire speed switching on some ports. If it’s possible which ports can be joined to a switch?

Iirc there are 2 switch chips. One for the gig ports and the SFP slot (RB2011LS) and one for the fast ethernet ports.

Hth,
uebi

Hm… I’m unsure. I don’t see the second switch chip.

In winbox menu Switch you should see

Atheros8327 for ether1-ether5+sfp1 and
Atheros8227 for ether6-ether10


KR,
uebi

You have right!

Atheros8327 is present on RB2011 series(ether1-ether5+sfp1) RB750GL, RB751G-2HnD and RB1100AH, RB1100AHx2(ether1-ether5, ether6-ether10).
Atheros8227 is present on RB2011 series(ether6-ether10).
More info http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features

There is still one question What’s the difference in features between 8327 and 8227?

Did you ever find a way to put all ports into 1 switch?
I am wanting to do this on RB493g and RB2011

Did you ever find a way to put all ports into 1 switch?
I am wanting to do this on RB493g and RB2011

Set ether1 as the master for ether 2-5, then set ether6 as the master for ether 7-10, then bridge ether6 to ether1.

See if that works for you.

New to routeros, so please excuse the noob question. How to configure this? In cli or the web interface?

Either one… Or you can use Winbox which is a free GUI configuration and management tool.

Ok thanks. Checked my config in Winbox,

Ether6 is master for 7-10. And Ether 2-5, ether6 and wlan 1 are part of bridge-local. Is this correct? And I assume ether 1 is left out because it is the “WAN” port and must be routed?

Ok thanks. Checked my config in Winbox,

Ether6 is master for 7-10. And Ether 2-5, ether6 and wlan 1 are part of bridge-local. Is this correct? And I assume ether 1 is left out because it is the “WAN” port and must be routed?[/quote]


The configuration I listed was only to use the RB2011 as a complete switch. Do you have a RB2011UAS-2HnD? If so, add a Cisco compatible GLC module to the SFP port. That will give you GigE ethernet which you can use for you NAT interface to the internet.

The configuration I listed was only to use the RB2011 as a complete switch. Do you have a RB2011UAS-2HnD? If so, add a Cisco compatible GLC module to the SFP port. That will give you GigE ethernet which you can use for you NAT interface to the internet.[/quote]


Yes, I have a RB2011UAS-2HnD. So is my config correct?

I have been searching high and low for a Copper SFP, but they are all in excess of 70 USD. Anyplace where I can source them for cheap?

Do you really need it? 10 copper ports is not enough for you?

Back to the original question. If you need WAN port to be 1G port then do the following:

  1. Set master port for ports 1, 2 and 6 to none.
  2. Set master port for ports 3-5 to ether2.
  3. Set master port for ports 7-10 to ether6.
  4. Make ether2 and ether6 a part of the bridge (bridge-local).

This way you will have ether1 as your WAN port and bridge-local as your LAN port. 1G ports 2-5 are hardware-switched together, 100M ports 6-10 are hardware switched together as well, and these to groups of hardware switched ports are software bridged.

And if 100M is enough for your WAN port you can consider the following scenario as an alternative:

  1. Set master port for ports 1, 6 and 10 to none.
  2. Set master port for ports 2-5 to ether1.
  3. Set master port for ports 7-9 to ether6.
  4. Make ether1 and ether6 a part of the bridge (bridge-local).

This way you will have ether10 as your WAN port and bridge-local as your LAN port. 1G ports 1-5 are hardware-switched together, 100M ports 6-9 are hardware switched together as well, and these to groups of hardware switched ports are software bridged.

Regards,
Andrey.

My broadband link is at 100 Meg now, see below :smiley:

For a few dollars more, I can upgrade it to 150 Meg. So yes, I need my WAN port to be able to route more than 100 Meg.

And yes, if I can add one more Gig port to the RB2011UAS-2HnD, I can remove a four port switch from my network. Less complexity, power and heat :slight_smile:

Is this config correct? Why is there no entry under “Switch all ports” Does it mean the CPU is handling the traffic now? How do I configure ether1 as the WAN port?

[admin@MikroTik] > interface ethernet switch print
Flags: I - invalid

NAME TYPE MIRROR-SOURCE MIRROR-TARGET SWITCH-ALL-PORTS

0 switch1 Atheros-8327 none none
1 switch2 Atheros-8227 none none



[admin@MikroTik] > interface ethernet print
Flags: X - disabled, R - running, S - slave

NAME MTU MAC-ADDRESS ARP MASTER-PORT SWITCH

0 X sfp1 1500 xx:xx:xx:xx:xx:A9 enabled none switch1
1 R ether1-gateway 1500 xx:xx:xx:xx:xx:AA enabled none switch1
2 R ether2 1500 xx:xx:xx:xx:xx:AB enabled none switch1
3 RS ether3 1500 xx:xx:xx:xx:xx:AC enabled ether2 switch1
4 S ether4 1500 xx:xx:xx:xx:xx:AD enabled ether2 switch1
5 S ether5 1500 xx:xx:xx:xx:xx:AE enabled ether2 switch1
6 R ether6 1500 xx:xx:xx:xx:xx:AF enabled none switch2
7 RS ether7 1500 xx:xx:xx:xx:xx:B0 enabled ether6 switch2
8 S ether8 1500 xx:xx:xx:xx:xx:B1 enabled ether6 switch2
9 S ether9 1500 xx:xx:xx:xx:xx:B2 enabled ether6 switch2
10 S ether10 1500 xx:xx:xx:xx:xx:B3 enabled ether6 switch2
[admin@MikroTik] >

According to http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features this option is only meaningful on RB450G and RB435G boards. On your device (RB2011, I assume) this option does nothing.

That depends on what traffic you’re referring to. Lets assume you’ve configured your device like this:

  1. Set master port for ports 1, 2 and 6 to none.
  2. Set master port for ports 3-5 to ether2.
  3. Set master port for ports 7-10 to ether6.
  4. Make ether2 and ether6 a part of the bridge (bridge-local).

In this case you have two groups of ports. The first group includes 1G ports from 2 to 5, while the second group includes 100M ports from 6 to 10. any traffic passing between any couple of ports inside any given group is handled by the switch chip. But any traffic passing from port in one group to a port in another group will be handled by CPU.

For example:
Traffic between ports 2 and 5 - switch chip
Traffic between ports 3 and 4 - switch chip
Traffic between ports 6 and 7 - switch chip
Traffic between ports 8 and 10 - switch chip
Traffic between ports 3 and 6 - CPU
Traffic between ports 5 and 9 - CPU

There is no way to pass traffic between 1G and 100M ports off-CPU.

You’d better show us /interface ethernet export

[admin@MikroTik] > interface ethernet export

/interface ethernet
set 0 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=yes full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:A9 master-port=none mtu=1500 name=sfp1 speed=100Mbps
set 1 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:AA master-port=none mtu=1500 name=ether1-gateway speed=100Mbps
set 2 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:AB master-port=none mtu=1500 name=ether2 speed=100Mbps
set 3 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:AC master-port=ether2 mtu=1500 name=ether3 speed=100Mbps
set 4 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:AD master-port=ether2 mtu=1500 name=ether4 speed=100Mbps
set 5 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:AE master-port=ether2 mtu=1500 name=ether5 speed=100Mbps
set 6 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:AF master-port=none mtu=1500 name=ether6 speed=100Mbps
set 7 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:B0 master-port=ether6 mtu=1500 name=ether7 speed=100Mbps
set 8 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:B1 master-port=ether6 mtu=1500 name=ether8 speed=100Mbps
set 9 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:B2 master-port=ether6 mtu=1500 name=ether9 speed=100Mbps
set 10 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=xx:xx:xx:xx:xx:B3 master-port=ether6 mtu=1500 name=ether10 speed=100Mbps
/interface ethernet switch
set 0 mirror-source=none mirror-target=none name=switch1
set 1 mirror-source=none mirror-target=none name=switch2
/interface ethernet switch port
set 0 vlan-header=leave-as-is vlan-mode=disabled
set 1 vlan-header=leave-as-is vlan-mode=disabled
set 2 vlan-header=leave-as-is vlan-mode=disabled
set 3 vlan-header=leave-as-is vlan-mode=disabled
set 4 vlan-header=leave-as-is vlan-mode=disabled
set 5 vlan-header=leave-as-is vlan-mode=disabled
set 6 vlan-header=leave-as-is vlan-mode=disabled
set 7 vlan-header=leave-as-is vlan-mode=disabled
set 8 vlan-header=leave-as-is vlan-mode=disabled
set 9 vlan-header=leave-as-is vlan-mode=disabled
set 10 vlan-header=leave-as-is vlan-mode=disabled
set 11 vlan-header=leave-as-is vlan-mode=disabled
set 12 vlan-header=leave-as-is vlan-mode=disabled

I did some testing with jperf, getting only around 225 Mbps between two gig ports.

Euhm, why are all your speeds set to 100Mbit? If I do an export the speed are not explicitly listed unless I forced them?

Can you try forcing a gigabit or setting auto-negotiation?

Otherwise try to clear your config, configure the bare minimum (put them in a switch group) and try then?

I checked the status, the ports negotiated the right speeds. And there is no option to remove the explicitly set speeds.

This is what I see in the command line

Interface → ethernet → set → ether1-gateway —> speed=100Mbps / 10Mbps / 1Gbps

Block diagram from the link explains about switch chip and ports,
http://routerboard.com/pdf/446/Block-RB2011UAS-2HnD.pdf