设置IP
1. #ifconfig eth0 192.168.0.20 netmask 255.255.255.0
2. vi /etc/sysconfig/network-scripts/ifcfg-eth0
设置网关
1. #route add default gw 192.168.0.1
2. vi /etc/sysconfig/network
设置DNS
vi /etc/resolv.conf
设置主机名
1.#hostname host1
2. vi /etc/sysconfig/network