VMware virtual machine NAT configuration static IP tutorial detailed _vmware

Source: Internet
Author: User

"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

Service Network restart

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.