Hi
I’m having trouble getting my windows containers (windowservercore) to ping the host when using NAT, other way works fine. In transparent mode this also works fine.
Attaching results from:
Invoke-WebRequest https://aka.ms/Debug-ContainerHost.ps1 -UseBasicParsing | Invoke-Expression
(Apparently not allowed to attach files)
Running:
Windows W 10 Pro, Version 1607 (14393.1944)
Docker 17.12.0-ce, build c97c6d6
Windowsservercore container
Ping from host -> container:
Pinging 172.28.193.132 with 32 bytes of data:
Reply from 172.28.193.132: bytes=32 time=2ms TTL=128
Reply from 172.28.193.132: bytes=32 time=1ms TTL=128
Reply from 172.28.193.132: bytes=32 time<1ms TTL=128
Reply from 172.28.193.132: bytes=32 time=1ms TTL=128
Ping statistics for 172.28.193.132:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 1ms
Ping from container -> host:
Pinging 172.28.192.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 172.28.192.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Ipconfig executed on host:
Ethernet adapter vEthernet (HNS Internal NIC):
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
Physical Address. . . . . . . . . : 00-15-5D-E9-3F-AA
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::a585:6d39:a1b1:d172%36(Preferred)
IPv4 Address. . . . . . . . . . . : 172.28.192.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 603985245
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-00-FD-EC-A4-4C-C8-04-BD-FF
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ipconfig executed in container:
Windows IP Configuration
Host Name . . . . . . . . . . . . : 719c07f08e6f
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : emea.group.atlascopco.com
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : emea.group.atlascopco.com
Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter
Physical Address. . . . . . . . . : 00-15-5D-E9-3F-30
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::8d8d:cd34:66fe:be39%4(Preferred)
IPv4 Address. . . . . . . . . . . : 172.28.193.132(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : 172.28.192.1
DHCPv6 IAID . . . . . . . . . . . : 67114333
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-E8-CF-3F-00-15-5D-E9-3F-30
DNS Servers . . . . . . . . . . . : 172.28.192.1
NetBIOS over Tcpip. . . . . . . . : Disabled