Hi,
- docker version: 20.10.0 build 7287ab3
- Windows 10.0.18362
On my phisical LAN I have a DHCP service.
create transparent network:
docker network create -d “transparent” --subnet 10.10.10.0/24 --gateway 10.10.10.254 -o com.docker.network.windowsshim.dnsservers=“10.10.0.1” net_tansp192168
run container using Microsoft Artifact Registry
docker run --network=net_tansp192168 -p 810:810 --name web-iis810 -d iis810-image
if I go into container I see the IP assigned by DHCP (for example 10.10.10.4 ) and when from my network I try to connect http://10.10.10.4:810 it’s work weel.
PROBLEM NUMBER 1:
If I run the command:
docker inspect -f “{{ .NetworkSettings.Networks.net_tansp192168.IPAddress }}” web-iis810
it give me another IP (for example 10.10.10.10)
and if I try to connect to this IP (http:// 10.10.10.10:810) not work
Same result with command:
docker network inspect net_tansp192168
[
{
“Name”: “net_tansp192168”,
“Id”: “27a37e816d4f72608c155d43e8697c784d9c9f10b0eab58307e0c4dca2f4d773”,
“Created”: “2020-12-30T12:02:52.1479319+01:00”,
“Scope”: “local”,
“Driver”: “transparent”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “windows”,
“Options”: null,
“Config”: [
{
“Subnet”: “10.10.10.0/24”,
“Gateway”: “10.10.10.254”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“d6fb8a8de4cf94eff25b7216cb56b7ba4add8798e3eed7cf6752d457595c22e5”: {
“Name”: “web-iis810”,
“EndpointID”: “1dcd73c2a338f71b2eadfa38cf534fbc495afb9c45c25e86f68b92b790841d6f”,
“MacAddress”: “00:15:5d:53:3a:94”,
“IPv4Address”: “10.10.10.10/24”,
“IPv6Address”: “”
}
},
“Options”: {
“com.docker.network.windowsshim.dnsservers”: “10.10.10.1”,
“com.docker.network.windowsshim.hnsid”: “42EC4B21-76DE-4847-AC33-27EB40620749”,
“com.docker.network.windowsshim.networkname”: “net_tansp192168”
},
“Labels”: {}
}
]
Why ???
PROBLEM NUMBER 2:
If I run the container fixing the IP Address:
docker run --network=net_tansp192168 --ip 10.10.10.20 -p 810:810 --name web-iis810 -d iis810-image
Container receive IP address from DHCP (for example 10.10.10.99) but If I run the command:
docker inspect -f “{{ .NetworkSettings.Networks.net_tansp192168.IPAddress }}” web-iis810
it give me the setting fixed IP address.
And the IP received from DHCP work, instead the fixed IP address not.
PROBLEM NUMBER 3:
With commnad Get-VmSwitch end docker network ls I see the external vSwitch and the new network created, but from Wireshark and with command Get-NetAdapter I don’t see any Virtual Adapter binded on my transparent network
Get-VMSwitch
Name SwitchType NetAdapterInterfaceDescription
27a37e816…307e0c4dca2f4d773 External Realtek PCIe GbE Family Controller
Default Switch Internal
docker network ls
NETWORK ID NAME DRIVER SCOPE 2c2cff873945 Default Switch ics local e4187713bef9 nat nat local 27a37e816d4f net_tansp192168 transparent local f0779fbd875c none null local
Get-NetAdapter
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed ---- -------------------- ------- ------ ---------- --------- vEthernet (nat) Hyper-V Virtual Ethernet Adapter #2 30 Up 00-15-5D-24-00-30 10 Gbps Ethernet Realtek PCIe GbE Family Controller 12 Up 84-A9-3E-86-B6-3C 1 Gbps vEthernet (Ethernet) Hyper-V Virtual Ethernet Adapter #3 11 Up 84-A9-3E-86-B6-3C 1 Gbps vEthernet (Default Swi... Hyper-V Virtual Ethernet Adapter 20 Up 00-15-5D-65-48-83 10 Gbps Npcap Loopback Adapter Npcap Loopback Adapter 6 Up 02-00-4C-4F-4F-50 1.2 Gbps
Why???
Thanks in advance for your kind responses.