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.