Community discussions

MikroTik App
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

VLAN not working L2

Fri May 19, 2017 6:22 pm

Hi Experts
Need some help regarding a situation. Recently we got a OLT which we are testing. I have tried many way to make it work with vlan. But the OLT it self is a L2 device which made it hard to work with. Any IP assigned to the vlan interface don't work. I tried bridging the interface but it dont work either. Any one have any other thoughts how we can make it work.We want the customer to receive their respective vlan's IP with the OLT that we are testing.The olt cannot recognize the vlan from Mikrotik .Any suggestion will be highly appreciated. The Mikrotik we are using is only for testing. We are planning to use CCR1036 once we finish our testing.Thanks
You do not have the required permissions to view the files attached to this post.
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: VLAN not working L2

Fri May 19, 2017 7:04 pm

We'd need more information around the OLT in question. Have you confirmed the features you require are available for that unit with the manufacturer? When the devices feature set is confirmed we can then help you configure the MikroTik in a way that will be the most friendly to your needs if possible.
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Fri May 19, 2017 7:14 pm

We'd need more information around the OLT in question. Have you confirmed the features you require are available for that unit with the manufacturer? When the devices feature set is confirmed we can then help you configure the MikroTik in a way that will be the most friendly to your needs if possible.
The manufacturer confirmed that it is a L2 device so that it cannot read the vlan tag. I was thinking to make the OLT as a trunk but that don't support either and it is really hard to explain it to them due to their poor english. so anyway i can make it work would be great. i was thinking is it possible to make a Mikrotik port as a trunk and connect the olt to that port...so that when traffic comes to that port it can direct it the port where the vlan is..?? Any idea on that???
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: VLAN not working L2

Fri May 19, 2017 7:18 pm

If their device doesn't process VLAN tags then you cannot do anything on the MikroTik side to trick that affect. It sounds like the device is acting as a ONU (fancy name for essentially a media converter) than anything else.

Do they have separate physical ports you can plug into for each type of connection? Again, are you able to post the exact model / type of equipment?
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Fri May 19, 2017 7:30 pm

If their device doesn't process VLAN tags then you cannot do anything on the MikroTik side to trick that affect. It sounds like the device is acting as a ONU (fancy name for essentially a media converter) than anything else.

Do they have separate physical ports you can plug into for each type of connection? Again, are you able to post the exact model / type of equipment?
Well the device can be named as a ONU as it doesn't have any L3 capability. The OLT aka ONU :P has 4 uplink ports. 2ge copper and 2sfp. and it also has 4pon port to connect the onu.I can only assign the vlan between olt and onu. It doesnt help me because we need to control the users from the MikroTik. The ONU connected with the OLT can be managed by vlan but it just the OLT that can manage the onu. but we want the customer connected to ONU should be managed through our MikroTik. Hope it clarifies my situation. Thanks.
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: VLAN not working L2

Fri May 19, 2017 7:43 pm

Still no model and make. Why are you being so cagey ...
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Sat May 20, 2017 10:43 am

Still no model and make. Why are you being so cagey ...
Not being cagey.. its a chinese brand called cdata.. model no-fd1002s. even on their website it says it has all the functionalities it doesn't support normal vlan. they wasted alot of my time to make it work. In the end they just gave up by saying their OLT is L2 :(. any option that may be available for me to make the vlan work with this chinese OLT with Mikrotik.. Thanks
 
jimmytam
just joined
Posts: 9
Joined: Fri May 12, 2017 6:18 pm

Re: VLAN not working L2

Sat May 20, 2017 1:47 pm

i used and It working, u may use their ems management software to modify the ONU VLAN tag, you may read the manual file for details.
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Sat May 20, 2017 2:39 pm

