first few pings failes, when a computer switched to a different vlan

I recently figured a strange problem:
The first few pings from a computer change when it changed the vlan it was connected to.


My setup is the following:

I have a RouterOS Router that routes between the internet, some vpns and three VLANs (Guest, Normal, Developers). With a single LAN Cable carrying the 3 VLANs, this router is connected to a switch that splits the VLANs to several untagged ingress and egress ports.

The router also has one DHCP Server configured per VLAN.

When I now unplug my computer from a port from vlan1 and plug it in vlan2 and wait until after it connects and gets an IP, the first few pings or http calls to a given resource in our network fail.

I also had another problem recently, where a user could not get a dhcp lease when connected over a switch connected to our routeros switch but when the user connected to the routeros switch directly it got a lease. then i released the lease and connected the host again over the second switch and it got the lease again directly.

Any Idea what could be wrong?

Ever heard of mac learning

Sent from my MI MAX using Tapatalk