Using Mikrotik as a Router AND Switch?

My Mikrotik has several ports on it. One is the WAN Internet port and the others are LAN. I have a remote wireless setup and would like to setup the Mikrotik in the following fashion (if possible) to cut down on the amount of separate pieces of equipment I need to have running:

PORT 1: WAN
PORT 2: LAN
PORT 3: (Switch port of WAN)

OR:
PORT 1: WAN
PORT 2: LAN
PORT 3: Network 3
PORT 4: Network 3

Is there anyway to set this up?

Some RouterBOARDs have integrated switch chips - you just set the master-port of ether4 to ether3 and the two are switched at wire speed. If your RouterBOARD doesn’t have a switch chip or you’re running on x86 you can add a bridge and add ether3 and ether4 to the bridge, and configure everything on the bridge interface.

I have an RB450, does that have the switch chip?

http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features#Introduction

Possibly. Depends on what version of the RB450. If you have a menu item named “/interface ethernet switch” then you do have a switch chip.

I do… So pardon the question, is there a document on what I need to do to split things up this way? I’m just getting my feet wet with RouterBoards.

Right now, PORT 1 is WAN
PORTS 2,3,4 are all LAN

I’d Like:
PORT 1 = WAN
PORT 2 = LAN
PORT 3 = LAN or WAN (don’t really care at this point)
PORT 4 = WAN

Yes, the document I linked to shows that.

To get ether1 as WAN and ether2, ether3 and ether4 switched for the LAN you just set the master-port of ether3 and ether4 to ether2. At that point they all behave like one layer 3 interface for your LAN, and traffic between them is switched. All layer 3 configuration (IP addresses etc.) would be configured on ether2.

Run the below via the console cable or connected via the WAN since it will possibly interrupt connectivity and you don’t want to lock yourself out.

/interface ethernet
# remove all existing switch groups
set [find] master-port=none
# create port group for ether2, 3 and 4
set ether3,ether4 master-port=ether2

Sorry, I’ll admit I didn’t read it, I’m on my mobile. Thanks I’ll give this a go.

OK,
I'm not understanding something (or trying to do something the RB can't do).

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

NAME MTU MAC-ADDRESS ARP MASTER-PORT SWITCH

0 R Internet 1500 00:0C:42:57:E5:66 enabled
1 R Community AP1 1500 00:0C:42:57:E5:67 enabled none switch1
2 RS ether3-loca... 1500 00:0C:42:57:E5:68 enabled Community AP1 switch1
3 S ether4-loca... 1500 00:0C:42:57:E5:69 enabled Community AP1 switch1
4 S ether5-loca... 1500 00:0C:42:57:E5:6A enabled Community AP1 switch1

I want port 1 to stay as is
I want port 2 to be a slave of 0 (e.g. to switch the Internet)

[admin@Indigo Router] /interface ethernet> set 2 master-port=Internet
chosen master-port does not support this feature

Look at the switch column, port 0 can’t be part of a switchgroup on switch1 because it isn’t part of that switch chip. Therefore you cannot slave port 2 to port 0. The hardware you have doesn’t support what you’re trying to do.