How to let my VM connect the network?

Solution 1:

Your CentOS VM is configured with three network interfaces (Ethernet) in VMware:

In your Linux system they appear as:

  • eno16777736 (an interface bridged to your Mac's physical Wi-Fi interface en0)
  • eno33554992 (an interface connected to your Mac's vmnet8 = "Share with my Mac"
  • eno50332216 (a second interface connected to your Mac's vmnet8 = "Share with my Mac"

vmnet1/vmnet8 are virtual network devices created by VMware Fusion and provide a host-only and a NAT'ed network to VMs.

Now your Linux host is NAT'ed two times to your 192.168.1.0/24 network via vmnet8 and is in the 192.168.1.0/24 network itself at the same time - which is a bit over the top and causes routing problems in your environment.

So shut down the VM and either remove the two "Share with my Mac" interfaces in the settings > Removable devices of the CentOS VM or remove the bridged interface and one of the "Share with my Mac" interfaces. Which procedure to choose/path to go depends on the purpose of the VM.