VBox on the centos7 of various ways of networking

Source: Internet
Author: User
  1. Bridge

    This method is relatively simple, in the configuration Interface selection, bridge mode (DHCP), after power on the IP, and host IP in the same network segment, can ping each other, through the Xshell IP can connect

  2. Nat

    The virtual function pings the host, but the host cannot ping the virtual machine, so the Xshell ssh connection on the Win7 is not on the virtual machine, at which point the port mapping can be done.

    For example, I win7 wireless network card IP 192.168.1.114

    Centos7 ip10.0.2.4/24,gateway 10.0.2.2 DNS 10.0.2.3

    Set the NAT Nic port mapping on the VBox NIC interface:

    Host IP 192.168.1.114 Port 222

    Sub-machine IP 10.0.2.4 Port 22

  3. Reboot Centos7

  4. You can connect Centos7 with SSH in Xshell.

VBox on the centos7 of various ways of networking

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.