Host and guest have functional network but can't see each other

So I have a working physical interface eno1 on the host with IP 10.1.1.10. I map it to a container interface eth0 with

lxc network attach eno1 <container_name> eth0

I configure eth0 in the container netplan file with IP 10.1.1.20. Everything works, both the host and the client see the network (10.1.1.0/24) and are visible from the network. BUT, they don’t see each other, meaning the host doesn’t see the guest and vice versa.

I am definitely missing something here, but what?

That’s normal, when you attach that way, you’re using macvlan and host <-> container is indeed impossible with macvlan as documented here: https://linuxcontainers.org/lxd/docs/master/instances#bridged,-macvlan-or-ipvlan-for-connection-to-physical-network

1 Like