Community discussions

MikroTik App
 
bhaputi
just joined
Topic Author
Posts: 5
Joined: Tue Feb 22, 2005 8:30 pm

VLAN traffic is not working

Fri Jan 27, 2006 12:19 am

Hello,
We are using Mikrotik OS ver. 2.9.7, and cannot seem to get vlan'd traffic to pass. We are plugging our mikrotik box in as a transparent bridge between 2 summit extreme switches using 802.1Q vlans, but traffic is not getting through. If we take the same mikrotik box and plug it in between an HP 2424 switch and a summit extreme switch without using 802.1Q vlans, the traffic passes fine. Can someone point me in the right direction here? We have run through the vlan suggestions we have found here in the forums, and so far it has been no-go.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Fri Jan 27, 2006 1:01 pm

We are using VLANs with zero problems since 2.8.27. (now on 2.9.8)
Take care that you configured the VLAN interface to be on the correct Ethernet, and VLAN IDs should be the same as configured on switch...
 
bhaputi
just joined
Topic Author
Posts: 5
Joined: Tue Feb 22, 2005 8:30 pm

Fri Jan 27, 2006 2:30 pm

So you cannot set the bridge to just pass the vlan IDs? Do I need to manually add the vlan ID for each separate vlan to the ethernet interface? We have approx. 1200 vlans throughout our network, so I hope not.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Fri Jan 27, 2006 3:15 pm

Well, we have arround 15 VLANs only, and they are separately entered. Everything work this way. I never tryed to do this via bridge.
Anybody else on forum, have tryed this?
I believe that it is very painfulll to enter 1200 interfaces by hand...
But, if the only solution is to enter each VLAN, write a simple script which will telnet to the router, and do the job :)
We are using similar trick for some other purposes. We have 2 ISP`s and we measure the bandwidth usage at both ISPs. If the usage reaches 80%, the script is telneting to the router, and the ip pool that gives IP addresses to PPPoE customers changes to the second ISP :)
Very primitive load balancing, but works great :)
 
bhaputi
just joined
Topic Author
Posts: 5
Joined: Tue Feb 22, 2005 8:30 pm

Fri Jan 27, 2006 6:46 pm

It sounds like maybe you are not using transparent bridging? The only IP we have on the Mikrotik box is for management (on a 3rd NIC). We have no IP assigned to the bridged interfaces. I would think that the bridge should just pass the VLAN IDs correctly, but it appears not to.
 
bhaputi
just joined
Topic Author
Posts: 5
Joined: Tue Feb 22, 2005 8:30 pm

Fri Jan 27, 2006 8:27 pm

Thanks for the tips. It actually turned out to be a duplex issue - all traffic is flowing great now.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Fri Jan 27, 2006 9:37 pm

Great! I`m happy that you solved it...
 
BurstNET

Sat Jan 28, 2006 2:51 am

any reason you can think of that simple queres will not work on the traffic in this configuration? network interfaces and the bridge show the traffic flowing over them, but the simple queres do not and seem to have no effect on controlling traffic. connection tracking does show the traffic breakdown, so it looks like the vlan traffic is readable. even just trying to put a rule on the interfaces themselves does not seem to function now. anything special need to be done to throttle bandwidth in this situation? do simple queres not work in this situation, and need to use mangle/parket-marking method instead? tried that as well, and did not seem to work either. had no problems prior with non-vlan'd type traffic.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Sat Jan 28, 2006 10:05 am

This must be a bridge issue, I don`t see any other explanation.
We have VLANs, and just now, I made a test to be sure not to give you wrong type of help :)

I set up a new simple queue on VLAN interface, called ABC, Look at the following screenshot from my winbox:

http://jager.on.panonnet.net/!queue.gif

This interface without queue almost never have less than 2Mbit of traffic.
You can see in the middle of the traffic window for this interface how the traffic significaly lowered when I enabled the queue, (and my users was wondering what is going wrong with the Internet :) ) and raised again after turning the queue off.
I really hope this helps you, at least, we can be sure that Mtik know how to handle simle queues on VLANs.

!Wait, something comes onto my mind.... all my queues have priority 8.
I still did not made any QoS to favorize certain type of traffic. Do you have different queue priorities on you router? Maybe the solution lies there?

Crossing fingers :)

Jager
 
BurstNET

Sun Jan 29, 2006 2:41 am

our vlans are not configured on the mikrotik machine like yours are. ours just pass thru from one switch to another, going thru the mikrotik transparent bridge. we still have not gotten this working.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Sun Jan 29, 2006 2:49 pm

If you do not configure VLANs on mikrotik, how do you expect Mtik to know what to do with the queue that is configured on it? On which interface to shape the traffic?
I really don`t get it :) Neither Mtik does :)
Can you send at least your interfaces config for everybody here to see?
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Sun Feb 19, 2006 3:41 am

