VMware's network configuration Linux

Source: Internet
Author: User

The requirements need to be configured with VMware's virtual Linux IP to be locally accessible, and virtual machine Linux can be accessed online:

First scenario: Choosing a Bridging Mode

Idea: Because bridging can allow virtual machine Linux to connect locally as a bridge to the router, and then assign a separate IP, it can also configure its IP to be local to the same network segment, so that virtual machine Linux can access the extranet through the local---router. Then the local and Linux are the same network segment, so the two are accessible to each other

Implementation process: Set the network in VMware to bridge mode, then set the network connection in the upper right corner of the virtual machine to Manual for manual, then configure IP. Gateway, DNS, and then click Aply App, where the right mouse button is the edit

, and then use the mouse to disconnect, and then connect, you will find that the beginning may not be connected, and then ifconfig, found that it has not yet come into effect, and then manually disconnect the network, and then connect, wait a few minutes, ifconfig to find their own set of IP

Effective, so just did not take effect, is the cause of the cache; also need to pay attention to the upper right corner if the fork is not connected to the network card, this Ken is not on the net, think of the Windows even the Internet card is what the consequences.

Finally found that the configuration of the Linux IP is 192.168.1.5 is the same as the local network segment, but can not access the external network, the reason is that the router to the local outside of the IP to prohibit, to prevent the next door to the net.

Second Scenario: Nat mode

Idea: Nat mode represents a local IP, but in this scenario, the virtual machine can access the extranet, can access the local, but cannot be accessed locally

Implementation process:

Set the VMware network to NAT, and then set the upper-right corner of Linux to the first automatic. Then disconnect the net, then connect, buffer for a few minutes to ping www.baidu.com

VMware's network configuration Linux

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.