#ip地址参数配置文件的更改vim/etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]DEVICE=eth0
#ONBOOT关键字决定开机是否自动开启该网卡ONBOOT=yes#如若不使用网卡MAC地址使用MACADDR关键字MACADDR=00:50:1d:24:52:67#子网掩码参数NETMASK=255.255.255.0
#ip地址参数IPADDR=192.168.1.194
#网络类型参数TYPE=Ethernet
#网关参数GATEWAY=192.168.1.254
#回环地址参数配置文件默认vim/etc/sysconfig/network-scripts/ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,# you can change this to something else (255.255.255.255, for example)BROADCAST=127.255.255.255
ONBOOT=yesNAME=loopback
#更改主机名配置文件一(两处都要更改)vim/etc/sysconfig/network
NETWORKING=yesNETWORKING_IPV6=yes#主机名关键字HOSTNAMEHOSTNAME=zs-rhel
#更改主机名配置文件二(两处都要更改)vim/etc/hosts
# Do not remove the following line, or various programs# that require network functionality will fail.#在localhost.localdomain前面加入要更改的主机名zs-rhel
127.0.0.1 zs-rhel localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#不重启计算机使网络参数生效hostname zs-rhel
service network restart