Community discussions

MikroTik App
 
mohammadakazad
just joined
Topic Author
Posts: 6
Joined: Tue Jan 25, 2011 8:37 am

How create VLAN with mikrotik and linksys srw2024 switch?

Wed Jan 26, 2011 7:04 am

Hi!

Say I want to create VLAN2, VLAN3....

VLAN2 IP: 192.168.1.0/24
VLAN3 IP: 192.168.2.0/24
etc..
IS it possible to create VLAN with Mikrotik router OS v4.16 and Linksys SRW2024 Switch?
If anyone know pls tell me the procedure.

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

Re: How create VLAN with mikrotik and linksys srw2024 switch

Wed Jan 26, 2011 10:28 am

To create VLAN interface on MikroTik router,
/interface vlan add interface=etherx vlan-id=2 disabled=no
 
User avatar
Muhammad
Member Candidate
Member Candidate
Posts: 141
Joined: Wed Aug 20, 2008 9:15 pm
Location: Pakistan

Re: How create VLAN with mikrotik and linksys srw2024 switch

Wed Jan 26, 2011 11:04 am

To create VLAN interface on MikroTik router,
/interface vlan add interface=etherx vlan-id=2 disabled=no
mikrotik vlans are competibale with linksys or cisco?
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: How create VLAN with mikrotik and linksys srw2024 switch

Wed Jan 26, 2011 11:12 am

mikrotik vlans are competibale with linksys or cisco?
Yes, compatible with IEEE 802.1Q
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: How create VLAN with mikrotik and linksys srw2024 switch

Wed Jan 26, 2011 5:20 pm

The main thing you need to remember with MikroTik and VLANs is that each VLAN in the MikroTik is it's own separate routed interface. It's not like a switch where you can have a port listen to certain VLANs.
 
mohammadakazad
just joined
Topic Author
Posts: 6
Joined: Tue Jan 25, 2011 8:37 am

Re: How create VLAN with mikrotik and linksys srw2024 switch

Thu Jan 27, 2011 6:52 am

It's ok I know how to creare VLAN on mikrotik but problem is that,

say I've Vlan2= 192.168.2.0/24
vlan3= 192.168.3.0/24

How can I make interVlan routing?
Do I need to make any trunking for that?
If so then how can I create trunk line from mikrotik router to linksys srw2024 switch?

To create VLAN interface on MikroTik router,
/interface vlan add interface=etherx vlan-id=2 disabled=no
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How create VLAN with mikrotik and linksys srw2024 switch

Thu Jan 27, 2011 7:25 am

As Feklar said, VLAN interfaces in RouterOS are just interfaces. Routing between them works out of the box just like with physical interfaces, there's no difference between a physical and a VLAN interface. What Cisco refers to as a trunk would be done by just creating the physical interfaces all tied to the same physical interface, and putting all the VLANs on that link on the switch side. ROS will then route between the VLAN interfaces as described. Try it out. It's very simple.
 
Myron
Member Candidate
Member Candidate
Posts: 253
Joined: Sat Sep 05, 2009 3:17 am
Location: Boracay, Philippines

Re: How create VLAN with mikrotik and linksys srw2024 switch

Sun Feb 06, 2011 6:24 am

Hi!

Say I want to create VLAN2, VLAN3....

VLAN2 IP: 192.168.1.0/24
VLAN3 IP: 192.168.2.0/24
etc..
IS it possible to create VLAN with Mikrotik router OS v4.16 and Linksys SRW2024 Switch?
If anyone know pls tell me the procedure.

Azad
mohamad as i check the specs of your Linksys SR2024 the only support standard IEEE 802.3, IEEE 802.3u, IEEE 802.3x, IEEE 802.3ab, i think your linksys switch cant support vlan trunking.
 
Myron
Member Candidate
Member Candidate
Posts: 253
Joined: Sat Sep 05, 2009 3:17 am
Location: Boracay, Philippines

Re: How create VLAN with mikrotik and linksys srw2024 switch

Sun Feb 06, 2011 6:38 am

Guys i have my Linksys SRW224G4 and support 802.1Q but im struggling this damn switch i create a trunk between mikrotik ether2 to linksys switch giga port 23 and the port 4 is the member of vlan 20 and my laptop coneected to this port as well the problem it doesn't give an IP coming from dhcp vlan 20,here is my mikrotik vlan config.

