How to make a virtual machine go online NAT

Source: Internet
Author: User

Reference http://tczhangle.blog.51cto.com/789538/330939

First, set the virtual machine to NAT mode, and the Vmware8 will appear.

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 ://s4.51cto.com/wyfs02/m00/80/5e/wkiol1c-zn3y6edoaaan6rqb4ju648.png "title=" Image.png "alt=" Wkiol1c-zn3y6edoaaan6rqb4ju648.png "/>

Then look at this machine Vmware8 this NIC click, more info

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 ://s5.51cto.com/wyfs02/m01/80/61/wkiom1c-zdbsowe5aaayz99bqca254.png "title=" Image.png "alt=" Wkiom1c-zdbsowe5aaayz99bqca254.png "/>

The IP and gateway DNS that are displayed are set in the virtual machine

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 ://s3.51cto.com/wyfs02/m02/80/61/wkiom1c-ze2xqvemaaawaj6mnag023.png "title=" Image.png "alt=" Wkiom1c-ze2xqvemaaawaj6mnag023.png "/>

Vi/etc/sysconfig/network-script/ifc-eth0

Bootproto=static

ipaddr=192.168.18.3 the same network segment can be

gateway=192.168.18.2

dns1=8.8.8.8

dns2=192.168.18.2

Onboot=yes

: Wq

Service Network Restart

Ok!!!!

Ping the 192.168.18.1 on the virtual machine can ping to the host ping 192.168.18.3 can also pass

Finished


This article is from the "11617433" blog, please be sure to keep this source http://11627433.blog.51cto.com/11617433/1775455

How to make a virtual machine go online NAT

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.