Just contact with Linux, the network configuration problems get the head big. In retrospect, it was not so difficult as I had thought. Now share with you, hope to help you.
Just a little attention is OK. is the host (your PC) IP with the client (your virtual machine) IP address in the same network segment.
I'm using NAT mode. Ping on host to view host IP, ipconfig command in command window
Then just set the IP in the virtual machine is also within the 192.168.245.** this network segment is OK.
Red Hat users can setup commands directly in root user mode, Note: Ubuntu users do not have this command. Ubuntu can be modified directly in the configuration file.
Save exit. Of course, you can also directly in the configuration file changes, VI, ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-EH0
Finally restart the Network service is OK command for service network restart.
Both of these methods can permanently modify the IP. You can also use ifconfig eth0 192.168.245.12 the network 255.255.255.0 method, but this method is limited to temporary modifications. Reconfiguration is required after reboot.
Finally, Ping. Look, it's the Buddha who can ping the pass. Like this is OK!
The above is personal sharing, little girl, explanation is somewhat stretched, but hope to be like me as a beginner Linux students to provide a little help. Thank you!
About Linux Network configuration issues