No route to host when trying to SSH from pod to an external host + PING command not installing

Cluster information:

Client Version: v1.25.4
Kustomize Version: v4.5.7
Server Version: v1.25.5
Kubernetes version: v1.25.4
Cloud being used: VM
Installation method: Kubeadm
Host OS: Rocky Linux 8.7
CNI and version: Calico
CRI and version: containerd

I have a problem with my container reaching external nodes and ping command not being found even when it works when I run in Docker alone.

The error I get when running the ping command:

root@hardwarepod:/home/build# ping
`ping: error while loading shared libraries: cannot open shared object file: No such file or directory`

When I try to ssh to any external node it’s saying the following:

root@hardwarepod:/home/build# ssh x.x.x.x
ssh: connect to host x.x.x.x port 22: No route to host