Environment : VBox or Vitrualbox to connect the virtual machine, because the company intranet can not allocate IP (do not know if this is the reason), the virtual machine with the bridge can not reach the IP, virtual machine and host access to each other, so with Nat.
Sorry : Nat is able to connect to the network, but also can access the host, and the host cannot access the virtual machine. However, also want to use SECURECRT in the host access to Linux (after all, Linux command line inconvenient). By default, Nat given IP is 10.0.2.15 and cannot be modified.
Search all over the mountains, practice the following solutions :
(1). cmd into the VBox installation directory, execute the following command: (or set 1)
D:/vbox>vboxmanage MODIFYVM "H1"--natpf1 "guestssh,tcp,,2222,,22"
"H1″ is my virtual machine name
The following do not change, the main idea is to map the port 2222 of the machine to the virtual machine 22, access to the machine 2222, connected to the virtual machine 22 port; "In Figure 1"
Then set the connection host in SecureCRT to 127.0.0.1 instead of the virtual machine IP;
Port is 2222 instead of
You can "Figure 2".
nat+ port forwarding allows host SECURECRT to access VBox Linux virtual machines