Win10-上次大型 Windows 更新后无法访问 ubuntu VM(再次:-/)

Win10-上次大型 Windows 更新后无法访问 ubuntu VM(再次:-/)

在 Windows 进行重大更新后,我的 VirtualBox 网络再次陷入瘫痪……

我的虚拟机正在启动,我可以通过 vagrant 端口转发连接到它们。但我无法从内部网络上的 Windows 主机访问它们(在 10.0.0.30 上 ping 它们)。虚拟机与外界有连接。此外,虚拟机(我有两个具有相同 vagrant 文件的虚拟机,仅在最后一个 IP 段上有所不同)可以在这个私有网络中的静态 IP 上 ping 自己。

我怀疑是 Windows 防火墙或主机路由不正确。但我找不到让它重新工作的方法。

细节:

主机:带有 VirtualBox 的 Windows 10 Pro 客户机:Ubuntu(盒子:ubuntu/xenial64)

流浪文件:

# -*- mode: ruby -*-

# vi: set ft=ruby :


Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/xenial64"
  config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=777,fmode=666"]
  config.vm.provider "virtualbox" do |v|
    v.memory = 8192
 v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  end

  config.vm.define :dev do |dev|
    dev.vm.hostname = "local-dev" 
    dev.vm.network "private_network", ip: "10.0.0.30"
    dev.vm.provision :shell, path: "bootstrap.sh"
    dev.vm.provision :shell,
      inline: 'PYTHONUNBUFFERED=1 ansible-playbook \
        /vagrant/ansible/dev.yml -c local'


  end

  if Vagrant.has_plugin?("vagrant-cachier")
    config.cache.scope = :box
  end

  if Vagrant.has_plugin?("vagrant-vbguest")
    config.vbguest.auto_update = false
    config.vbguest.no_install = true
    config.vbguest.no_remote = true
  end


end

客户机 Ubuntu 上的 ifconfig:

ubuntu@local-dev:~$ ifconfig
docker0   Link encap:Ethernet  HWaddr 02:42:0b:f0:0e:b8
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::42:bff:fef0:eb8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:11583 (11.5 KB)


enp0s3    Link encap:Ethernet  HWaddr 02:6e:aa:4e:78:a9
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::6e:aaff:fe4e:78a9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:97907 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43080 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:85101631 (85.1 MB)  TX bytes:2663603 (2.6 MB)


enp0s8    Link encap:Ethernet  HWaddr 08:00:27:d4:43:c2
          inet addr:10.0.0.30  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fed4:43c2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:142 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24608 (24.6 KB)  TX bytes:17882 (17.8 KB)


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:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:2520 (2.5 KB)  TX bytes:2520 (2.5 KB)


veth6b6e39b Link encap:Ethernet  HWaddr 7e:a7:58:89:5a:f4
          inet6 addr: fe80::7ca7:58ff:fe89:5af4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:12231 (12.2 KB)

Windows 主机上的 ipconfig:

> ipconfig /all


Windows IP Configuration


   Host Name . . . . . . . . . . . . : antigro_ciesiel
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No


Ethernet adapter Ethernet:


   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : ASIX AX88179 USB 3.0 to Gigabit Ethernet Adapter
   Physical Address. . . . . . . . . : 00-0E-C6-E3-26-C3
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes


Ethernet adapter Ethernet 3:


   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek USB GbE Family Controller
   Physical Address. . . . . . . . . : 00-E0-4C-02-09-27
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes


