Install UbuntuServer on the Virtual Machine to solve the network configuration

Source: Internet
Author: User
Problem: the IP address of the cloned VirtualBox VM named maid is the same as that of the parent. Yes. I am using a bridge network connection. I need to get rid of the IP address problem: the VMNet8 Nic used in NAT mode mainly needs to know the two important IP addresses Gateway and DNS. The first address (192.168.10.1) is a static address allocated to the VMwareNetworkAdapterVMnet8 adapter of the host. Second

Problem: the IP address of the cloned VirtualBox VM Ubuntu server 12.04 is the same as that of the parent.

Yes. I am using a bridging network and need to change the IP address.

Network problems:

The VMNet8 Nic used in NAT mode mainly needs to know two important IP addresses: Gateway and DNS.

The first address (192.168.10.1) is a static address allocated to the VMware Network Adapter VMnet8 Adapter of the host machine.
The second address (192.168.10.2) is a static address allocated to the NAT device.
(192.168.83.3 to 192.168.10.127) static address, retained.
(192.168.83.128 to 192.168.10.254): IP address range of the DHCP scope, which is allocated to virtual machines.

Modify the network configuration of Ubuntu:

1) set the IP address, gateway, and mask. Vi/etc/network/interfaces, add the following content:

Iface eth0 inet static
Address 192.168.10.200
Netmask 255.255.255.0
Gateway 192.168.10.2
Auto eth0

Note that the IP address of the Virtual Machine System and the IP address of the host virtual network card must be configured with the same sub-network. What should I do if I write 192.168.1.1 at will? Wxl, right? Hey

2) Add DNS, vi/etc/resolv. conf, and add the following content:

Nameserver 192.168.10.2

3) effective:/etc/init. d/networking restart

4) if the network connection of the host is OK, test whether Ubuntu is OK. For example, ping www.linuxidc.com

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.