Community discussions

MikroTik App
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

tag and and untagged on same port

Wed Jan 11, 2017 5:59 pm

is there a way to have a vlan-like interface that get the untagged traffic (and *only* the untagged traffic) of an ethernet port ?
 
Rudios
Forum Veteran
Forum Veteran
Posts: 973
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: tag and and untagged on same port

Wed Jan 11, 2017 6:31 pm

I think you have to clarify a little.
If you want untagged traffic only, just use the normal interface.
Or are you looking for something that drops all packets that DO have vlan tag?
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

Re: tag and and untagged on same port

Thu Jan 12, 2017 11:50 am

Ok,
lets' say i've got ether1 with untag traffic and tagged traffic
I've got multiple Vlan interfaces configured on this port wich get the tagged traffic and that works well.

I want the untag traffic to be part of a bridge but excluding the tagged traffic.
The problem is that if I add ether1 to the bridge, it means the whole interface (that is to say it also include tagged traffic)

One interesting way would have been to have a vlan interface with, let's say VID=-1 which only matches the untagged traffic. but as far as i know this dosen't exists.
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: tag and and untagged on same port

Thu Jan 12, 2017 5:09 pm

You can use bridge filters to prevent tagged traffic from going to other ports.

But this fake VLAN interface that would get only untagged traffic could be very nice feature, if MikroTik wanted to add it.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: tag and and untagged on same port

Thu Jan 12, 2017 11:42 pm

When you want to do this on a switch(port) you can configure the switch to have some VLAN tag as untagged
and the CPU sees that traffic as tagged. Then you can add a VLAN interface for that tag and it receives only
the untagged traffic.
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

Re: tag and and untagged on same port

Wed Aug 16, 2017 2:09 pm

This is what I have done on a CRS125 (and it works quite well) but not all mikrotik products have switch chips.
Is there a way to do this on plain interfaces which are directly handled by the CPU like on the CCR1016 ?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: tag and and untagged on same port

Wed Aug 16, 2017 2:27 pm

Yes, on a plain ethernet interface, at IP level, the interface itself receives the untagged traffic and the VLAN subinterfaces you add to that ethernet interface receive the tagged traffic.
Of course you should not put the ethernet interface in a bridge. You can put the VLAN interfaces in a bridge, but not the main interface. The tagged traffic for other tags would go into the bridge as well.
When using the port in routing (i.e. with an IP address assigned to the ethernet interface and the port nowhere as a bridge member) this problem does not occur.
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

Re: tag and and untagged on same port

Fri Sep 15, 2017 4:04 pm

I think that adding this feature would be quite easy considered that the standard 8021q module of the linux kernel currently supports a vlan 0 that correspond to the untagged traffic.

RouterOs seems to forbid vlan-id=0 for the moment but it may be as simple as changing the range.
on the cosmetic aspect, I think a special value named "untagged" would be less confusing than just 0
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: tag and and untagged on same port

Fri Sep 15, 2017 10:42 pm

If you look at cisco, a port with tagged VLAN, can have one untagged vlan. Normal this is VLAN=1, but can be changed.
This way if you connect a PC or some other stuff not understand 802.1q, it wil use the undtagged VLAN.
I have not setup VLAN you on my Microtik since I have still not had time to understand it, and my router uses master slave interface.
Hopefulle this would be better when 6.41 would be released and do a upgrade. Then it will change and remove this master slave interface.
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

Re: tag and and untagged on same port

Sat Sep 16, 2017 12:22 am

does not compute.... :(
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: tag and and untagged on same port

Sat Sep 16, 2017 12:50 pm

You could try it using a bridge filter that drops the MAC level protocol "vlan" on that port.
Then at least you can avoid that the tagged traffic is forwarded by the bridge.
 
User avatar
pcdwarf
just joined
Topic Author
Posts: 23
Joined: Thu Sep 22, 2016 2:00 pm
Location: France, Clermont Ferrand

Re: tag and and untagged on same port

Sun Sep 17, 2017 6:47 pm

yes, my problem is somehow solved or worked around.

but this is in fact a feature request. (is there a special way to make feature requests?)

I may be wrong but it seems to me that routerOs is based on a linux kernel.
Considered that the standard 8021q module from the official linux kernel tree already supports a vlan-id "0" which correspond to the untagged trafic, I would enjoy that RouterOs accept this special value.
It would be very useful and much easier to use.

Who is online

Users browsing this forum: GoogleOther [Bot], simtj and 176 guests