problem with VLAN on GNS3 Lab

Hi everyone,

I’m new to MikroTik and RouterOS.

I will have ton configure a MikroTik router CCR1036-12G for my work and wanted to practise with GNS3 for learning commands and conf.

What I’m trying to do is basic configuration, one router, one switch and two PC.

PC1 is configured with IP 10.0.10.1/24
PC2 is configured with IP 10.0.20.1/24

Mirkotik router is configured like that:
Interface connected on the switch: ether4
VLAN interface VLAN10 linked to ether4
VLAN interface VLAN20 linked to ether4
IP for interface VLAN10: 10.0.10.254/24
IP for interface VLAN20: 10.0.20.254/24

Basic Switch from GNS3 is configured like that:
Port1: Mode Access, VLAN ID:10
Port2: Mode Access, VLAN ID:20
Port8: Mode Dot1Q (TRUNK)

When i’m trying to do a ping between PC2 and Router, i have no answer, but with WireShark, I can see that the ARP request is propaging on wire between Switch and Router, with VLAN ID:

And on wire between PC2 and Switch it’s untagged:

Looks like Router is not responding to ARP

If I try a ping from router to PC2, with WireShark, I can see that PC2 is answering to ARP:

But still no pinging, looks like Router is not receiving and interpreting ARP answer…

I’ve tryied to add manually MAC for PC2 in ARP table:

but it’s going very strange, WireShark says request AND reply, so it seems to be working, but Router says Timeout…

The same for PC1 and VLAN ID 10.

What I’m missing?
I’ve tryied a lot of configurations, with bridge for example, still the same…
Is there a problem with my conf, it’s a bug from GNS3 or i’ve missunderstanding how VLANs and Trunk are working in RouterOS?
Maybe it’s because i didn’t have any license installed, but i’ve tryied with free license (limited to 1 VLAN per interface), the same…

Thanks for helping

Regards.

What hypervisor and OS are you using? What interface type?

I’ve had some similar issues with Qemu on Windows, particularly with vmxnet3, and on occasion also virtio-net-pci, though never reproducible enough to report anything anywhere.

VirtualBox and VMware have fewer (if not zero) such issues, not to mention when Linux is your host OS.

I’m running Windows 10 with Core i7 and 8GB RAM, RouterOS is running on VirtualBox, computer PC1 and PC2 are VPCS, but I’ve tryied with an VirtualBox Windows 10 machine, still not responding to ping.

If I try a simple conf, without VLAN, it works fine, even connectivity to Internet through Loopback interface, and administrating RouterOS from my fisical host with winbox.

I was just wondering if my VLAN conf is correct, if so, doesn’t mind if it’s not working on virtual, was just for practicing purpose… I asume it will work with CCR1036 and real switchs/PC

Hi with virtual machines you must use service tag and to put the interface in promiscuous mode accepting al vlans from 1-4095
Regards


Enviado desde mi iPhone utilizando Tapatalk