一,图形界面,setup

二,修改文件

1,修改主机名字

vi /etc/sysconfig/network
NETWORKING=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=eddy01

2,修改IP地址

vi /etc/sysconfig/network-scripts/ifcfg-Auto_eth1
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.145.109
PREFIX=
GATEWAY=192.168.145.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth1"
UUID=a1be413e-2e3e--81d4-543ac5ccfdc1
ONBOOT=yes
HWADDR=:0C::::
LAST_CONNECT=

3,修改ip和主机名的映射

vi /etc/hosts
192.168.145.109 eddy01
192.168.145.110 eddy02
192.168.145.111 eddy03
192.168.145.112 eddy04
192.168.145.113 eddy05
192.168.145.114 eddy06
192.168.145.115 eddy07
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: localhost localhost.localdomain localhost6 localhost6.localdomain6
~
04-25 05:07