連線:網路無法存取 - Ubuntu 18.04

連線:網路無法存取 - Ubuntu 18.04

很抱歉這個可能很愚蠢的問題,但我只是找不到針對我的問題的解決方案。我是一名 Linux 新手,試圖管理 VPS 伺服器,但遇到了麻煩。我剛剛重新啟動我的 VPS,現在我的機器無法存取網路。在此之前一切都正常。

有人可以幫我嗎?

我正在運行一些 docker 容器,但我無法在任何地方使用互聯網。
我也在使用netplan而不是ifupdown

ifconfig結果:

br-0c7683224a70: flags=4163<UP, BROADCAST, RUNNING, MULTICAST› mtu 1500
  inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
  inet6 fe80::42:60ff :fee3:3564 pref ixlen 64 scope id 0x20<1 ink>
  ether 02:42:60:e3:35:64 txqueuelen 0 (Ethernet)
  RX packets 34 bytes 2016 (2.0 KB)
  R errors 0 dropped 0 overruns 0 frame 0
  TX packets 51 bytes 4534 (4.5 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4163<UP, BROADCAST, RUNNING, MULTICAST› mtu 1500
  inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
  inet6 fe80::42:e2ff :fe3a:6cd2 pref ixlen 64 scope id 0x20<1 ink>
  ether 02:42:e2:3a:6c:d2 txqueuelen 0 (Ethernet)
  R packets 20 bytes 1600 (1.6 KB)
  R errors 0 dropped 0 overruns 0 frame 0
  TX packets 35 bytes 3384 (3.3 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp6s0: flags=4163<UP, BROADCAST, RUNNING, MULTICAST› mtu 1450
  inet6 fe80::5800:2ff :fe9a:fdb3 prefixlen 64 scopeid 0x20<1 ink>
  ether 5a :00:02:9a :fd:b3 txqueuelen 1000 (Ethernet)
  RX packets 4 bytes 520 (520.0 B)
  RX errors 0 dropped 0 overruns 0 frame 0
  TX packets 37 bytes 7082 (7.0 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP , LOOPBACK, RUNNING> mtu 65536
  inet 127.0.0.1 netmask 255.0.0.0
  inet6 ::1 pref ixlen 128 scoped 0x10<host>
  loop txqueuelen 1000 (Local Loopback)
  RX packets 15154 bytes 1578872 (1.5 MB)
  R errors 0 dropped overruns 0 frame 0
  TX packets 15154 bytes 1578872 (1.5 MB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth14db567: flags=4163<UP , BROADCAST, RUNNING, MULTICAST› mtu 1500
  inet6 fe80::d494:1bff :feaa:943b pref ixlen 64 scope id 0x20<1 ink›
  ether d6:94:1b: aa:94:3b txqueuelen 0 (Ethernet)
  R packets 10 bytes 940 (940.0 B)
  R errors 0 dropped 0 overruns 0 frame 0
  TX packets 26 bytes 2355 (2.3 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth375de13: flags=4163<UP, BROADCAST, RUNNING, MULTICAST› mtu 1500
  inet6 fe80: : b853:27ff :fe5c: 413 pref ixlen 64 scopeid 0x20<1 ink›
  ether ba:53:27:5c:04:13 txqueuelen 0 (Ethernet)
  RX packets 25 bytes 15478 (15.4 KB)
  RX errors 0 dropped 0 overruns 0 frame 0
  TX packets 52 bytes 4831 (4.8 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vethc49e94d: flags=4163<UP , BROADCAST, RUNNING, MULTICAST> mtu 1500
  inet6 fe80::e8ad:b6ff: fead:10f9 pref ixlen 64 scopeid 0x20<1 ink>
  ether ea:ad: b6: ad:10:f9 txqueuelen 0 (Ethernet)
  R packets 49 bytes 4597 (4.5 KB)
  R errors 0 dropped 0 overruns 0 frame 0
  TX packets 56 bytes 18118 (18.1 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vethfOeef78: flags=4163<UP , BROADCAST, RUNNING, MULTICAST> mtu 1500
  inet6 fe80::f020:51ff: fe8a: 7e2c pref ixlen 64 scopeid 0x20<1 ink›
  ether f2:20:51:8a:7e:2c txqueuelen 0 (Ethernet)
  R packets 0 bytes 0 (0.0 B)
  RX errors 0 dropped 0 overruns 0 frame 0
  TX packets 18 bytes 1300 (1.3 KB)
  TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

結果route

Kernel IP routing table
Destination   Gateway   Genmask       Flags   Metric   Ref   Use   Iface
172.17.0.0    0.0.0.0   255.255.0.0   U       0        0     0     docker0
172.18.0.0    0.0.0.0   255.255.0.0   U       0        0     0     br-Oc7683224a70

我真的不知道發生了什麼

相關內容