#vi /etc/hostname
new_hostname
[root@localhost ~]#
vi /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE="Ethernet"
# change
BOOTPROTO="
none
"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
name="eth0"
UUid="29de82a4-710e-4cc0-b797-bb687dd32688"
ONBOOT="yes"
HWADDR="00:0C:29:09:A9:B4"
PEERDNS="yes"
PEERROUTES="yes"
# add like follows
# this server's IP address
IPADDR="10.0.0.30"
# subnet mask
NETMASK="255.255.255.0"
# default gateway
GATEWAY="10.0.0.1"
# DNS server's IP address
DNS1="10.0.0.10"
[root@localhost ~]#
rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
rm '/etc/systemd/system/network.target.wants/NetworkManager-wait-online.service'
[root@localhost ~]#
[root@localhost ~]#
see:http://www.server-world.info/en/note?os=Fedora_20&p=initial_conf&f=3