VMware on Ubuntu Server connection extranet

Source: Internet
Author: User
Tags get ip

Recently in their own computer to make an Ubuntu server, do a little demo, when the need to connect to the network problems, unable to connect to the network, some of the online information is a stroke, does not conform to their own situation, and now the process of my solution recorded:

First, on your own Windows computer, under CMD, enter ipconfig

Note that this IP should be the same as the IP segment in the Linux network configuration, and then open the Virtual Network editor interface in VMware, under the Edit menu

Because the network adapter in my virtual machine settings is selected for NAT mode, this information is the virtual machine that is right-installed in the left sidebar of VMware, select settings

So check the VMNET8 in the Virtual network editor and modify the subnet IP information to meet IP IP segment same as Windows. My windows is 192.168.199.115, so this is set to 192.168.199.0, only in this setting, the next DCH IP segment and gateway IP can be set

Then make NAT settings

The gateway IP set here and my Windows computer's gateway IP is the same, click OK back to the Virtual Network editor interface, then the DCH settings, set the starting IP and end IP, this range set the network segment and Windows IP is a network segment

Then click on Confirm, then go back to the Virtual Network editor interface Click Confirm, restart the virtual machine, ping www.baidu.com has been able to ping, indicating that the external network has been opened

If it is not possible to check whether the/etc/network/interfaces is set correctly, the circle is the name of the network card, the box is the DHCP is automatically get Ip,static is the configuration of static IP, it is necessary to set address and other information, specify the IP address

There are DNS settings, in/etc/resolv.conf here I set the gateway address, can also be set to 114.114.114.114, etc., DNS server address

Ping Windows IP can also be ping-pass,

VMware on Ubuntu Server connection extranet

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.