"Virtual network Editor" for configuring virtual machines
Note 1: Virtual machine LAN IP segment must not and real use of the IP segment conflict.
Second, view the local computer VMnet8 network card IP segment
Note 2, local computer VMnet8 network card IP segment must be the same as the virtual machine LAN IP side
Third, change the virtual machine system network card IP configuration
Vim/et/sysconfig/network-scripts/ifcfg-etho
Amended to
bootproto= "Static" #dhcp改为static
onboot= "yes" #开机启用本配置
ipaddr=192.168.70.117 #静态IP
gateway= 192.168.70.2 #默认网关
netmask=255.255.255.0 #子网掩码
dns1=8.8.8.8 #DNS Configuration
Reboot network card
Test
Ping 192.168.2.239
//Results
[root@localhost ~]# ping 192.168.2.239
ping 192.168.2.239 (192.168.2.239) 56 (84) bytes of data.
Bytes from 192.168.2.239:icmp_seq=1 ttl=128 time=1.53 ms bytes from
192.168.2.239:icmp_seq=2 ttl=128 Ms
bytes from 192.168.2.239:icmp_seq=3 ttl=128 time=3.57 ms-
bytes from 192.168.2.239:icmp_seq=4 ttl=128 t ime=1.31 ms
Described above is a small set of VMware virtual machine NAT configuration static IP tutorial, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!