Linux: web Hosting with VMware internal Linux14.04 virtual machine (static IP) connected by bridging mode

Source: Internet
Author: User
Tags hosting web hosting

First, we need to figure out the network structure of the bridging mode in three common connection modes:

    • . Bridged (Bridging mode)

In this mode, the VMware virtual operating system is like a separate host in the LAN, which can access any machine in the network. In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a host machine in the same network segment so that the virtual system can communicate with the host machine. At the same time, because this virtual system is a separate host system in the LAN, it is possible to manually configure its TCP/IP configuration information to enable access to the Internet through a LAN gateway or router.
The relationship between a virtual system using bridging mode and a host machine is like two computers connected to the same hub. To make them communicate with each other, you need to configure the IP address and subnet mask for the virtual system, or you will not be able to communicate.

If you are LAN network mode, virtual machine using bridge connection mode, as long as the virtual machine is set to the IP address of the same network segment, subnet, gateway, DNS and the same computer can achieve the Internet, but also access to local area network.

If you are dial-up access, the virtual machine using this method of connection, it is necessary to establish a broadband connection in the virtual machine system, dial-up internet access, but and host can not simultaneously internet.

From our I can know: If you want to configure the host to connect to the VMware internal static IP Linux14.04 need to ensure that things:

1, rely on VMnet0 such a configuration as a bridge mode of "virtual Switch";

2, when editing VMnet0 as the bridge mode "Virtual Switch", the local network must be launched "VMware Bridge Protocol";

3, the virtual machine IP address, subnet mask, default gateway, DNS settings and host the same network segment.

Below describes how to do the following:

    • 1, if you are a personal computer using PPPoE mode of Internet access, please buy a router, provide a condition to create a local area network;
    • 2. Set the local IP:

(Remove the default installation of other virtual switches from VMware), leaving only local connections.

1. Setting up local connection: Start "VMware Bridge Protocol"

2, edit the local connection IP, subnet mask, etc.:

    • 3. Edit the VMnet Virtual switch through the virtual network editor

Set to the following (VMnet1 VMnet8 default band can be removed, the current mode of bridging is not used by them):

    • 4. Set the virtual machine (Ubuntu14.04) network connection mode:

    • 5, edit Ubuntu14.04 virtual machine IP, gateway, subnet mask, etc.:

5.1) Modify/etc/network/interfaces, set IP, gateway, subnet mask

5.2) Configure DNS resolution, and then/etc/resolv.conf the DNS parsing file. Execution: vim/etc/resolv.conf, such as:

5.3) If you reboot, the/etc/resolv.conf will still be the same, so let it change forever, so execute: vim/etc/resolvconf/resolv.conf.d/base

5.4) to the basic is completed, and then still can not connect to the Internet, to the/etc/networkmanager/directory system-connections deleted, or moved to another directory.

5.5) Restart test can be connected to the network:

Host Www.baidu.com
    • Resources:

Http://jingpin.jikexueyuan.com/article/31624.html

Http://jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html

Linux: web Hosting with VMware internal Linux14.04 virtual machine (static IP) connected by bridging mode

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.