First, install the virtual after the menu bar select edit → Virtual network editor, open the Virtual Network Editor dialog box, select Vmnet8 net network connection mode, set the subnet IP, click the NAT Settings page, view the subnet mask and gateway , The subsequent modification of the static IP will be used.
Second, check the host VM8 NIC settings, open network and sharing center → change adapter settings →, right-click on the VMware Network Adapter VMnet8, select the Properties button to open the Properties dialog box.
Third, change the IP configuration of the virtual machine system NIC
Vim/et/sysconfig/network-scripts/ifcfg-etho
Revision changed to
Bootproto=static #dhcp改为static onboot=yes #开机启用本配置IPADDR =192.168.6.117 #静态IPGATEWAY =192.168.6.2 #默认网关NETMASK = 255.255.255.0 #子网掩码DNS1 =8.8.8.8 #DNS Configuration
Restart the NIC
Service Network restart
VMware virtual machine set static IP address