Some basic configurations on RB2011UIAS-2HnD-IN - Just give me some equivalent Cisco commands.

Hello.

First, I did found some tutorials, but they are GUI based.

Two weeks ago I bought a Mikrotik RB2011UIAS-2HnD-IN and coming from Cisco and Alcatel, I want to know some equivalent configuration commands (CLI).

First, I assume that on RB2011UIAS-2HnD-IN all the ports are in the same broadcast domain.

Let’s imagine I want to place each port on its own broadcast domain. On a Cisco L3 switch I would:

Enable IP routing, in Global Configuration Mode:

Switch (config)#ip routing

Then, I would enter a interface, and enable L3 on that interface:

Switch(config)#interface fastEthernet 0/1
Switch(config-if)#no switchport

After that, I would configure an IP address:

Switch(config)#interface fastEthernet 0/1
Switch(config-if)#ip address 192.168.2.2 255.255.255.0

Then, let’s say I want to enable NAT overload (PAT) in order to translate all addresses on the F0/1 interface to the Gig0/1 interface (assume the Gig0/1 has already been configured with an IP address):

Switch(config)#access-list 1 permit 192.168.2.0 0.0.0.255
ip nat inside source list 1 interface GigabitEthernet0/1 overload

Then, on Fa0/1 interface:

Switch(config-if)#ip nat inside

On Gig0/1:

Switch(config-if)#ip nat outside

And that’s it.

In alternative, I could configure the routing to be vlan based, instead of configuring the Fa0/1 as a L3 interface:

Switch(config)#vlan 3

The interface would be:

Switch(config)#interface Vlan3
Switch(config-if)#ip address 192.168.2.254 255.255.255.0
Switch(config-if)#ip nat inside

Then, the only config change from the other one would be the nat inside on interface vlan 3 instead of Fa0/1:

Switch(config)#interface vlan 3
Switch(config-if)#ip nat inside

What are the equivalent configuration commands on a Mikrotik Router?

I did try to follow one config, but I was getting the following error:

 1 I  ;;; in/out-interface matcher not possible when interface (ether4) is slave - use master instead (bridge-local)

Which I assume is related to the fact that port is not yet configured to be a L3 interface (the no switchport equivalent command has not yet been ran). The thing is, even without being configured as a L3 interface, I could set an IP address on that same interface.

So, I found some conflicting tutorials and information, if you can clear this out and explain what are the equivalent commands on a Mikrotik Router, so I can use it as a baseline, I would be glad :slight_smile:

Best regards.