Virtual Machine Internet Configuration

Source: Internet
Author: User

I am aiming for the new contact with Linux soon to do some help, please the veteran of the light spray, what is wrong also please communicate more!!


About virtual machines The most common here is NAT.

1. Real machine (local window) settings

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/FB/wKiom1WvBiSBQX7zAARmQMA2sL0102.jpg "title=" 1.jpg " alt= "Wkiom1wvbisbqx7zaarmqma2sl0102.jpg"/>


If the local VMnet8 is not enabled it can also be disabled and then enabled primarily to ensure that the settings take effect.



2, virtual machine settings, first ensure that the virtual machine is working under NAT.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/FB/wKiom1WvB-_RCfkNAAJSG_n6n0A715.jpg "title=" 2.png " alt= "Wkiom1wvb-_rcfknaajsg_n6n0a715.jpg"/>



Then click on the option 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/F8/wKioL1WvCnzzXGHdAABjqh7swM4953.jpg "title= "3.png" alt= "Wkiol1wvcnzzxghdaabjqh7swm4953.jpg"/>

Select Virtual Network Editor

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/F8/wKioL1WvCt2gfLBIAAIkxoUP7xc013.jpg "title=" 4.jpg " alt= "Wkiol1wvct2gflbiaaikxoup7xc013.jpg"/>


Here only the VMNET8 set subnet and subnet mask are the same as the real machine.



Finally, enter the virtual machine settings:

Must confirm several places: A, the virtual machine network card must have MAC address B, the virtual machine's DNS settings, here will have the default settings (not necessarily useful).


Solutions to the above problems


Enter the command #setup enter the NIC option to select DHCP default assignment

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/FC/wKiom1WvCojAnjyRAADxvDWN_ys586.jpg "title=" 5.png " alt= "Wkiom1wvcojanjyraadxvdwn_ys586.jpg"/>


Then restart the network #service networks restart or/etc/init.d/network restart


Then look at the network card configuration to see the NIC MAC address:



650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/FC/wKiom1WvC8Xi8X4gAACiWN1YV88825.jpg "title=" 6.png " alt= "Wkiom1wvc8xi8x4gaaciwn1yv88825.jpg"/>



This makes the network configuration complete. You can ping the local test.


Finally, the DNS settings, this side will give the default configuration, if it is not easy to configure their own. Writes NameServer 8.8.8.8 to/etc/resolv.conf.

Then you can try Ping www.baidu.com.


Note: The configuration of the NIC restart DNS will revert to default and need to be set manually again.




Virtual Machine Internet Configuration

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.