-
check settings > network of both machines, check if both of them are nat
-
cd /etc/network
( navigating to the /etc/network ) -
cat interfaces
on metasploitable ( to show the content of interfaces ) -
copy what's in metasploitabe interfaces to kali machine /etc/network "interfaces" example:
auto lo