1. 切换/etc/sysconfig/network-scripts/ 目录。

cd /etc/sysconfig/network-scripts/

 

2.  备份网卡文件。

 sudo cp ifcfg-ens33 ifcfg-ens33.baktwo

centos7配置静态ip

3.配置网卡信息

centos7配置静态ip

4.重启网卡

sudo systemctl restart network.service

5. 我的centos7是虚拟机,要设置桥接。

centos7配置静态ip

 

 

相关文章:

  • 2021-08-16
  • 2021-06-24
  • 2021-11-19
猜你喜欢
  • 2021-05-13
  • 2021-08-14
  • 2021-12-09
相关资源
相似解决方案