i used and It working, u may use their ems management software to modify the ONU VLAN tag, you may read the manual file for details.
Maybe i didn't clarify my requirements. The model we are using is only a 2pon OLT. Maybe you used a 4 PON model which may have this function But in 2pon we cannot make it work.We don't want the onu to be under a VLAN at present.Maybe in future when the network grows we may want to manage the onu by a assigned vlan for management purposes. At present we want the clients CPE (router/pc/anything) to be managed via a vlan that has been created on Mikrotik. And we cannot make it work. Any idea or any sort of remote help will be highly appreciated. Current situation Mikrotik--> OLT --> ONU--> Customer Equipment (we want it to be under a vlan from the mikrotik). Thanks
 
troffasky
Member
Member
Posts: 436
Joined: Wed Mar 26, 2014 4:37 pm

Re: VLAN not working L2

Sat May 20, 2017 6:49 pm

i used and It working
Maybe i didn't clarify my requirements. The model we are using is only a 2pon OLT. Maybe you used a 4 PON model which may have this function
What part of what jimmytam said don't you understand? The datasheet says it will do what you're asking, jimmytam says it will do what you're asking. Your problem is with the OLT, not the Mikrotik, so if anything your question is off-topic here.
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Sat May 20, 2017 7:03 pm

i used and It working
Maybe i didn't clarify my requirements. The model we are using is only a 2pon OLT. Maybe you used a 4 PON model which may have this function
What part of what jimmytam said don't you understand? The datasheet says it will do what you're asking, jimmytam says it will do what you're asking. Your problem is with the OLT, not the Mikrotik, so if anything your question is off-topic here.
Thanks for the reply. Can you clarify this..maybe it may solve my issue.. if i create several vlan on a single Mikrotik Interface and assigned respective IP to those vlans and connect a router/pc/laptop to that mikrotik port directly..it dont work right...no manageable switch are used..so my question is how would i achieve that in mikrotik without using a manageable switch. Thanks
 
jimmytam
just joined
Posts: 9
Joined: Fri May 12, 2017 6:18 pm

Re: VLAN not working L2

Sat May 20, 2017 8:36 pm