add arp=enabled comment="" disabled=no interface=ether2-local l2mtu=1520 mtu=1500 name="office vlan" use-service-tag=no vlan-id=20

add address=100.100.1.1/24 broadcast=100.100.1.255 comment="office vlan 20" disabled=no interface="office vlan" network=100.100.1.0

add address=100.100.1.0/24 comment="office vlan networks" dns-server=100.100.1.1 gateway=100.100.1.1 netmask=24

add address-pool="office vlan pool" authoritative=after-2sec-delay bootp-support=static disabled=no interface="office vlan" lease-time=3d name="office vlan 20 dhcp"

or i did some missing part of this config?
Last edited by Myron on Sun Feb 06, 2011 7:30 am, edited 2 times in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How create VLAN with mikrotik and linksys srw2024 switch

Sun Feb 06, 2011 7:21 am

The VLAN interface is disabled in what you posted.
 
Myron
Member Candidate
Member Candidate
Posts: 253
Joined: Sat Sep 05, 2009 3:17 am
Location: Boracay, Philippines

Re: How create VLAN with mikrotik and linksys srw2024 switch

Sun Feb 06, 2011 7:29 am

ahh sorry fewi it was enable before during my vlan testing.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How create VLAN with mikrotik and linksys srw2024 switch

Sun Feb 06, 2011 7:32 am

Looks good otherwise. Check the switch config, I guess.
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: How create VLAN with mikrotik and linksys srw2024 switch

Sun Feb 06, 2011 5:12 pm

If I remember correctly the LinkSys UI is very confusing when it comes to VLANs, assigning them to ports, and then making them tagged or untagged VLANs, and using it in general. That's one of the many reasons I don't like them.

Remember the port on the LinkSys must have every VLAN Tagged that is assigned to the MikroTik on the uplink port. A tagged VLAN on a port means that all traffic leaving from that VLAN on that port will maintain it's VLAN Tag, and traffic coming into that port for that VLAN needs to be tagged for that VLAN.
 
Myron
Member Candidate
Member Candidate
Posts: 253
Joined: Sat Sep 05, 2009 3:17 am
Location: Boracay, Philippines

Re: How create VLAN with mikrotik and linksys srw2024 switch

Mon Feb 07, 2011 4:56 am

fewi and feklar it works now!! the problem is in the linksys switch you need to tagged the trunk port lol :lol: i think this is quit deffrent in cisco catalyst...
 
2fast4youbr
Member Candidate
Member Candidate
Posts: 113
Joined: Mon Apr 15, 2013 10:39 pm

Re: How create VLAN with mikrotik and linksys srw2024 switch

Mon May 06, 2013 4:04 am

Myron.... Looks like I am having the sam problem that you had 2 years ago...

Even tagging the trunk port with the vlans, my laptop doesnt get the ip address.

Do you remember what you did in order to make it work ?

cheers mate.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: How create VLAN with mikrotik and linksys srw2024 switch

Mon May 06, 2013 2:24 pm

You would probably be better to show your config and explain what you are trying to do. On an 802.1Q "trunk" all VLANs are tagged except the native VLAN. If the switch port is behaving as what is sometimes called an "access" port the traffic may be untagged - e.g. to allow a PC or printer to take part in a given VLAN without having to produce 802.1Q tagged traffic themselves.
 
2fast4youbr
Member Candidate
Member Candidate
Posts: 113
Joined: Mon Apr 15, 2013 10:39 pm

Re: How create VLAN with mikrotik and linksys srw2024 switch

Mon May 06, 2013 3:10 pm

Hi Celtic!


My topology is here:
http://forum.mikrotik.com/viewtopic.php?f=2&t=72410

After 5hs, I managed to sww the notebook that is on h switch appear on the lease table, but now it doesn't get the IP, in the log I get that error saying "offering lease without success".

It's taking 30sec to show this problem, do you know if the time of the lese could have something to do with this ? where in the router I can setup to wait like a 1min to the machines answer for the IP offering??

Sometimes I think I've made a bad desciosion about to get thsi switch, and sometimes I think the problem is on the router...

cheers mate.