After VirtualBox is installed in the internal network, I use NAT to connect to the network. Because the local machine can only assign one IP address, I can only use the Virtual Machine IP address.
The IP address assigned by the virtual machine is 10.0.2.15 and the gateway is 10.0.2.2. Because SECURECRT is used to connect to the local machine, the virtual machine must be able to connect to the network, you can only use the NAT port translation provided by VirtualBox.
I copied my operation. Please note that it is case-insensitive and it does not seem to be successful.
Marked in red: the name of the virtual machine created by FREEBSD
If the e1000 is an Eni, The e1000 is PCNET in the source document. In VirtualBox, The e1000 is used.
Ssh can be customized. The three commands are the same.
0 indicates the order of NICs. NICs are counted from 0.
E: \ Program Files \ Sun \ VirtualBox> VBoxManage setextradata "FREEBSD" VBoxInternal/
Devices/e1000/0/LUN #0/Config/ssh/Protocol "TCP
VirtualBox Command Line Management Interface Version 3.1.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
E: \ Program Files \ Sun \ VirtualBox> VBoxManage setextradata "FREEBSD" VBoxInternal/
Devices/e1000/0/LUN #0/Config/ssh/GuestPort "22
VirtualBox Command Line Management Interface Version 3.1.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
E: \ Program Files \ Sun \ VirtualBox> VBoxManage setextradata "FREEBSD" VBoxInternal/
Devices/e1000/0/LUN #0/Config/ssh/HostPort "2222
You can use this method to map other ports. OK