I'm using exactly configuration and working fine, I can't see anything wrong with mikrotik and your Olt device for vlan.(i"m using same model with yours)

And I believe mikrotik vlan config should be setup correctly (just add vlan to the interface, so easy, I believe u can do this)

So I was point out the problem maybe caused by olt/onu config (they use software called ems for setup onu vlan ) hope u find this way for trouble shooting.

I just want to say, it's really work. and little bit off topic for mikrotik device honestly.

Hope it can help.

Have a nice day.
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Sat May 20, 2017 8:47 pm

I'm using exactly configuration and working fine, I can't see anything wrong with mikrotik and your Olt device for vlan.(i"m using same model with yours)

And I believe mikrotik vlan config should be setup correctly (just add vlan to the interface, so easy, I believe u can do this)

So I was point out the problem maybe caused by olt/onu config (they use software called ems for setup onu vlan ) hope u find this way for trouble shooting.

I just want to say, it's really work. and little bit off topic for mikrotik device honestly.

Hope it can help.

Have a nice day.
This is the actual config..
[admin@OLT-MT] > ip add print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.10.254/24 192.168.10.0 bridge1
1 192.168.50.254/24 192.168.50.0 vlan200-Static(Private)
2 ;;; ==For VLAN 300==Not work==
192.168.60.254/24 192.168.60.0 vlan300-Static(public)
3 D 172.16.100.241/32 172.16.100.242 pppoe-out1



/interface vlan
add interface=ether4-LAN name=vlan100-PPPOE use-service-tag=yes vlan-id=100
add interface=ether4-LAN name="vlan200-Static(Private)" use-service-tag=yes \
vlan-id=200
add interface=ether4-LAN name="vlan300-Static(public)" use-service-tag=yes \
vlan-id=300

/interface bridge
add name=bridge-trunk
add name=bridge1
/interface bridge port
add bridge=bridge1 interface=wlan1
add bridge=bridge-trunk interface="vlan300-Static(public)"
add bridge=bridge-trunk interface="vlan200-Static(Private)"
add bridge=bridge-trunk interface=vlan100-PPPOE
/interface bridge settings
set allow-fast-path=no use-ip-firewall=yes

Maybe i am missing something in this. As far i know if we create multiple vlan on a Mikrotik interface that interface becomes trunk. so i think the olt should be in access mode. i am confusing myself in this maybe..any chances of getting some remote help in this. thanks
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: VLAN not working L2

Sun May 21, 2017 12:38 am

Why are you using service tags. Do you intend to be doing Q-in-Q trunking?
 
User avatar
Bachu
just joined
Posts: 3
Joined: Sat Sep 28, 2013 10:05 pm

Re: VLAN not working L2

Sun May 21, 2017 4:22 am

Hi, Ive had one of those.

VLANs are supported withouth problems. But you need to set them up in the OLT. Same thing with the ONUs port that connects to the customers CPE.

Did you ask for the manuals? I remember in my case ive got an older CLI reference manual and half the stuff didnt work.

Ended up using the EMS.

Which config method are you using for the OLT? EMS or CLI?

Wich ONUs do you have?

Cheers


Sent from my iPad using Tapatalk
 
User avatar
Bachu
just joined
Posts: 3
Joined: Sat Sep 28, 2013 10:05 pm

Re: VLAN not working L2

Sun May 21, 2017 4:28 am

Here is a link that may help.....if you have the management software.....

https://youtu.be/kRcP8a_KMRg


Sent from my iPad using Tapatalk
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Sun May 21, 2017 10:27 am

Here is a link that may help.....if you have the management software.....

https://youtu.be/kRcP8a_KMRg


Sent from my iPad using Tapatalk
I am using both CLI and EMS that they have provided. I have configured the vlan via ems. But it doesn't work. Now I am wondering if the Mikrotik cannot read the vlan tag when i connect the customer device directly to the Mikrotik without using OLT and ONU, If i use a manageable switch it will solves the problem. But i am curious how to make the Mikrotik works with vlan when there is no manageable switch?? Any thoughts on that??
 
jimmytam
just joined
Posts: 9
Joined: Fri May 12, 2017 6:18 pm

Re: VLAN not working L2

Sun May 21, 2017 11:37 am

Just confirm everything is working and my cable just direct connect to olt from mikrotik, no management switch between, if you're working by add management switch, you can just add small 8ports Cisco management switch to solve your problem.

Good lucky and have nice day ;-)
 
User avatar
Bachu
just joined
Posts: 3
Joined: Sat Sep 28, 2013 10:05 pm

Re: VLAN not working L2

Sun May 21, 2017 4:30 pm

Here is a link that may help.....if you have the management software.....

https://youtu.be/kRcP8a_KMRg


Sent from my iPad using Tapatalk
I am using both CLI and EMS that they have provided. I have configured the vlan via ems. But it doesn't work. Now I am wondering if the Mikrotik cannot read the vlan tag when i connect the customer device directly to the Mikrotik without using OLT and ONU, If i use a manageable switch it will solves the problem. But i am curious how to make the Mikrotik works with vlan when there is no manageable switch?? Any thoughts on that??
Im not following you.

They way a see it your MK connects to the olt via ether 4 (this should be a trunk).

Now the OLT is basically a switch so.......

-Replace the olt with a vlan capable switch.
-Trunk the switch interface that connects to the MK (lets say port 1)
-Configure port 2 of the switch as an access port (tag the customer vlan you want it in)
-Plug th CPE on port 2.

If that works the problem is on the OLTs side.

If not........ you still have a pronlem with the MK config.

Hope it helps...


Sent from my iPad using Tapatalk
 
n4yeem
newbie
Topic Author
Posts: 27
Joined: Wed Dec 18, 2013 8:26 pm
Contact:

Re: VLAN not working L2

Sun May 21, 2017 5:17 pm

Just confirm everything is working and my cable just direct connect to olt from mikrotik, no management switch between, if you're working by add management switch, you can just add small 8ports Cisco management switch to solve your problem.

Good lucky and have nice day ;-)
Well i managed to make it work without need to use a manageable switch. It wasn't that difficult but as the olt and onu made the situation bit tricky, i started from basic. and move ahead step by step..at the end successfully managed to make it work. Thanks everyone for their valuable opinions. Thanks