首先通过CD 命令进入下面这个目录。

cd  /etc/sysconfig/network-scripts/

注意查看网卡  我的网卡名是 ifcfg-ens33

vim ifcfg-ens33

linux CenteOS修改IP地址

 

 

linux CenteOS修改IP地址

 

IPADDR=192.168.63.130

 

配置这个防止出现两个IP地址

BOOTPROTO=static 静态IP

BOOTPROTO=dhcp 动态IP

BOOTPROTO=none 无(不指定)

 

改完之后不要忘记重置网络。

service network restart

 

 

相关文章:

  • 2021-11-05
  • 2021-11-24
  • 2021-05-17
  • 2021-05-28
  • 2021-12-27
  • 2021-11-19
  • 2021-09-09
  • 2022-02-20
猜你喜欢
  • 2021-12-04
  • 2021-11-19
  • 2021-06-27
  • 2021-09-14
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案