〖Fedora〗设置Fedora静态ip地址

root@Fedora:~# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
#BOOTPROTO=dhcp
HWADDR=08:00:27:5f:5c:31
ONBOOT=yes
DHCP_HOSTNAME=localhost.localdomain
#NM_CONTROLLED=
# add by linkscue, for static ip addr
BOOTPROTO=static
NM_CONTROLLED=yes
IPADDR=192.168.1.110
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
# add by linkscue, end

/etc/init.d/network restart

你可能感兴趣的:(fedora)