Setup Static IP for a Virtual Machine CentOS

Environment

VMWare Fusion Professional Version 11.0.2 (10952296)
CentOS Linux Release 7.6.1810 64bit

Virtual machine NAT network configuration

Setup Static IP for a Virtual Machine CentOS

Validate the config file: /Library/Preferences/VMware Fusion/networking

...
answer VNET_2_DISPLAY_NAME vmnet
answer VNET_2_HOSTONLY_NETMASK 255.255.255.0
answer VNET_2_HOSTONLY_SUBNET 192.168.155.0
answer VNET_2_NAT yes
answer VNET_2_NAT_PARAM_UDP_TIMEOUT 30
answer VNET_2_VIRTUAL_ADAPTER yes
...

Validate the config file: /Library/Preferences/VMware Fusion/vmnet2/nat.conf

...
[host]

# NAT gateway address
ip = 192.168.155.2
netmask = 255.255.255.0

# VMnet device if not specified on command line
device = vmnet2
...

CentOS static IP setup by the command line nmtui

Setup Static IP for a Virtual Machine CentOS

Setup Static IP for a Virtual Machine CentOS
1 vote, 5.00 avg. rating (97% score)