1.查看当前网卡信息

Linux-Centos7网卡自动获取ip修改

 

 2.找到网卡配置文件

#cd /etc/sysconfig/networl-scrips

#ls

Linux-Centos7网卡自动获取ip修改

 

 3.找到ifcfg-ens33最后一行,ONBOOT=no改为yes

Linux-Centos7网卡自动获取ip修改

 

 Linux-Centos7网卡自动获取ip修改

 

 4.重启网卡

#systemctl restart network

5.查看获取的ip

#nmcli device show

Linux-Centos7网卡自动获取ip修改

 

相关文章:

  • 2021-07-15
  • 2021-11-10
  • 2021-07-30
  • 2022-12-23
  • 2021-12-03
  • 2021-12-06
  • 2021-12-12
  • 2021-09-19
猜你喜欢
  • 2021-12-03
  • 2021-07-02
  • 2021-09-14
  • 2021-06-16
  • 2021-12-06
  • 2022-03-04
相关资源
相似解决方案