Linux virtual machines in VMware Connect to the Internet using NAT mode

Source: Internet
Author: User

Perhaps for the great God this is a very simple problem, but for the rookie level of me is a problem, Baidu has countless articles, an attempt to an article, there will be problems, finally succeeded. Record the details of the configuration.


Virtual machine configuration:

[Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Hwaddr=00:0c:29:f8:b8:22

Type=ethernet

Uuid=e5d9ac4a-b439-4619-84ff-a6daf5b4adcd

Onboot=yes

Nm_controlled=no

Bootproto=dhcp


[Email protected] ~]# ifconfig

Eth0 Link encap:ethernet HWaddr 00:0c:29:f8:b8:22

inet addr:192.168.76.128 bcast:192.168.76.255 mask:255.255.255.0


[Email protected] ~]# route-n

Kernel IP Routing Table

Destination Gateway genmask Flags Metric Ref use Iface

192.168.76.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0

0.0.0.0 192.168.76.2 0.0.0.0 UG 0 0 0 eth0


Physical machine configuration

The IP address of the VMNET8 is 192.168.76.1



VMware configuration:

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7E/6A/wKioL1b-lnOxIQhHAAJXh5NWBdM123.jpg "title=" 1.jpg " alt= "Wkiol1b-lnoxiqhhaajxh5nwbdm123.jpg"/>


650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/7E/6A/wKioL1b-lrGzl7JTAAHqWRODNK8502.jpg "title=" 2.jpg " alt= "Wkiol1b-lrgzl7jtaahqwrodnk8502.jpg"/>

Linux virtual machines in VMware Connect to the Internet using NAT mode

Related Article

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.