原文地址:https://lintut.com/how-to-configure-static-ip-address-on-centos-6-5-minimal/
How to configure static IP address on CentOS 6.5 minimal
By default does not come with pre-configure network. In this small tutorial i will explain how to set static ip address on CentOS 6.5 minimal.
First, need to edit the set up for the ethernet. Let’s start with editing this file:# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0HWADDR=1c:65:9d:93:fc:e1TYPE=EthernetONBOOT=yesBOOTPROTO=noneIPV6INIT=noUSERCTL=noNM_CONTROLLED=yesPEERDNS=yesIPADDR=192.168.0.101NETMASK=255.255.255.0
Now, configure default getaway:
# vi /etc/sysconfig/network
NETWORKING=yesHOSTNAME=centos6GATEWAY=192.168.0.1