A few weeks ago we purchased 2 x Cloud Router Switch CRS326-24G-2S+RM.
We have received 4 public static IPv4 addresses from "one network only" (/29 network) from our ISP and we want to segment our network behind our router in 4 different separated vLANs diverting incoming and outgoing network traffic from each one of these vLANs from and to its dedicated up-link out of the four we've received from our ISP. In other words these is what we want to achieve:
• VLAN 100: from port 1 to port 5
• VLAN 200: from port 6 to port 10
• VLAN 300: from port 11 to port 15
• VLAN 400: from port 16 to port 20
• Port 21 connected to WAN with public static IPv4 address: X.X.X.2/29
• Port 22 connected to WAN with public static IPv4 address: X.X.X.3/29
• Port 23 connected to WAN with public static IPv4 address: X.X.X.4/29
• Port 24 connected to WAN with public static IPv4 address: X.X.X.5/29
• Port 21 has to be used as a Gateway for any VLAN 100
• Port 22 has to be used as a Gateway for any VLAN 200
• Port 23 has to be used as a Gateway for any VLAN 300
• Port 24 has to be used as a Gateway for any VLAN 400
I have attached below a picture of the topology I want to achieve: PROBLEM
I managed to configured 4 VLANs but after checking the wiki documentation online (https://wiki.mikrotik.com) as well as watching a tons of videos online, it looks like that the problem is due to the fact that in the MikroTik router "Cloud Router Switch CRS326-24G-2S+RM" I have to add a static route in the IP > Routes section for the default 0.0.0.0 outgoing traffic selecting the gateway of the WAN that I want to use for each VLAN. This gateway has to be different for each VLAN but in my case we have only "one WAN" with only "one gateway". Therefore I can only add one gateway for one VLAN only.
To make it more clear:
- In a typical situation there are 2 WANs and at least 2 VLANs and I configure the router in a such a way that computers from VLAN 1 use WAN 1 and computers from VLAN 2 use WAN 2.
- In my scenario I have more 4 VLANs that have to use, respectively, 4 up-links in the same WAN (or if you want to make it easier: 2 VLANs that have to use, respectively, 2 up-links in the same WAN).
I hope I made it clear enough!