CentOS 6.0 minimal minimized after installation VMware virtual machine networking detailed

Source: Internet
Author: User
Tags nameserver

Recently want to make a mailman mailing list, do not want to do in my common CentOS 6.4 to do experiments, afraid of destroying the environment, so I want to install a test machine, it is too large space, so find a half-day to find CentOS 6.0 minimal version is the most suitable, loaded after the discovery is really small, More than 600 m, but because it was too streamlined, it didn't even have a network. The following describes how to configure the network, installed after the system can be followed by the following steps to proceed. (Note that this is a VMware virtual machine, if you are using a physical machine to dial directly with Rp-pppoe, please see the previous blog post for details.) )


Open the virtual machine software first, click VMnet8, and then click Nat Settings.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/E2/wKioL1S_mhvzFsrDAAHJXKv3j0E955.jpg "title=" 1.JPG " alt= "Wkiol1s_mhvzfsrdaahjxkv3j0e955.jpg"/>

Watch your gateway IP.

Mine is 192.168.116.2.

Set up below to start:

A. Set the Gateway

Vi/etc/sysconfig/network

Networking=yes #表示系统是否使用网络, this behavior system comes with, I did not change

Hostname=kd.localdomain #设置本机的主机名, this is the installation system prompt setting, the system comes with, I did not change

gateway=192.168.116.2 #设置本机连接的网关的IP地址, that's the gateway IP you saw in the first picture.

After the change

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E2/wKioL1S_nQGxwi5BAAB5Ak5_ZGA490.jpg "title=" 3.JPG " alt= "Wkiol1s_nqgxwi5baab5ak5_zga490.jpg"/>

B, modify the IP address of the corresponding network card configuration file

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Onboot=yes #系统启动时激活此设备

Bootproto=static #网卡获得ip地址的方式, (can be static,dhcp or BOOTP), we directly static fixed IP, lest it move

ipaddr=192.168.116.116 #静态指定IP, specify the IP address of the network card, the shape of 192.168.116.xxx

netmask=255.255.255.0 #子网掩码

After the change

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/E2/wKioL1S_m4mSW67iAAC_ApcEg4U436.jpg "title=" 2.JPG " alt= "Wkiol1s_m4msw67iaac_apceg4u436.jpg"/>

C. Set up DNS

Vi/etc/resolv.conf

NameServer 180.76.76.76 #这是百度公共DNS

NameServer 223.5.5.5 #这是阿里公共DNS

After the change

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E4/wKiom1S_nH-h7nqeAABkZBZjnp4108.jpg "title=" 4.JPG " alt= "Wkiom1s_nh-h7nqeaabkzbzjnp4108.jpg"/>

And then

Service Network Restart #重启网络服务和网卡
Ifconfig #可以查看网络设置
Ping 192.168.116.1 #检查网关是否连通

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/E5/wKiom1S_vDXTjj-IAAEwgXV01ok162.jpg "title=" 5.JPG " alt= "Wkiom1s_vdxtjj-iaaewgxv01ok162.jpg"/>


Then it's all right. You can ping Baidu to try.



This article is from the "mirage1993" blog, make sure to keep this source http://mirage1993.blog.51cto.com/2709744/1606823

CentOS 6.0 minimal minimized after installation VMware virtual machine networking detailed

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.