Info details of the problem
VM with allowed network NAT
[root@esxi00:~] ping yahoo.com getaddrinfo() for "yahoo.com" failed (-3: Temporary failure in name resolution)
VM with Share with my MAC
WAN -> em0 -> DHCP: 192.168.100.128 LAN -> em1 -> 10.1.1.251
murgescusilvia@Murgescus-MacBook-Pro ~ % ssh email@example.com ssh: connect to host 192.168.100.128 port 22: Host is down
murgescusilvia@Murgescus-MacBook-Pro ~ % ssh firstname.lastname@example.org ssh: connect to host 192.168.100.128 port 22: Operation timed out
[2.4.5-RELEASE][root@pfSense.silvique.ro]/root: ping yahoo.com PING yahoo.com (184.108.40.206): 56 data bytes ping: sendto: No route to host ...
Sometime work sometime does not work ….
Step 1. Reading VMware documentation to trying to solve the problem:
From here https://kb.vmware.com/s/article/2009642?lang=en_US I’ve dome this and restart the MacBook PRO :
sudo rm -f "Library/Preferences/VMware Fusion/networking" sudo rm -f "Library/Preferences/VMware Fusion/locations" sudo "/Applications/VMware Fusion.app/Contents/Library/vmnet-cli" -c
The problem is still there. Not solve it!
Step 2 . Ideas receive from a fried and apply it => Solved the problem! OK!!
Change network from 10.1..1.251 to 10.1.1.2 and very and test Internet connection
2.0. Make sure pfSense is powered pff
2.1. Inside ESXi terminal
[root@esxi00:~] esxcfg-route VMkernel default gateway is 10.1.1.2 [root@esxi00:~] esxcli network ip dns server list DNSServers: 10.1.1.2 [root@esxi00:~] ping google.com PING google.com (220.127.116.11): 56 data bytes 64 bytes from 18.104.22.168: icmp_seq=0 ttl=128 time=52.287 ms 64 bytes from 22.214.171.124: icmp_seq=1 ttl=128 time=53.458 ms 64 bytes from 126.96.36.199: icmp_seq=2 ttl=128 time=53.811 ms --- google.com ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 52.287/53.185/53.811 ms [root@esxi00:~]
2.2. For internal CentOS VM inside ESXi_00 I change external ip to 10.1.1.50/25 and 10.1.1.2 and it works OK.
2.3. For pfSense in Vmware Fusion I do not modify anything, but ping works ok.
All are connected to Network > Custom > Allow using NAT