I am trying to do the same. I have setup a mgmt interface on eth1 and then setup eth2 and eth3 as a bridge. I have tried adding the VLAN's i want to put the queue on under the bridge interface. Do I need to add them to the ethernet interfaces instead?

What I am trying ot accomplish is to do some traffic shaping on some customers i have VLAN'd I only have about four right now connected via fiber optic to us, then i have the switch they are on setup with vlans, with our border router (a juniper not a mikrotik sorry) setup with subnets on the interface connected to the switch they are on, and vlans on each.
I put a mikrotik in between the border router and the switch now, with the eth2 and eth3 as a the interfaces bridging them. they pass traffic and the VLAN information between the juniper and the switch fine, now i would like to start shaping. What would be the best method?
Can I shape based on VLAN ID or since each is subnetted out, should i do it by thier network ID?
Also i am fairly new to mikrotik (but love it) so could someone provide me with some basic setup steps to implement thier recomendation as well.

Thanks in advance!
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Sun Feb 19, 2006 12:17 pm

You can setup a new simple queue to every VLAN interface, and shape the traffic as you wish. For example, like this:

142 name="VLAN Proxim 1" dst-address=0.0.0.0/0 interface=proxim1 parent=none direction=both priority=8
queue=default/default limit-at=0/0 max-limit=10000000/10000000 total-queue=default


Hope this helps.
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Sun Feb 19, 2006 4:50 pm

thanks for the response, unfortunatley, it didnt work for me, i might have something configured improperly however.
Should i create a vlan interface to match. for example one of the VLAN's is VLAN 30 i tried to create it under the bridge interface, and eth2 and eth3 ... no luck
I was able to create a filter under bridge and it would match vlan30 packets, so i created a packet mark, however i still couldnt get the que to see the vlan 30 traffic even based on the packet mark.

since these are subnetted as well, should i be able to que based on a range of IP's .. for example if one of the customers has network 10.2.10.48/28 couldnt I match those addresses, and then que them?

I think I might be over complicating this...

any more suggestions would be greatly appreciated.
 
BurstNET

Wed Feb 22, 2006 5:49 am

Let me know if you get this working...we have not yet ourselves.

SMA
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Wed Feb 22, 2006 11:28 pm

I feel like i have tried everything.. I am beginning to pull my hair :?

I tried to mark the VLAN traffic, and that does work fine. but when you try to limit it.. it doesnt seem to see it at all... odd.
so since i have each of the cusomters subnetted as well.. i tried to just setup the queue based on thier individual subnet, however that does not seem to work either.

can traffic shaping not be done over a bridge? Should I be using the bridge interface or the ethernet ones when i setup the filters?

so to restate my issue.. I have a Mikrotik 2.9.13 rotuerboard 532 device setup between my border router, and a switch which feeds out to about four customers tied in to us across fiber optics. Each customer is assigned either a /28 or /27 subnet. then each port on the switch is assigned a unique VLAN ID for each customer. our border router is setup with the gateway address for each subnet, and on this router each subnet is assigned to a subinterface with thier unique VLAN ID. confused? well here is a diagram. with ficticious IP's but the subnetting and VLAN ing is the same. i want to limit each customer to 3M up and 3M down MAX.
any help would be greatly appreciated!

Image
 
BurstNET

Thu Feb 23, 2006 1:14 am

This appears to be just about the exact same problem we are having.

SMA
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Thu Feb 23, 2006 1:51 am

Im glad i am not alone in my misery! HA!

Well if i get anywhere with it I will let you know, in the meantime anyone else have any suggestions?????
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Thu Feb 23, 2006 2:40 am

