I cannot ping IP address from pod

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: v1.28.3
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: ubuntu 23.10
CNI and version:
CRI and version:

HI
I am having problem to ping 10.244.1.120 from minikube pod. From minikube / my computer I am able to do that. I think the problem is somewhere around IP pool range set up by my network-policy, but I am not sue.

Minikube started with: minikube start --network-plugin=cni --cni=calico

lukyos@lukyos:$ minikube ssh
docker@minikube:~$ ip ro
default via 192.168.49.1 dev eth0 
10.244.120.64 dev cali94d5e6a32fc scope link 
blackhole 10.244.120.64/26 proto bird 
10.244.120.65 dev cali7a31adbddce scope link 
10.244.120.67 dev cali08c30f4dc41 scope link 
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown 
192.168.49.0/24 dev eth0 proto kernel scope link src 192.168.49.2 
docker@minikube:~$

Pod started: kubectl create deployment hello-node --image=registry.k8s.io/e2e-test-images/agnhost:2.39 -- /agnhost netexec --http-port=8080

bash-5.0# ping 10.244.1.120
PING 10.244.1.120 (10.244.1.120): 56 data bytes
^C
--- 10.244.1.120 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

dns in pod is working

Do you have any ideas why all packets are lost?

Hi,
What is 10.244.1.120? Run a network dump on eth0 and check what is the source ip address of icmp requests sent from a pod.