Hi,
I’m moving all my x86 virtual routers scattered across VMWare hosts to a centralized RouterOS KVM Host and came up to a problem where VLANs inside KVM guest didn’t work.
My configuration:
ROS Host:
eth1 - physical interface connected to switch
|-- vlan1
|-- vlan2
veth1, veth2 and veth3 - virtual ethernet interface for static linking to KVM guest
bridge-kvm1
|-- eth1
|-- veth3
bridge-kvm2
|-- vlan1
|-- veth2
bridge-kvm3
|-- vlan2
|-- veth1
on this ROS Host I have three KVMs with static interfaces linked to “veth1, veth2 and veth3”.
When I add IP address to the interface linked to “veth1” and “veth2” the traffic goes through the assigned VLAN normally (vlan interface is created on HOST) but since I wanted a little more flexibiliy on the first KVM I bridged the virtual interface together with the physical interface so that this should be a “direct” connection to the switch - if I understand things correctly - and after this I added VLAN interfaces on the GUEST side to this interface, but in this case the traffic didn’t go through.
Any ideas why is it so? If I move the VLAN interfaces from the guest side to the host side and then create for each VLAN static interface for the guest and add appropriate IP settings everything works as expected.
On the switch side nothing is changed only in ROS Host/Guest configurations.
Hopefully I didn’t make a mess of the thing and someone can shed some light on this.
Thanks!