Community discussions

MikroTik App
 
bk1
just joined
Topic Author
Posts: 21
Joined: Wed Mar 07, 2012 5:25 pm

Routing VLAN Traffic

Wed Mar 07, 2012 5:50 pm

I am trying to use a RB750 to route VLAN tagged traffic on our network and could use some help.

We currently have a HP 1800 series switch that is a layer2 vlan capable switch. We are setting up some Ubiquiti access points that are capable of broadcasting both a secured network and a guest network. The traffic from each would have a different vlan tag. So, I want to plug those into the HP 1800 switch and have my mikrotik route the traffic.

I would like the secured network traffic to be able to communicate with our network resources like our file server, printers, etc. The guest network should only have internet access.

We currently have an untangle firewall and we would like that to provide the internet/content filtering for both the secured wireless network and the guest network.

Could someone provide an example configuration for this? I am VERY new to mikrotik and have a lot of reading to do but I'm hoping someone can point me in the right direction.

Thanks.
 
User avatar
cybercoder
Member Candidate
Member Candidate
Posts: 175
Joined: Tue Dec 07, 2010 11:20 pm
Location: Guilan, Iran
Contact:

Re: Routing VLAN Traffic

Wed Mar 07, 2012 5:52 pm

Try to produce simple sheet of your network and post here first, we can't say anything without light approach of your network

regards
 
bk1
just joined
Topic Author
Posts: 21
Joined: Wed Mar 07, 2012 5:25 pm

Re: Routing VLAN Traffic

Wed Mar 07, 2012 6:20 pm

OK, please see the attached file and let me know if you need any more info.
You do not have the required permissions to view the files attached to this post.
 
tws101
Member Candidate
Member Candidate
Posts: 283
Joined: Thu Sep 08, 2011 11:25 pm

Re: Routing VLAN Traffic

Thu Mar 08, 2012 12:46 am

Vlan setup int he Mikrotik router in Winbox

1. Interfaces add the Vlans you are going to be using
2. Addresses list assign them IP address and subnet information
3. Pool add address pools
4. DHCP server add dhcp server (different DNS can be used here if needed)

That is done now Mikrotik will route between VLAN by default. You can use your UBNT Unifi guest control to segregate the traffic and isolate guests or you can use the routers firewall.
Here is an example of blocking Vlan routing in the router drop input src 192.168.0.0/24 dst 192.168.1.0/24 (add as many rules as needed)

That will get you most of the way there. You will still need to configure that switch to handle the VLAN traffic as needed.
 
Luth
newbie
Posts: 42
Joined: Sun Jun 05, 2011 4:04 pm
Location: Italy
Contact:

Re: Routing VLAN Traffic

Thu Mar 08, 2012 12:55 am

OK, please see the attached file and let me know if you need any more info.
Ok, I don't now specific configuration of hp switch but I suppose i similar to Cisco switch so:

-the ethernet port of the switch where is connected AP1 must be a trunk that transport traffic of secured netowrk (I assume for example vlan 10) and traffic of guest network (I assume for example vlan 20).
-the other switch port where is connected server, other switch, and ap2 must be set in access mode on vlan 10
-the ethernet port of the switch where is connected the rb750 must be a trunk that transport vlan 10 and 20

Now on the RB750 you can define vlan 10 and vlan 20 on the ethernet port that is connected to trunk port of the switch.

Now you have one phisical and two separated logical network.

Bye
 
bk1
just joined
Topic Author
Posts: 21
Joined: Wed Mar 07, 2012 5:25 pm

Re: Routing VLAN Traffic

Fri Apr 20, 2012 11:17 pm

I'm mainly using winbox right now to configure as I'm new so the graphical interface helps.

How using Winbox, do I assign multiple interfaces to a VLAN? I figured out how to assign one, but I can't figure out how to assign two.
 
tws101
Member Candidate
Member Candidate
Posts: 283
Joined: Thu Sep 08, 2011 11:25 pm

Re: Routing VLAN Traffic

Fri Apr 20, 2012 11:40 pm

Enslave the other interface

Example

Ethernet 5 has VLAN 10 and VLAN 20

Now we want to add Ethernet 4 to this.

Select Ethernet 4 and specify a master as Ethernet 5. (Now Ethernet 4 and 5 and VLANS on both are connected)

Remember Mikrotik will automatically try and route between vlans. You will need to add a firewall rule to prevent that if that is not the desired result.
 
dmka
just joined
Posts: 3
Joined: Mon Sep 16, 2013 10:09 pm

Re: Routing VLAN Traffic

Thu Dec 19, 2013 11:46 pm

Remember Mikrotik will automatically try and route between vlans. You will need to add a firewall rule to prevent that if that is not the desired result.
BTW, what is the right way to prevent mikrotik from routing between vlans on L2?

I am getting troubles trying to catch and drop the traffic between different customer's tagged vlan interfaces and untagged backbone network. My setup is similar to one noted above - RB951G with Internet connection and 2xLACP (802.3ad) bonding to an HP L2 manageable switch.

Who is online

Users browsing this forum: No registered users and 45 guests