0%

重装 vps 之后 ping 不通

重装vps之后ping不通记录原因及解决方案

现象

vps重装为centos7后出现如下问题

From x.x.x.x icmp_seq=150 Destination Host Unreachable
From x.x.x.x icmp_seq=151 Destination Host Unreachable
From x.x.x.x icmp_seq=152 Destination Host Unreachable
From x.x.x.x icmp_seq=153 Destination Host Unreachable
From x.x.x.x icmp_seq=154 Destination Host Unreachable
From x.x.x.x icmp_seq=155 Destination Host Unreachable
From x.x.x.x icmp_seq=156 Destination Host Unreachable

排查

通过VNC进入后台发现网卡未启动,并且相关工具未安装

yum install net-tools

修改/etc/sysconfig/network-scipts/ifcfg-eth0onboot=yes,开机启动网卡

修改之后重启网卡service network restart