centos 中没有 ifcfg-eth0 配置文件的解决办法
  1.也就是说是centos6改用NetworkManager方式管理网络了,可以运行如下命令进行确认:
  chkconfig --list | grep -i netw
  2.关闭NetworkManager服务
  service NetworkManager stop
  3.关闭NetworkManager开机启动
  chkconfig NetworkManager off
  4.添加 /etc/sysconfig/network-scriipts/ifcfg-eth0 文件
  DEVICE=eth0
  BOOTPROTO=static
  IPADDR=146.175.139.13
  NETMASK=255.255.255.0
  GATEWAY=146.175.139.255
  HWADDR=00:25:90:81:5e:64
  NM_COnTROLLED=no
  ONBOOT=yes
  TYPE=Ethernet
  IPV6INIT=no
  5.开机启动network
  chkconfig network on
  6.开启network服务
  service network start

相关文章:

  • 2021-11-28
  • 2021-11-28
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-04-03
猜你喜欢
  • 2021-05-12
  • 2021-08-07
  • 2021-06-13
  • 2021-06-18
  • 2021-11-27
  • 2021-04-07
  • 2021-07-19
相关资源
相似解决方案