Page 1 of 1
How create VLAN with mikrotik and linksys srw2024 switch?
Posted: Wed Jan 26, 2011 7:04 am
by mohammadakazad
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
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Wed Jan 26, 2011 10:28 am
by sergejs
To create VLAN interface on MikroTik router,
/interface vlan add interface=etherx vlan-id=2 disabled=no
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Wed Jan 26, 2011 11:04 am
by Muhammad
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?
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Wed Jan 26, 2011 11:12 am
by kirshteins
mikrotik vlans are competibale with linksys or cisco?
Yes, compatible with
IEEE 802.1Q
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Wed Jan 26, 2011 5:20 pm
by Feklar
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.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Thu Jan 27, 2011 6:52 am
by mohammadakazad
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
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Thu Jan 27, 2011 7:25 am
by fewi
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.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Sun Feb 06, 2011 6:24 am
by Myron
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.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Sun Feb 06, 2011 6:38 am
by Myron
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?
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Sun Feb 06, 2011 7:21 am
by fewi
The VLAN interface is disabled in what you posted.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Sun Feb 06, 2011 7:29 am
by Myron
ahh sorry fewi it was enable before during my vlan testing.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Sun Feb 06, 2011 7:32 am
by fewi
Looks good otherwise. Check the switch config, I guess.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Sun Feb 06, 2011 5:12 pm
by Feklar
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.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Mon Feb 07, 2011 4:56 am
by Myron
fewi and feklar it works now!! the problem is in the linksys switch you need to tagged the trunk port lol
i think this is quit deffrent in cisco catalyst...
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Mon May 06, 2013 4:04 am
by 2fast4youbr
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.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Mon May 06, 2013 2:24 pm
by CelticComms
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.
Re: How create VLAN with mikrotik and linksys srw2024 switch
Posted: Mon May 06, 2013 3:10 pm
by 2fast4youbr
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.