I have a problem with networking in my container
in my lxd can ping and access but container can’t
but i try to ping container with own container gateway it show Destination Host Unreachable
but i can ping these 2 server
hope you can find solution for me
What happens if you run sudo tcpdump -i ens3 -n icmp on the lxd host and then try pinging the gateway in the container, do you see the packets leaving the interface?
sudo tcpdump -i ens3 icmp -nn
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp3s0, link-type EN10MB (Ethernet), capture size 262144 bytes
13:58:15.750337 IP 192.168.1.115 > 192.168.1.2: ICMP echo request, id 85, seq 1, length 64
13:58:15.750612 IP 192.168.1.2 > 192.168.1.115: ICMP echo reply, id 85, seq 1, length 64
13:58:16.782231 IP 192.168.1.115 > 192.168.1.2: ICMP echo request, id 85, seq 2, length 64
13:58:16.782505 IP 192.168.1.2 > 192.168.1.115: ICMP echo reply, id 85, seq 2, length 64
13:58:17.806236 IP 192.168.1.115 > 192.168.1.2: ICMP echo request, id 85, seq 3, length 64
13:58:17.806541 IP 192.168.1.2 > 192.168.1.115: ICMP echo reply, id 85, seq 3, length 64
Assuming you did something like that, if its not working it suggests ARP resolution for the gateway IP is not working.
Is your LXD host a virtual machine (I ask because your hostname mentions ovirt)?
If so, have you checked that your physical host is allowing your VM guest to use multiple MAC addresses? As if not, then the traffic from the macvlan interface (that will have a different MAC address than your LXD host) may be being filtered out.