How to Liunx the Internet in a virtual machine

Source: Internet
Author: User

System: XP

Virtual machine: Mware? Workstation7.0

Virtual machine system: redhatlinux9

Liunx online tutorial in virtual machines:

For example, Vmnet1 ip:192.168.0.1 (my XP system has VM1 shared into the local connection automatically into this network segment, the specific system may be different)

Virtual machine settings: ip:192.168.0.2 gateway:192.168.0.1

This enables the virtual machine <---> host communication, but the virtual machine <---> The Internet is still unable to communicate

1 Choose VMware's Host-only

2 Local connection of the host

3 Local connection Share Internet

4 in Virtual Machine Linux, set up the network

The Gateway of the virtual machine is 192.168.0.1,dns without setting

Packet direction: From the eth0 out after the packet thrown to: 192.168.0.1,192.168.0.1 and local connection is sharing the Internet, so 192.168.0.0/24 network segment of the packet to the local connection, The local NIC will change the source IP and the source Mac to the real IP and Mac of the local computer, and then throw it to the gateway.

To verify the above I guess, ping www.baidu.com on the virtual machine, and then run the grab software on the local PC Wireshark, screenshots are as follows:

The local network card is 192.168.1.102, the virtual machine eth0 ip:192.168.0.2, can see from the above picture is not the virtual machine the network segment and the public network IP interaction message.

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.