Macvlan network and host to container connectity

I made it work using the info from @meyay.

Here’s what I used. It is definitely not a good practice but it can solve issues in some cases.

ip link add mac0 link enoX type macvlan mode bridge
ip addr add 192.168.X.X/24 dev mac0
ip link set mac0 up
ip route add 192.168.X.0/24 dev mac0
ip route delete 192.168.X.0/24 dev enoX