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.
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
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
C. Set up DNS
Vi/etc/resolv.conf
NameServer 180.76.76.76 #这是百度公共DNS
NameServer 223.5.5.5 #这是阿里公共DNS
After the change
And then
Service Network Restart #重启网络服务和网卡
Ifconfig #可以查看网络设置
Ping 192.168.116.1 #检查网关是否连通
Then it's all right. You can ping Baidu to try.
--------------------------------------------------------------------------------------------------------------- ----
From: http://www.centoscn.com/CentOS/config/2015/0122/4540.html
CentOS minimal version minimized after installation VMware networking