Connecting Mongodb compas to docker cointainer with ipvlan l3 network

I cant connect mongodb to docker cointainer using ipvlan l3 network.

Make sure the L3 IP is reachable from the client and you have set up routing and NAT if required. I would start with a simple ping and try telnet to connect to ip:port.

Ensure that the Docker host and any other containers or services needing to connect to MongoDB have the correct routing configured to reach the IPvlan network.

  • Firewall Rules: Ensure firewall rules on the Docker host and any other network devices allow traffic to the MongoDB container.
  • Network Configuration: Double-check the network configuration, especially if the Docker host has multiple network interfaces.
  • Docker Logs: Check Docker logs for any errors