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

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

第二个ONBOOT设为yes

 修改liunx ip地址

重启网卡:  systemctl restart network

不生效就重启虚拟机

查看ip地址:ip addr

相关文章:

  • 2021-08-02
  • 2021-10-07
  • 2021-12-27
  • 2021-09-14
  • 2021-12-04
  • 2021-10-16
  • 2021-10-16
  • 2021-12-25
猜你喜欢
  • 2021-05-01
  • 2021-06-14
  • 2021-11-10
  • 2021-10-26
  • 2021-12-01
  • 2021-09-19
相关资源
相似解决方案