Ethernet adapter VirtualBox Host-Only Network #5:


   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #5
   Physical Address. . . . . . . . . : 0A-00-27-00-00-04
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::2457:af67:45f4:7d18%4(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 67764263
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-22-A9-43-A1-00-0E-C6-E3-26-C3
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled


Ethernet adapter VirtualBox Host-Only Network #6:


   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #6
   Physical Address. . . . . . . . . : 0A-00-27-00-00-2F
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::d466:173f:3d9f:8a4e%47(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.0.0.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 789184551
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-22-A9-43-A1-00-0E-C6-E3-26-C3
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled


Wireless LAN adapter Local Area Connection* 2:


   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 10-02-B5-CD-F4-20
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes


Wireless LAN adapter Local Area Connection* 11:


   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : 12-02-B5-CD-F4-1F
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes


Ethernet adapter Ethernet 2:


   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-NordVPN Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-EE-9A-6B-4A
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes


Wireless LAN adapter Wi-Fi:


   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7265
   Physical Address. . . . . . . . . : 10-02-B5-CD-F4-1F
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::14f:78ac:ef5:ee8b%13(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.10.21.181(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : wtorek, 12 czerwca 2018 09:20:56
   Lease Expires . . . . . . . . . . : wtorek, 12 czerwca 2018 14:01:18
   Default Gateway . . . . . . . . . : 10.10.21.1
   DHCP Server . . . . . . . . . . . : 10.10.21.1
   DHCPv6 IAID . . . . . . . . . . . : 772801205
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-22-A9-43-A1-00-0E-C6-E3-26-C3
   DNS Servers . . . . . . . . . . . : 10.10.21.1
                                       8.8.8.8
                                       188.117.188.117
                                       89.25.182.14
   NetBIOS over Tcpip. . . . . . . . : Enabled

Windows主机上的路由表:

> route PRINT
===========================================================================
Interface List
 28...00 0e c6 e3 26 c3 ......ASIX AX88179 USB 3.0 to Gigabit Ethernet Adapter
 24...00 e0 4c 02 09 27 ......Realtek USB GbE Family Controller
  4...0a 00 27 00 00 04 ......VirtualBox Host-Only Ethernet Adapter #5
 47...0a 00 27 00 00 2f ......VirtualBox Host-Only Ethernet Adapter #6
 31...10 02 b5 cd f4 20 ......Microsoft Wi-Fi Direct Virtual Adapter
 14...12 02 b5 cd f4 1f ......Microsoft Wi-Fi Direct Virtual Adapter #2
 33...00 ff ee 9a 6b 4a ......TAP-NordVPN Windows Adapter V9
 13...10 02 b5 cd f4 1f ......Intel(R) Dual Band Wireless-AC 7265
  1...........................Software Loopback Interface 1
===========================================================================


IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0       10.10.21.1     10.10.21.181     45
         10.0.0.0    255.255.255.0         On-link          10.0.0.1    281
         10.0.0.1  255.255.255.255         On-link          10.0.0.1    281
       10.0.0.255  255.255.255.255         On-link          10.0.0.1    281
       10.10.21.0    255.255.255.0         On-link      10.10.21.181    301
     10.10.21.181  255.255.255.255         On-link      10.10.21.181    301
     10.10.21.255  255.255.255.255         On-link      10.10.21.181    301
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
     192.168.56.0    255.255.255.0         On-link      192.168.56.1    281
     192.168.56.1  255.255.255.255         On-link      192.168.56.1    281
   192.168.56.255  255.255.255.255         On-link      192.168.56.1    281
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link      10.10.21.181    301
        224.0.0.0        240.0.0.0         On-link      192.168.56.1    281
        224.0.0.0        240.0.0.0         On-link          10.0.0.1    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link      10.10.21.181    301
  255.255.255.255  255.255.255.255         On-link      192.168.56.1    281
  255.255.255.255  255.255.255.255         On-link          10.0.0.1    281
===========================================================================
Persistent Routes:
  None


IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
 47    281 fe80::/64                On-link
  4    281 fe80::/64                On-link
 13    301 fe80::/64                On-link
 13    301 fe80::14f:78ac:ef5:ee8b/128
                                    On-link
  4    281 fe80::2457:af67:45f4:7d18/128
                                    On-link
 47    281 fe80::d466:173f:3d9f:8a4e/128
                                    On-link
  1    331 ff00::/8                 On-link
 47    281 ff00::/8                 On-link
  4    281 ff00::/8                 On-link
 13    301 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

任何帮助都将不胜感激,因为我快要为这件事失去最后一根头发了……

我记得前段时间我通过在某处(客户机或主机)添加缺少的路由来解决类似问题,但不记得具体是什么,也无法在网上找到任何帮助......

[编辑]-已解决,经过两天的咬键盘之后......

问题在于网络堆栈、virtualbox 适配器和 NordVPN/NordVPN TAP 驱动程序之间存在一些奇怪的交互。在上次 Windows 更新之前,一切都运行良好,但之后就不行了。

我已经卸载了 NordVPN 和相关的 TAP 驱动程序,卸载了网络接口,并让 Windows 在重启后重新安装它们。现在它按预期工作了。我现在将尝试在其上重新安装 Nord VPN,看看它是否仍然有效。

答案1

问题在于网络堆栈、virtualbox 适配器和 NordVPN/NordVPN TAP 驱动程序之间存在一些奇怪的交互。在上次 Windows 更新之前,一切都运行良好,但之后就不行了。

我已经卸载了 NordVPN 和相关的 TAP 驱动程序,卸载了网络接口,并让 Windows 在重启后重新安装它们。现在它按预期工作了。我现在将尝试在其上重新安装 Nord VPN,看看它是否仍然有效。

相关内容