VMware virtual machine set static IP address
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, in the bottom right corner of the virtual machine, click the Network adapter button, right-select disconnect, and then reconnect, make sure that the settings are effective. Then turn on the virtual machine and enter Ifcfg to view the currently assigned IP.
Modify the network configuration file, close the host firewall (/etc/init.d/iptables stop), and then check the fire status (chkconfig iptables status), and then ping the host IP (192.168.2.168), Homestay Host VM8
IP (192.168.6.1), host and virtual machine before the gateway IP (192.168.6.2), ping Out Network (baidu.com) can be general description of virtual machine fixed IP settings successfully.
Vi/etc/sysconfig/network-scripts/ifcfg-eth0 is:
(Tip: Press the A key into insert mode, press ESC, press ": Wq" to save exit)
Device=eth0
Bootproto=static
HWADDR=00:0C:29:12:0B:0E (do not copy this physical address)
ipaddr=192.168.6.128
gateway=192.168.6.2
Type=ethernets
Onboot=yes
V. Restart the virtual machine (reboot) to verify that the IP is fixed.
zbb20171223 vm12 vmware Virtual machine set static IP address