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