Linux centos6.8 and 7.2 are configured in the virtual machine after the installation of the Experiment Environment Command and change contrast

Source: Internet
Author: User

key points : 1, the installation of the Linux system on the virtual machine steps, the main note in the choice of Linux system 32-bit Select the system, if 64-bit system must choose 64-bit system, otherwise the network card can not be recognized, only the loopback interface;

2, the network adapter configuration after the restart command is also a difference

When installing Linux system centos6.8, select the minimum installation package, enter the system we want to configure the network card address and DNS address requirements to be able to network. So first look at the address

# IP Addr View the current connected network card status of the system

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0 into edit mode keyboard press and hold I enter edit state modify parameter

Change Onboot=no to Onboot=yes

Bootproto=dhcp/static/none Modify the network status according to its own needs, my configuration is static address

Boot[roto=static

ipaddr=192.168.1.x added static address.

netmask=255.255.255.0 Add Subnet mask

gateway=192.168.1.254 or 1 gateways are different, depending on the actual configuration

After the configuration is complete, press and hold the keyboard ESC to exit the edit state and use the <:wq> command to save the exit (<:q!> this is forced to quit without saving) here the single title number is for the difference, the actual content of the title number inside the content!

Next is the DNS configuration

The first thing to know is that the DNS file is saved in the/etc/resolv.conf file, also use VI or VIM (minimal installation vim requires networking after installation) into the editor

Vi/etc/resolv.conf

Add Namereserver x.x.x.x Here is the address of the DNS

After completing the centos6.8, restart the NIC with the # Service network restart command. here, centos7.2 is using a different command, whose command is the # systemctl restart network restart NIC

The next step is to test the network connectivity. # ping www.baidu.com or 8.8.8.8 for testing

Then we use the Yum command to install the VIM Command Pack # Yum install vim-y here the parameter-y is to bypass the interaction with the system each time yes to agree to the installation is a security mechanism.

This article is from the "Cheung Linux Road" blog, please be sure to keep this source http://yancyliu.blog.51cto.com/11000987/1911736

Linux centos6.8 and 7.2 are configured as an experimental environment command and change comparison after installation on a virtual machine

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.