VirtualBox NAT port Translation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.