fedora 20 set static ip
#vi /etc/hostname
new_hostname
[root@localhost ~]#
vi /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE="Ethernet"
BOOTPROTO="
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"
IPADDR="10.0.0.30"
NETMASK="255.255.255.0"
GATEWAY="10.0.0.1"
DNS1="10.0.0.10"
# 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 ~]#
systemctl disable NetworkManager.service
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 ~]#
chkconfig network on
[root@localhost ~]#
see:http://www.server-world.info/en/note?os=Fedora_20&p=initial_conf&f=3
相关推荐
tianyayi 2020-08-16
86417413 2020-11-25
星愿心愿 2020-11-24
89612310 2020-11-09
rikeyone 2020-11-04
一路到黑 2020-10-30
89437401 2020-10-29
83911930 2020-07-28
89612310 2020-07-27
CNxuwang 2020-07-20
86477414 2020-06-28
TuxedoLinux 2020-06-17
87354452 2020-06-10
行万里 2020-06-09
jLawrencee 2020-05-19
songxiugongwang 2020-03-07
hahhah0 2020-05-08
zhiliang 2020-04-23