Shared Internet access between Linux and real hosts in VMware

Source: Internet
Author: User
Tags dns entry
Article Title: shared Internet access between Linux and real hosts in VMware. Linux is a technology channel of the IT lab in China. It includes desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification implementation environments:

The real machine system is windows xp or 2003, and uses adsl dial-up to access the Internet. The virtual machine version is V5.5.2 Build 29772. The virtual machine is installed with linux and has a network card, which uses the bridge mode.

1. Enable ICS in windows.

Select the connection after adsl dial-up. What are the attributes? Advanced? Internet Connection Sharing? Select "allow other network users to share internet connections through this computer" and select "Local Connection" for home network connections ".

2. Configure static IP in linux.

Click the main menu? System settings? Network, click "network configuration", double-click eth0, and select "static IP Address ",

Address: 192.168.0.21 (unless 192.168.0.1 and 255)

Subnet Mask: 255.255.255.0

Gateway: 192.168.0.1

OK

DNS entry. For the primary DNS, enter 192.168.0.1.

After entering all, remember to save.

3. Edit the host address (this step is not required during the experiment)

Vi/etc/hosts

Replace 127.0.0.1 with the IP address 192.168.0.88.

4. Restart the service

Service network restart or restart linux.

5. ping google.cn to check whether the above steps are correct.
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.