Hello everyone! Thanks for your interest in my problem!
I have multiple external IPs on side 1, and need to use this IPs on clients on side 2.
I have test setup in hyper-v, using free CHR license.
1 VM: ROS, 1 ethernet tagged with vlan 2(it is simulates side 1 router), has static IP 192.168.255.2, has EOIP tunnel with side 2 router, bridge between uplink port eth1 and eoip-tunnel, and DHCP server on this bridge that gives out external addressed to its clients.
2 VM: ROS, 2 ethernet tagged with vlan 2 and vlan 3(it is simulates “internet” between side 1 and side 2), has static IP 192.168.255.1 and 192.168.0.1
3 VM: ROS, 2 ethernet tagged with vlan 3, vlan 4(it is simulates side 2 router), has static IP 192.168.0.2, and bridge between eoip-tunnel and eth2(vlan 4, clients ethernet port)
4 VM: ROS, 1 ethernet tagged with vlan 4(it is simulates client of side 2), has no static ip, but configured dhcp client
So the problem is, that 4th VM, with vlan 4 that simulates client of side 2 does not acquiring address from dhcp-server of VM 1, side 1 router, but on Side 2 router, where DHCP server is, I’m seeing that it offers address to this VM.
On Hyper-V, like on other virtualization platforms, it is a common security measure that by default, the virtual switches only accept frames at ingress if their source MAC address matches the one of the connected virtual machine’s network interface. To get rid of this limitation, you have to change the NIC settings of the VM: hardware → network interface → advanced → permit MAC address spoofing.
In particular, the eth2 on VM3 needs to be set this way, so that the frames which come from the DHCP server at VM1 would be forwarded to VM4.
There used to be yet another issue, vlan-filtering on a bridge had to be set to yes so that the bridge worked when the CHR was running on Hyper-V (it was not the case on VMware). I don’t know whether it is still the case, but it was with 6.45.9.
It’s funny as when reading your post some months ago after running into the same issue, from your wording there I’ve obtained a feeling that you’ve tried both ways, but you just didn’t want to use the vlan-filtering mode, not filtering of VLANs as such. Maybe back then I’ve even tried with vlan-filtering=yes only based on that post, I can’t remember
Regarding the OP here, since this second issue only affects tagged frames, it is unrelated to this topic. But when responding yesterday, I just hazily remembered “something” else was wrong there and didn’t search for the details.