Recently, I want to learn how to install oracle in Linux. However, the virtual machine and the physical machine cannot communicate with each other. It is depressing that you can find this article.
My environment is:
Host OS: Windows XP SP3
Guest OS: centos 6.3
Virtual Machine: virtualbox 4.2.6
Connection Type: Nat
The reprinted article is as follows:
First, let's look at this:
Network Address Translation (NAT)
Http://www.virtualbox.org/manual/ch06.html
--------------------------------------------------------------------
Host OS: Windows 7
Guest OS: centos 5.7
Virtual Machine: virtualbox 4.1.2
Connection Type: Nat
--------------------------------------------------------------------
It is just a simple implementation. Other refined things are re-extended and support for open-source software. The implementation is as follows:
Go to guestos:
#/Sbin/ifconfig
View Inet ADDR: 10.0.2.15
Then go to the Hostos to check the control panel and the virtualbox host-only network in the network and sharing center.
IP address of the IPv4 attribute: 192.168.56.1
If you have prepared enough, configure it as follows:
Tip: the default ssh port is 22.
Open the virtualbox settings window> network> adapter1 enable network connection> connection mode: Nat> access network cable>
Port forwarding:
Map the TCP 192.168.56.1: 2222 to 10.0.2.15: 22.
OK. Restart and enable putty.
Session-> Host Name (or IP address) 192.168.56.1; port: 2222-> open
-> Login successful.
From: http://blog.csdn.net/qzier_go/article/details/6875831