VM under Redhat Linux Internet Configuration __linux

Source: Internet
Author: User
VMWare virtual machines installed under the Redhat 9.0 Linux has three ways to achieve the Internet, bridging, Nat, Host-only. Originally want to use bridge way, can always because the configuration network problems and not the Internet, but also sygate4.5 (proxy Server Software) to install up to configure also useless. No way, or NAT way to configure, virtual machine Linux under the NAT network configuration and I used the Windows XP3, Linux to use NAT way to surf the internet also need to do another setting, tried n more than once, finally found, I put Linux DNS configuration is wrong, really want to cry ah, This little mistake has wasted me so much time. No nonsense, or first tell me the steps of the operation.
(Prerequisite, VM chooses NAT way to surf the internet, this installs time can set up, certainly after installing good also can go to revise)
1. Network Neighborhood-Properties-you can see that you have two more network connections after you install the VM virtual machine

(Vmnet1 is host-only, that is, the choice of Vmnet1 is equivalent to VMware to provide you with a virtual switch, only virtual machines and real systems connected, virtual machines can share files with the real system, but the virtual machine cannot access the external Internet, And Vmnet8 is NAT, is the network address translation, equivalent to give you a virtual switch, the virtual machine and the real system to connect, while this virtual switch and the external Internet connection, so that virtual machines and real systems can be shared, but also access to the external Internet, And the virtual machine is borrowed from the real system IP Internet, will not be limited by IP-MAC binding. )


Right-vmnet8-Property-TCP/IP protocol

-Double-click to open-tick the IP address below,
Change the IP address to 192.168.132 (the number in the 1-224). 1/255.255.255.0 Gateway and DNS do not need to set, point to determine.

2. Open VM virtual Machine, point to the top left edit-virtual network Settings-nat

The DNS of the virtual machine is the gateway IP address 192.168.132.2 Here, this vmnet8 is equivalent to the gateway in the LAN. Take down this address.
3. Edit-Virtual network Settings-host virtual network mapping, the Vmnet0 drop-down box to check their own network card, the rest of the general default can be.

4. Back to win host, start-run-cmd, open dos, input command ipconfig/all, you can see the relevant IP configuration, remember well.

5. Into the VM virtual machine Linux system, main menu-System settings-network-check the following device eth0-into the Ethernet device editing status

Check the IP address of the static setting to set the address to and VMNET8 the IP address of a network segment: 192.168.132.X subnet mask: 255.255.255.0 default gateway: The IP address of the VMnet8 above: 192.168.132.2.
DNS is also set to 192.168.132.2

Setup Complete Save the rear menu-system Tools-terminal open input: Service network restart (Restart Network command)
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.