Mikrotik Sub-Interfaces for Dot1q Traffic

Hey All,

Just wondering, with Mikrotik in comparison to Cisco Routers.
How would one configure Sub-Interfaces, specifically for dot1q.

Eg. On Cisco

interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1.100
encapsulation dot1Q 100
ip address 192.168.100.1 255.255.255.0
!

So the point is you having a Switch Trunk port connected to your router and it would perform the routing between VLANS from here.
You can have several Sub-interfaces all with different IP Settings.
I can’t seem to figure out how this is done. I have a Mikrotik Cloud Core Router.

Any help would be great.

This is the rough equivalent you are looking for.

/interface vlan add interface="ether1" vlan-id=100 name=VLAN100
/ip address add interface=VLAN100 address=192.168.100.1/24

It will create a sub interface of VLAN100 on ether1 that you can reference just like any other interface, you can then assign an IP address, DHCP server, or any other Ethernet like service you want to the VLAN. It is treated as a separate routed interface, and the router will by default route between all routed interface unless the firewall prevents it.

Awesome, so say I needed a few Sub Interfaces on one Physical Interface it would just be:

/interface vlan add interface="ether1" vlan-id=100 name=VLAN100
/ip address add interface=VLAN100 address=192.168.100.1/24



/interface vlan add interface="ether1" vlan-id=200 name=VLAN200
/ip address add interface=VLAN200 address=192.168.200.1/24

Correct, you can add as many sub interfaces as you need to.