vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
NM_CONTROLLED=yes
ONBOOT=yes
HWADDR=00:0c:29:5b:1c:de
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.1.223
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
USERCTL=no
 
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
 
vi /etc/resolv.conf
nameserver 192.168.1.1
 
网络配置好了,就可以用yum来安装一些常用的软件:
yum install vim
yum install wget
yum install gcc
yum install make
yum install setuptool
yum install system-config-network-tui
yum install system-cofnig-firewall-tui



​http://luyx30.blog.51cto.com/1029851/1198114​


​http://mnt.conf.blog.163.com/blog/static/115668258201321614515455/​