VMware uses NAT to surf the internet

Source: Internet
Author: User

Select Internet mode for NAT

650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m01/4d/64/wkiom1rqlpuakpgsaacfcgznkpw146.jpg "alt=" Wkiom1rqlpuakpgsaacfcgznkpw146.jpg "/>

Configuring IP Manually

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

Device=eth0

Onboot=yes

Bootproto=static

Ipaddr=192.168.168.12

Type=ethernet

gateway=192.168.168.2

netmask=255.255.255.0

Hwaddr=00:0c:29:3a:ef:ff

Set up VMware's network

edit--"Vitual networkstation--" Vmnet8

Set the network segment to 192.168.168.0 255.255.255.0

650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m02/4d/65/wkiol1rqmlpxe8n6aah79a8_wfk667.jpg "alt=" Wkiol1rqmlpxe8n6aah79a8_wfk667.jpg "/>

Set the NAT gateway IP, which is the eth0 configured gateway 192.168.168.2

650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m00/4d/64/wkiom1rqmfzqswiraabm48ffbhw530.jpg "alt=" Wkiom1rqmfzqswiraabm48ffbhw530.jpg "/>

This allows the virtual machine to access the network through a real machine, but the virtual machine cannot be accessed because the real machine does not have a route to the virtual machine. Add a route to

Route-p Add 192.168.168.0 Mask 255.255.255.0 192.168.168.1

-P indicates permanent routing

If the virtual machine is connected, but the virtual machine does not have access to the extranet, it may be true. VMware NAT Service does not open

Computer--"management--" service

Start the VMware NAT service

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://HOME.51CTO.COM/THUMB.PHP?W=600&H=600&T=F&URL=HTTP://S3.51CTO.COM/WYFS02/M02/4D/66/WKIOM1RQO42WD _lkaaa2cbuw4uc217.jpg "alt=" Wkiom1rqo42wd_lkaaa2cbuw4uc217.jpg "/>

650) this.width=650; "Src=" http://home.51cto.com/thumb.php?w=600&h=600&t=f&url=http://s3.51cto.com/ Wyfs02/m00/4d/66/wkiol1rqplthrnakaabebt0owsq294.jpg "alt=" Wkiol1rqplthrnakaabebt0owsq294.jpg "/>

VMware uses NAT to surf the internet

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.