vi /etc/sysconfig/network-scripts/ifcfg-ens33

第一个是 IPADDR=192.168.2.142是自己新增的,本来没有

第二个ONBOOT设为yes

 修改liunx ip地址

重启网卡:  systemctl restart network

不生效就重启虚拟机

查看ip地址:ip addr

相关文章:

  • 2021-04-03
  • 2021-11-04
  • 2021-11-19
  • 2021-10-15
  • 2021-05-12
  • 2021-06-27
  • 2021-04-13
  • 2021-09-19
猜你喜欢
  • 2021-05-01
  • 2021-06-14
  • 2021-12-04
  • 2021-12-25
  • 2022-01-07
  • 2022-01-07
  • 2021-12-15
相关资源
相似解决方案