Page 1 of 1

VLAN between two mikrotiks

Posted: Wed Oct 14, 2009 2:36 pm
by punn
Hi.

I've been trying to create VLAN connection between two mikrotiks.

Followd the example from the documentation part.
But unfortunatelly I was not able to ping from one to the other.

Had anyone same problem ?

Thanks

Re: VLAN between two mikrotiks

Posted: Wed Oct 14, 2009 11:40 pm
by yancho
No:) Can you post vlan and ip configuration from the both routers!? As I remember in some earlier RouterOS versions you need to change MAC of the VLAN interface. Because default values was the same.

Re: VLAN between two mikrotiks

Posted: Thu Oct 15, 2009 1:34 am
by THG
I followed the example from the document, and it works for me (version 2.9.x & 3.x). Maybe your network interfaces do not support receiving/transmitting of full size Ethernet packets with VLAN header added (1500 bytes data + 4 bytes VLAN header + 14 bytes Ethernet header). In this situation MTU 1496 can be used, but note that this will cause packet fragmentation if larger packets have to be sent over the network interface. At the same time remember that MTU 1496 may cause problems if path MTU discovery is not working properly between source and destination.

Re: VLAN between two mikrotiks

Posted: Thu Oct 15, 2009 4:06 pm
by punn
Thanks for the replies.

my configurations on mikrotiks are:
add arp=enabled comment="" disabled=no interface=lan5 l2mtu=1518 mtu=1482 \
    name=vlan1 use-service-tag=yes vlan-id=33

add address=192.168.70.1/24 broadcast=192.168.70.255 comment="" disabled=no \
    interface=lan5 network=192.168.70.0
add address=192.168.70.11/24 broadcast=192.168.70.255 comment="" disabled=no \
    interface=vlan1 network=192.168.70.0
add arp=enabled comment="" disabled=no interface=ether1 l2mtu=1522 mtu=1482 \
    name=vlan1 use-service-tag=yes vlan-id=33

add address=192.168.70.2/24 broadcast=192.168.70.255 comment="" disabled=no \
    interface=ether1 network=192.168.70.0
add address=192.168.70.12/24 broadcast=192.168.70.255 comment="" disabled=no \
    interface=vlan1 network=192.168.70.0
both running on RouterOS v3.30. one is RB450, the other is RB433


what can cause the problem ?

Re: VLAN between two mikrotiks

Posted: Thu Oct 15, 2009 9:08 pm
by yancho
Wrong IP addressing. Ethernet and VLAN cant share same ip subnet (192.168.70.0/24)

Re: VLAN between two mikrotiks

Posted: Thu Oct 15, 2009 10:20 pm
by THG
I also wonder if he really need to use service tag (IEEE 802.1ad)?

Re: VLAN between two mikrotiks

Posted: Thu Oct 15, 2009 10:31 pm
by fewi
Service tag should be turned off for straight 802.1q

Re: VLAN between two mikrotiks

Posted: Fri Oct 16, 2009 4:17 pm
by punn
Wrong IP addressing. Ethernet and VLAN cant share same ip subnet (192.168.70.0/24)
i've disabled the same ip subnet for ethernet and vlan.
but it didn't helped.

also tried to turn off the service tag, but it didn't helped either.

any other suggestions ?

Re: VLAN between two mikrotiks

Posted: Fri Oct 16, 2009 6:35 pm
by THG
If you use ping tools in winbox, make sure that you ping from correct interface. If LAN interface is attached to a bridge, ping from the bridge.