Centos 6.5 配置网络IP地址

一、找到如下的ifcfg-eth0文件,使用vim打开

** vi /etc/sysconfig/network-scripts/ifcfg-eht0*

  • **如果其中的 BOOTPROTO=dhcp,则表示使用自动的方式获取IP地址
  • 将BOOTPROTO设置为static或者none
  • 将 ONBOOT=no 改为ONBOOT=yes**
    Centos 6.5 配置网络IP地址Centos 6.5 配置网络IP地址

二、重启网络服务,如果eth0 的状态变为activated,则证明设置成功;

Centos 6 使用service network restart 命令重启网络服务
Centos 7 使用systemctl restart network 命令重启网络服务

Centos 6.5 配置网络IP地址

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2021-11-22
  • 2021-07-11
  • 2021-08-17
  • 2021-06-10
  • 2021-10-31
  • 2021-11-04
相关资源
相似解决方案