I think this is not going to work, as you do not have the VLANs defined on Mikrotik. Is is possible to do VLANs on Mtik, and not on Juniper? Only in that case you can assign one simple queue for every VLAN, and it will work OK.
I have several VLAN switches, and every AP, remote link have assigned a different VLAN ID. This interfaces are nicely visible and separated in Mikrotik. The are also "queueable" without problems.

At the end, you can rate limit the traffic based on source address... this should also work.
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Thu Feb 23, 2006 4:45 am

So do you mean, turn the mikrotik from a bridge into a router, and then add the vlan at the interface facing the customers.

I have thought of doing this, the bridging was an easy solution with minimal downtime. and i thought this would be possible. I have tried defining the vlans on the bridge interface as well as each interface, and also with all interfaces. like i said, i have been able to mark the traffic, just doesnt seem to do anything on limiting it.

If it cannot be done on the bridge, I will try to remove the bridging and do routing and see how that works...

Thank you for your advice, If i misunderstood, just let me know...
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Fri Feb 24, 2006 12:44 am

You did not misunderstanded anyhing :) This is right what I am suggesting you to do. I know it will not pass without problems/downtime etc, but at the end it will worth the job.
At the end, after you`re done, let me know how does it work. I hope you will be nicely supriced :)
Crossing fingers...
 
BurstNET

Fri Feb 24, 2006 12:59 am

We have gotten bandwidth throttling working on a bridge.
We have gotton VLAN traffic to pass over the bridge.
We have not gotten bandwidth throttling working on VLAN traffic on a bridge though...

So are we saying that this definately cannot be done on a bridge, and needs to be done via routing?


SMA
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Fri Feb 24, 2006 1:13 am

We have gotten bandwidth throttling working on a bridge.
So are we saying that this definately cannot be done on a bridge, and needs to be done via routing?
Yes, that`s correct, but that is only my opinion. I don`t say that I am 100% right, but as nobody has submited any better solution I suppose my opinion is correct.
 
BurstNET

Fri Feb 24, 2006 1:54 am

Any input from Mikrotik themselves?
Hello?

SMA
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Fri Feb 24, 2006 4:53 am

Agreed, i am willing to implement the other suggestion, but i had plans of using this in other areas in a similar way, so it would be great if someone had a workaround to make it work this way.
I do appreciate the above suggestion however, and am going to try it for now when i can schedule more down time to experiment on the customers routing.

Maybe this is an unknown bug? or just a fact of life...
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26383
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Fri Feb 24, 2006 10:10 am

the correct way to do this is in bridge filter to match vlan packets and then use this mark for simple queues
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Fri Feb 24, 2006 3:49 pm

That is what i thought.. and tried, it does match the packets, this you can see, however, the queue does nothing. I set the queue to use the packet mark from the bridge filter. the bridge filter set to mark packets for a certain vlan, no problems there, the que simply does nothing.
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Wed Mar 01, 2006 1:36 am

OK well i changed the setup around, and sure enough, works great as a router, but still would like to know why the bridge senario didnt work. If anyone ever figures it out.. id like to know.

I think the issue is in the actual VLAN portion of the setup... for what its worth.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Wed Mar 01, 2006 6:23 pm

:) I`m happy that my suggestion was worth trying :)
 
jparsons
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Sat Feb 18, 2006 5:41 pm
Location: Maryville, TN
Contact:

Wed Mar 01, 2006 9:57 pm

You suggest actually works great. I haven't had any issues with it since setting it up this way, and actually it ends up being a lot less complicated than the bridge with the vlan's once it is all setup. Thanks again.
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Thu Mar 02, 2006 1:45 am

Great! :)
I`m sure that you will have no issues at all. Our system was set up from the very begining right on the same way. It was 2 yrs ago, until today, no probs at all with any Mtik version!
 
BurstNET

Thu Mar 02, 2006 2:05 am

The question is though, why this will not work in bridging.
Not all of us want or need routing for every application...

SMA
 
User avatar
jager
Trainer
Trainer
Posts: 295
Joined: Mon Oct 31, 2005 2:44 am
Location: Germany
Contact:

Thu Mar 02, 2006 9:31 pm

Wel, theoreticaly, it should work. Practicaly, it does not :( I really have no clue about why it behaves like this. Somebody who have better knowledge should have the answer, for sure. Normis? :)

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], kormenator and 179 guests