Thu Oct 15, 2009 1:57 am
A Mikrotik Routerboard is a router first, switch/bridge, etc second. The point of VLANs are to replace an actual LAN. So, if you want to use VLANs, I suggest use only one cable between your switch and mikrotik. Place that switchport in "trunk mode" the IP address on the ethernet port on your mikrotik will be untagged, usually "vlan 1" on switches. Then create your additional VLANs in the mikro as well as inside your switch. Place the vlans in the mikrotik under the interface that connects to the switch. Make sure you trunk allow all the vlans you need through your trunked switchport. Place whatever ports on your switch in their necessary switchport access ports. Setup IP addressing, dhcp servers, etc on the VLANs in the mikrotik. That's it. Otherwise, if you have multiple switches, you don't need VLANs, just use the ports on the Mikrotik.
Two examples:
Mikrotik cabled ether 1 to fast 1 on switch
vlan 3,5,6 setup on mikro under ether 1
vlan 3,5,6 setup on switch and trunked through fast 1
ether 1 ip on mikro ether 1 is 192.168.1.1/24
vlan 1 ip on switch 192.168.1.2/24
vlan 3 ip on mikro is 10.10.10.1/24
vlan 5 ip on mikro is 192.168.200.1/24
vlan 5 ip on mikro is 192.168.100.1/25
vlan 6 ip on mikro is 10.20.30.1/29place fast 2-6 on switch in switchport access mode, access vlan 3
place fast 7-12 on switch in switchport access mode, access vlan 5
place fast 13-24 on switch in switchport access mode, access vlan 6
setup dhcp servers & ip pools as needed on each interface in the mikrotik.
done.
Example 2:
Mikrotik cabled as follows:
ether 1 > internet
ether 2 > switch 1
ether 3 > switch 2
ether 4 > server
ether 5 > access point
assign IP ranges, dhcp servers, etc to each interface
No VLAN necessary, using physically separate LAN because you have different routed interfaces.
If you only have one switch and want different physical interfaces:
On switch:
Place all ports in switchport mode access.
Place 1-8 in access vlan 2
Place 9-16 in access vlan 5
Place 17-24 in access vlan 8
cable as follows:
Mikrotik
ether 1 > internet
ether 2 > switchport 1
ether 3 > switchport 9
ether 4 > switchport 17
Best of luck,
Brian
No VLANs needed in Mikro, just do IP setup on physical interfaces.