A total problem solved here: 2020.05.12 – Problem and solution for Virtual Network in VMware Fusion and ESXi
On Ubuntu Server 16.04.6 VM, when I check the connectivity using ip a command I get an ip strange …
I approximately one month ago, February, I have to change the Internet Connection from Digi company to Orange company. This means that I connect to Internet using an IP from a different DHCP:
- On Digi was an IP from address 192.168.197.0/24
- On Orange, now, I connect with Mac wising 192.168.100.0/24
On VMware Fusion, when I select Network Adapter Shared with my Mac, I get an IP from Digi Connection, 192.168.197.x/24.
I should search to make sure VMware Fusion Network Adapter Shared with my Mac will use Orange option.
Step 1. Configure inside MacBook Pro WI-FI Network Preferences
Open MacBook Pro WI-FI
Clock Open Network Preferences and chose Advanced…
Here into Preference Networks appears also Digi Network Name and I delete them. I let only the present network I use, Orange.
I check farther and it seams on MacBook Pro is the normal connection used ….
Normal and active DNS
Hardware Configure Automatically
But Ubuntu still connect using IP from 192.168.172.0/24 range …
Step 2. Try to save problem into MacBook Pro
Inside Ubuntu Server I used ifup & ifdown commends. But I have the same bad IP chose to connect …
It seems I have the same IP I don’t want!
Step 3. Is the VMware Fusion Network Problem … ?
I have search Network Configuration
sudo vim /Library/Preferences/VMware\ Fusion/networking
And I found this configuration:
[...] answer VNET_8_DHCP yes answer VNET_8_DHCP_CFG_HASH answer VNET_8_HOSTONLY_NETMASK 255.255.255.0 answer VNET_8_HOSTONLY_SUBNET 192.168.197.0 answer VNET_8_NAT yes
I modify configuration, save and Power-on Ubuntu
[...] answer VNET_8_DHCP yes answer VNET_8_DHCP_CFG_HASH answer VNET_8_HOSTONLY_NETMASK 255.255.255.0 answer VNET_8_HOSTONLY_SUBNET 192.168.100.0 answer VNET_8_NAT yes
It work the same.
Now I remember that if I change networking for VMware Fusion I need to power-off virtual machine, power-off VMware Fusion, turn-off MacBook Pro the do the same using turn-on and power-on.
It seems I get what I wanted! IP address 192.168.100.128/24.
It seems that Ubuntu is connected to Internet in this moment.
Remember that Ubuntu have one Network connection with Share with my Mac.
I try to check if internet is available in esxi01 with fw01 powered-on. Details about his are here. It seems that it is still not working!
root@esxi01:~] ping yahoo.com [root@esxi01:~] ping yahoo.com getaddrinfo() for "yahoo.com" failed (-3: Temporary failure in name resolution) [root@esxi01:~]
I will continue to search a solution in future … if I will need it.