〖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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM