Community discussions

MikroTik App
 
Rabitech
just joined
Topic Author
Posts: 22
Joined: Fri Feb 09, 2007 10:14 am

Transparent shaping with Queues for tagged VLAN traffic

Wed Apr 02, 2008 2:38 am

Hi everyone,

I have setup a box with 2 NICs as a transparent bridge for traffic shaping with v3.4

It seems that the queues do not pickup traffic in tagged VLANS. These VLANS are not setup on this box, it just transparently passes the traffic through.

Is there a way I can use mangle to set the packet-mark for certain VLAN traffic, then send traffic to a particular queue based on the packet-mark?

Under bridge I have "Use IP Firewall" and "Use IP Firewall for VLAN" ticked.

Regards,
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Transparent shaping with Queues for tagged VLAN traffic

Wed Apr 02, 2008 2:11 pm

As far as I know it is not possible to mark traffic in mangle per VLAN-ID [Tag].
You can set mangle marks per specific interface [VLAN interface, if VLAN is configured on RouterOS] or you need to think about other matcher to mark the traffic.
 
Rabitech
just joined
Topic Author
Posts: 22
Joined: Fri Feb 09, 2007 10:14 am

Re: Transparent shaping with Queues for tagged VLAN traffic

Thu Apr 03, 2008 12:47 am

Hi Sergejs,

Thanks for your response, here is some more information.

VLAN1 192.168.0.0/24 (Untagged)
VLAN2 10.0.0.0/24 (802.1q Tagged)

This traffic passes through the bridge, VLAN1 is untagged and VLAN2 is tagged. (Neither are setup on the RouterOS)

If I setup a queue with a target for 192.168.0.1 traffic to and from that IP goes into the queue.
If I setup a queue with a target for 10.0.0.1 no traffic makes it in the queue.

Do you have any ideas how I could make a queue for a certain address in VLAN2

Regards,
 
airnet
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Thu Feb 09, 2006 12:46 pm

Re: Transparent shaping with Queues for tagged VLAN traffic

Mon Apr 07, 2008 12:54 pm

If you bridge the VLANS properly you can queue them and do all sorts of neat stuff.

You currently have ETH1----bridge----ETH2. Whilst this will pass vlan traffic, there is not much you can do with it.

Remove bridge that contains the physical ports, and make sure you dont put physical ports in the bridge, only VLAN ports.

EG
Add VLAN1 to ETH1
and VLAN1 to ETH2
Then create bridge1 and place both VLAN1 ports into bridge 1

then

Add VLAN2 to ETH1
and VLAN2 to ETH2
Then create bridge2 and place both VLAN2 ports into bridge 2


NOTE: you really shouldn't mix untagged with tagged traffic on the same physical interface once you do this. Just bridge .q traffic through separate bridges only. Trying to bridge untagged traffic AND tagged traffic will cause lots of problems.


EDIT: If you are bridging non-ip traffic (eg PPPoE) you cant do do s*** with it. You can only queue PPPoE traffic at the server or the CPE, NOT at the bridge level. Limitation of MT or LInux in general? not sure.......
 
User avatar
chvdr
Member
Member
Posts: 403
Joined: Thu Sep 22, 2005 8:53 pm

Re: Transparent shaping with Queues for tagged VLAN traffic

Tue Apr 08, 2008 11:21 am

... ...
Add VLAN1 to ETH1
and VLAN1 to ETH2
Then create bridge1 and place both VLAN1 ports into bridge 1
then
Add VLAN2 to ETH1
and VLAN2 to ETH2
Then create bridge2 and place both VLAN2 ports into bridge 2
VLAN1 to eteher1 and then VLAN1 on ether2? or different VLAN ifaces to ether1 and ether2 with same tag? imeant the same VLAN ID...
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: Transparent shaping with Queues for tagged VLAN traffic

Tue Apr 08, 2008 12:17 pm

can you explain how it is all connected physically, it is very important to know is there any way that VLAN 2 bypasses the traffic shapper.

regards.

Faton
 
RavenHollow
just joined
Posts: 6
Joined: Mon May 31, 2004 6:51 am

Re: Transparent shaping with Queues for tagged VLAN traffic

Wed Apr 09, 2008 6:31 am

The simplest way to do this would probably be to use the Bridge Filter. In there you can mark packets by VLAN ID. This occurs prior to the ip firewall chains, so should give you plenty of flexibility from there.

Regards,
Jake

Who is online

Users browsing this forum: No registered users and 16 guests