# vim /etc/sysconfig/network-scripts/ifcfg-eth0
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="static"              手动
HWADDR=00:0C:29:89:94:A7        网卡地址
MTU="1500"           
IPADDR=192.168.1.140             IP地址
NETMASK=255.255.255.0            子网
NETWORK=192.168.1.0              网段
BROADCAST=192.168.1.225          广播地址
GETEWAY=192.168.1.1              网关地址


# service NetworkManager restart
# service network start

修改ssh远程时出现乱码解决如下:   
vi /etc/sysconfig/i18n              修改如下:
LANG="en_US.UTF-8"
#LANG="zh_CN.UTF-8"

vi /etc/vimrc                       添加如下:
set shiftwidth=4
set sts=4
set tabstop=4
set shiftround
set expandtab
autocmd FileType perl,pm,cgi set smartindent
autocmd FileType c,cpp,slang set cindent


vi /root/.bash_profile
export PATH
alias vi='vim'
export LANG=zh_CN

vim /etc/inittab
id:3:initdefault:


vim /etc/rc.local
service NetworkManager tart
service network start
service  iptables stop


到此完毕: