On the switch I configured the port to “tagged” so vlan tags get into the RB.
Now I am stuck and confused about what to do next.
The default setup of master/slave ether is confusing to me. Should I disable the “port switching” for this ?
Where can I find a tutorial on vlans with RB, the mikrotik wiki I have already read.
Will someone please nudge me in the right direction or give a helping hand.
/interface vlan
add name=“vlanX-ether3” interface=ether2 vlan-id=X [FOR EACH VLAN]
/interface bridge
add name=bridge-vlanX [FOR EACH VLAN]
/interface bridge port
add bridge=bridge-vlan2 interface=ether3
add bridge=bridge-vlanX interface vlanX-ether2 [FOR EACH VLAN]Then you need to configure DHCP Servers, Firewall Rules, NAT, and whatever else you need for each VLAN.
If you want to give me remote access I can help you set it up remotely and we can chat via a google hangout or skype or whatever. Email me at my username @gmail.com if you want to go that way.
I will try this tomorrow (I am in GMT+1 zone) as today my brain is gone, at the moment I only have RB and 1 komp my disposal, to check this out I will need to get the another komputer and the manage-switch into my setup.
For each vlan I only need DHCP server, NAT I think should be done at WAN (ether1) port, shouldn’t it ?
Depends on what your goal is with NAT… but for masq you can do it all with one rule. You also may want to add rules to block traffic between the VLANs, but thats up to you.
This is an example of what your final config will look like… I don’t know all of your network details… but this should get you going pretty well.
/interface ethernet
set [ find default-name=ether1 ] master-port=none name=ether1-gateway
set [ find default-name=ether2 ] master-port=none name=ether2-trunk
set [ find default-name=ether3 ] master-port=none name=ether3-vlan2
set [ find default-name=ether4 ] master-port=none name=ether4 disabled=yes
set [ find default-name=ether5 ] master-port=none name=ether5 disabled=yes
/interface vlan
add name=“vlanX-ether3” interface=ether2 vlan-id=X [FOR EACH VLAN]
/interface bridge
add name=bridge-vlanX [FOR EACH VLAN]
/interface bridge port
add bridge=bridge-vlan2 interface=ether3
add bridge=bridge-vlanX interface vlanX-ether2 [FOR EACH VLAN]
/ip pool
add name=pool-vlanX ranges=192.168.X.2-192.168.X.254 [FOR EACH VLAN]
/ip dhcp-server
add address-pool=vlanX disabled=no interface=bridge-vlanX name=dhcp-vlanX [FOR EACH VLAN]
/ip address
add address=192.168.X.1 interface=bridge-vlanX network=192.168.X.0 [FOR EACH VLAN]
/ip dhcp-server network
add address=192.168.X.0/24 dns-server=192.168.X.1 gateway=192.168.X.1 [FOR EACH VLAN]
THis is what I did for my setup, in case this might be useful for somebody in the future
RB450G,
eth1=isp, wan dhcp client
eth2-4 bridged, ip 192.168.88.1 - ports used for diagnostics and setup only, I disabled dhcp server here 'cause I dont want any goofballs plugging any routers in these ports 'by mistake'