Virtual Machine Linux----centos set fixed IP

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

1. Introduction

Environment: Ubuntu version is 12.04, virtual machine is Oracle Vm VirtualBox

2. Description

Requirements: now has an Ubuntu system installed, the network configuration is the default choice bridge, can surf the internet, the physical machine can connect the virtual machine operating system;

Now you need to install one more, but do not want to bother to install again, so copy one copy, select the full copy, but the virtual opportunity to the network configuration is also completely copied over, and do not assign one.

Action: Modify the configuration file of the second Ubuntu operating system to complete the network interoperability

(1) Modify the IP information,/etc/network/interfaces, in the original two lines below add the following content, note that the IP network segment and you are consistent, but the last one is not the same, according to the actual situation, the following:

192.168. 1.105  255.255. 255.0  192.168. 1.0  192.168. 1.255  192.168. 1.1

(2) Modify the system operating level,/etc/default/grub, as follows:

grub_cmdline_linux_default="text"

Note: The RunLevel command can view the current operating level of the system

(3) Modify the DNS, or not be able to surf the internet,/etc/resolvconf/resolv.conf.d/base, as follows:

8.8. 8.8

Restart, test physical machine access to the virtual machine system, virtual machine system access to each other, virtual machine access to the Internet, test normal.

   

    

Virtual Machine Linux----centos set fixed IP

Related Article

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.