Hello, LardFr0g & welcome to LQ.
What you have given us is about ¼ of the story. Give us the rest:
- You say you're in a VM with two nics. Are they connected via nat? Are the Nics owned by two OSes?
- How does your routing table look?
- How does your /etc/hosts look?
- If you're using NAT, what is the host going to make of those ping requests?
- What is the exact error reported (check both ways).
- Who set you this problem? To be preciser, are you askling us to do your homework/project work?
A network lecturer I respected would not look at a network question unless the student had drawn it out. Half the time, doing that made the solution obvious to the student. Just a thought.