VMware's NAT mode network configuration for static IP mode

Source: Internet
Author: User

Environment: Window 7, VMware 9, installation centos6.5


Install VMware it defaults to using the Nat,dhcp method to build the virtual machine's network, the default installation of centos6.5 will be able to access the external network such as (www.baidu.com), and to ping the real machine


The following is said, I want to statically configure IP How to configure the destination to reach can access the external network www.baidu.com and ping the real machine


Vim/etc/sysconfig/network-script/ifcfg-eth0

Device= "Eth0"
bootproto= "Static"
Hwaddr= "00:0c:29:22:80:xx"
ipv6init= "Yes"
Nm_controlled= "Yes"
onboot= "Yes"
Type= "Ethernet"
Uuid= "5603d0e0-daa4-42d1-ab39-a990f2xxxxx"
Ipaddr= "192.168.42.200"
netmask= "255.255.255.0"
Gateway= "192.168.42.2"
dns1= "192.168.1.1"

Description

    1. How to find the gateway you can see the Virtual Netwok Editor in the first line of the VMware software interface, where you can find the gateway IP

    2. DNS1 how to find, under the real machine cmd ipconfig/all found inside the DNS server is


After modifying the configuration, don't forget to restart the service/etc/init.d/network restart



VMware's NAT mode network configuration for static IP mode

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.