Http://www.linuxidc.com/Linux/2012-02/53989.htm Use the Network Bridge mode must host networking, otherwise unable to connect
First look here: 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
--------------------------------------------------------------------
Just a simple implementation, other refinement of the thing came across the extension, support open source software, implemented as follows:
Enter Guestos:
#/sbin/ifconfig
View Inet addr:10.0.2.15
Then go to Hostos, look at the control Panel, look at the network and Sharing center of VirtualBox Host-only
IP address of the IPv4 property: 192.168.56.1
Ready enough, the following decisive configuration:
Tip: The default port for SSH is 22
Open VirtualBox Settings window-〉 Network-〉adapter1 Enable network connection-〉 Connection: Nat---access network cable
Port Forwarding, set as follows:
Map the TCP protocol's 192.168.56.1:2222 to 10.0.2.15:22.
OK, restart, open putty.
Session-> Host name (or IP address) 192.168.56.1; port:2222-Open
Linux VBox in Linux settings Nat,host Putty can be accessed