今天,在尝试设置 ip 故障转移时,我执行了一个命令:
“ip 地址刷新 dev ens3”
结果:我的 vps 不再响应,我被迫进入救援模式。
在一切都种植之前,我处于“ens3”,参数或多或少相同。我在 debian 9 下运行。
/etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
> **"/sbin/route -n"**
>
> Kernel IP routing table Destination Gateway Genmask
> Flags Metric Ref Use Iface
> 0.0.0.0 193.70.**.* 0.0.0.0 UG 0 0 0 eth0
> 193.70.**.* 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
> **> "root@rescue-pro:/# /sbin/ifconfig -a"**
>
> eth0 Link encap:Ethernet HWaddr fa:16:3e:b9:**:**
> inet addr:193.70.**.*** Bcast:193.70.**.*** Mask:255.255.255.255
>
> inet6 addr: ***::f816:3eff:feb9:****/64 Scope:Link
>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:18002 errors:0 dropped:0 overruns:0 frame:0
> TX packets:10814 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:23202759 (22.1 MiB) TX bytes:820631 (801.3 KiB)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:65536 Metric:1
> RX packets:43 errors:0 dropped:0 overruns:0 frame:0
> TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:9320 (9.1 KiB) TX bytes:9320 (9.1 KiB)
> **"root@rescue-pro:/# uname -a"** Linux rescue-pro 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
> **"root@rescue-pro:/# lspci | grep -i eth"** 00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
谢谢你的帮助,我彻底崩溃了!