家里路由器日常抽风换ip 导致xshell断开,还是换成静态ip吧 注意先准备一个ping不通的正常ip    ping -c 5

查看自己Windows查看cmd ipconfig

centos7设置静态ip ,添加临时ip

 

 

 

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

原图:centos7设置静态ip ,添加临时ip

 

 

 

 

修改添加

BOOTPROTO=static
IPADDR=192.168.1.111
NETMASK=255.255.255.0
GATEWAY=192.168.1.1


重启
systemctl restart network.service
centos7设置静态ip ,添加临时ip

 

 添加临时ip :ip addr ad 192.168.1.112/22 dev ens33

centos7设置静态ip ,添加临时ip

 

 

 
 

相关文章:

  • 2021-06-01
  • 2021-12-11
  • 2021-09-04
  • 2021-07-30
  • 2021-12-30
猜你喜欢
  • 2021-11-29
  • 2021-11-19
  • 2022-01-09
  • 2021-06-27
  • 2021-10-22
相关资源
相似解决方案