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

相关文章:

  • 2021-05-07
  • 2021-06-26
  • 2022-01-10
  • 2022-01-22
  • 2021-07-11
  • 2021-04-14
  • 2021-06-25
  • 2022-03-02
猜你喜欢
  • 2021-04-29
  • 2022-12-23
  • 2021-11-29
  • 2021-11-25
  • 2021-06-27
  • 2021-08-25
  • 2021-09-23
相关资源
相似解决方案