Linux Virtual Machine online virtual machine linux version: redhat9.0 Summary: to ensure that the virtual machine system can access the Internet, you must first solve the connection relationship between the virtual machine and the Real host. VMware provides three modes: bridge and Nat. Virtual machine setup... linux virtual machine online virtual machine linux version: redhat9.0 Summary: to ensure that the virtual machine system can access the Internet, you must first solve the connection relationship between the virtual machine and the Real host. VMware provides three modes: bridge and Nat. Virtual machine setting method: Click "virtual machine"> "set"> "Ethernet", and then select the connection method. 1. bridge: Set the IP address of the virtual machine Nic (local connection) to the same ip address segment as the real host, and set the ip address of the VM to 192.168.30.202. Netmask, broadcast, gateway, and dns are all the same as the host to implement virtual machine <----> host; virtual machine <----> Internet communication. This situation is suitable for local area networks, and is suitable for network sharing with real hosts or hosts in the local area network. If the single-host dialing user of ADSL uses this mode, to log on to the Internet, you must first disconnect the ADSL connection of the real host, and then establish an ADSL dialing connection in the virtual machine system, and use the account and password of the ADSL line to log on to the Internet. That is, virtual machines and real hosts cannot access the Internet at the same time. 2. nat (network address translation): In this mode, the virtual machine system performs a special conversion through the virtual machine network, sharing the IP address of the real host to access the Internet. This method is suitable for single-host dial-up users of ADSL. after the Real host dials the Internet, the virtual machine system can also access the Internet. Note that in this mode, the IP address for the "local connection" of the virtual machine must be set with "automatically obtain IP address. 3. host-only (host only): In this case, only virtual machines <---> can communicate with each other, but virtual machines <---> cannot communicate with vmwarevm over the Internet. 1: NAT shared internet access. First, enable the network connection, disable VMnet1, enable the local connection and VMnet8, and then dial to Achieve Internet sharing. Note that the IP address of the virtual machine shares an IP address with the host. Note: After completing the preceding operations, you still cannot access the internet. check whether the IP address acquisition method of the local connection is automatically obtained. if not, adjust it to automatic acquisition! 2. Virtual Machine bridging. Set the virtual machine to bridge the Internet, and then create a dial-up to enable the virtual machine to access the internet with an Internet IP address. You do not need to set the virtual network card. Note: If you use a virtual machine to bridge the Internet, the physical machine will not be able to access the Internet through dialing. only one computer can access the Internet. The NAT procedure is as follows: 1. set VMnet8 to automatically obtain the IP address, automatically obtain the DNS server, and enable it. 2. set the "local connection" of the operating system in your virtual machine to automatically obtain the IP address and DNS server (in the virtual machine, right-click "local connection"-double-click "Internet Protocol ", let's see if it's automatic! Change the fixed IP address here !) 3. of course, the VM's internet access method is selected as NAT. Right-click the virtual machine you want to set and select "set" (because there are more than one virtual machine), select "Ethernet" in "hardware", and change the network connection on the right side to "NAT-OK. 4. click "edit" in the menu bar and select "virtual network settings". remove the "automatic bridging" and select "DHCP" to enable the DHCP service, click "start"-application, and then enable the "NAT" function in the same way. Note: When selecting nat, select the Nic vmnet8 5. the most important thing is that your two services must be enabled: VMware DHCP Service and VMware NAT Service. There are several questions about the inability of virtual machines to access the Internet using NAT: if the virtual machines still cannot access the Internet at this time. I suggest you check the following areas to ensure that several NAT services have been started. the procedure is as follows: start --- set -- control panel --- management tools --- Service ensures that many friends of VMware DHCP Service and VMware NAT Service have started. when using VMware Workstation, the created virtual machine uses NAT, but cannot access the Internet in the virtual machine. The reasons may be as follows: 1. the host is Windows XP Professional SP2 or Windows Server 2003 SP1. if so, disable the firewall of VMnet1 and vmnet8. Right-click "local connection" and choose "properties"> "advanced"> "settings". in the "Windows Firewall" dialog box, click "Advanced ", remove "√" before VMnet1 and VMnet8. 2. you have installed rising, Jiangmin, Skynet firewall, or other firewall software on your host. you have not configured these firewall software correctly, as a result, VMware cannot use its built-in NAT function to share the internet. in this case, you can disable third-party firewall software. 3. you may have enabled XP's built-in "Internet Connection Sharing" in VMnet8 or VMnet1. you do not need to enable sharing on the host using the NAT feature of VMware, because VMware has built-in NAT sharing. If so, remove these shares and restart the NAT service (or restart the computer) of VMware) 4. you may have used the "green" or "simplified" version of VMware Workstation. If so, use the full version for installation. If you need Chinese, you can install Chinese-based Chinese patches.
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