【发布时间】:2019-08-17 18:15:08
【问题描述】:
Hyper V 默认交换机 IP 在 C 类和 D 类之间更改,因此每次重启后您会得到 172.17.x.x 或 192.168.x.x。 到目前为止,这似乎是我能读到的所有 Windows 10 安装的一个众所周知的“功能”。
我的问题是,如果 Hyper Default 开关保持在 172.17.x.x 上,为什么一个正在运行的 docker 容器 - 开箱即用,没有任何额外的 docker 网桥 - 无法与互联网通信
只有当我得到 192.168.x.x 时它才有效。我认为原因是 Docker 默认开关也是 172.x.x.x。
关于 Windows 10 上 Hyper V 默认开关的当前行为,如何为正在运行的容器配置配置稳定的网络?
路线打印 - 输出:
===========================================================================
Schnittstellenliste
8...54 bf 64 a6 c1 0a ......Intel(R) Ethernet Connection (2) I219-LM
9...00 15 5d e5 81 12 ......Hyper-V Virtual Ethernet Adapter #2
20...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
2...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
1...........................Software Loopback Interface 1
21...96 15 9f 09 b1 88 ......Hyper-V Virtual Ethernet Adapter
===========================================================================
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 10.8.32.1 10.8.40.242 6
10.0.75.0 255.255.255.0 Auf Verbindung 10.0.75.1 271
10.0.75.1 255.255.255.255 Auf Verbindung 10.0.75.1 271
10.0.75.255 255.255.255.255 Auf Verbindung 10.0.75.1 271
10.8.32.0 255.255.240.0 Auf Verbindung 10.8.40.242 259
10.8.40.242 255.255.255.255 Auf Verbindung 10.8.40.242 259
10.8.47.255 255.255.255.255 Auf Verbindung 10.8.40.242 259
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 331
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 331
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331
192.168.60.0 255.255.255.0 Auf Verbindung 192.168.60.1 291
192.168.60.1 255.255.255.255 Auf Verbindung 192.168.60.1 291
192.168.60.255 255.255.255.255 Auf Verbindung 192.168.60.1 291
192.168.137.144 255.255.255.240 Auf Verbindung 192.168.137.145 5256
192.168.137.145 255.255.255.255 Auf Verbindung 192.168.137.145 5256
192.168.137.159 255.255.255.255 Auf Verbindung 192.168.137.145 5256
192.168.254.0 255.255.255.0 Auf Verbindung 192.168.254.1 291
192.168.254.1 255.255.255.255 Auf Verbindung 192.168.254.1 291
192.168.254.255 255.255.255.255 Auf Verbindung 192.168.254.1 291
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 331
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.60.1 291
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.254.1 291
224.0.0.0 240.0.0.0 Auf Verbindung 10.0.75.1 271
224.0.0.0 240.0.0.0 Auf Verbindung 10.8.40.242 259
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.137.145 5256
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.60.1 291
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.254.1 291
255.255.255.255 255.255.255.255 Auf Verbindung 10.0.75.1 271
255.255.255.255 255.255.255.255 Auf Verbindung 10.8.40.242 259
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.137.145 5256
===========================================================================
Ständige Routen:
Keine
IPv6-Routentabelle
===========================================================================
Aktive Routen:
If Metrik Netzwerkziel Gateway
1 331 ::1/128 Auf Verbindung
1 331 ff00::/8 Auf Verbindung
===========================================================================
Ständige Routen:
Keine
【问题讨论】: