Ubuntu Server Virtual Machine network configuration within the VirtualBox

Source: Internet
Author: User
Tags oracle vm virtualbox vm virtualbox
Environment:

Host: Windows 7, single network card;

Virtual machine: UBUNTU-14.04.1-SERVER-AMD64;

Host Internet is connected router, IP address is automatically obtained through the DHCP service;

Basic situation:

Ubuntu Server is a new installation. After the installation is complete, it is possible to ping the detox host through a virtual machine, but the host ping does not pass the virtual machine. Also tried to shut down the firewall, but did not work, and finally found that there is no relationship with the firewall.

Correct configuration:

First set up the virtual machine's network, in the Oracle VM VirtualBox Manager Select the newly installed Ubuntu server server, click "Settings"-"network", such as:

  • The "control chip" default is OK.
  • "Interface Name" This corresponds to my computer is currently available on the network card (wireless card notebook).
Host Network settings:

Open Network connections to see a network connection as shown:

Right-click on it and select Properties to see the following:

But when you open, the default "VirtualBox bridged Networking Driver" is not checked, here to select it, click "OK". After this step is complete, restart the virtual machine network or restart the virtual machine, you will find that the virtual machine's IP and host IP in the same network segment, and can also communicate with each other.

command to restart the virtual machine nic:sudo/etc/init.d/networking Restart

Use ifconfig inside the virtual machine to view network information as shown in:

The host network information is as follows:

Ubuntu Server Virtual Machine network configuration within the VirtualBox

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.