File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,6 @@ func configureHostNCApipaEndpoint(
507
507
}
508
508
509
509
networkContainerApipaIP := localIPConfiguration .IPSubnet .IPAddress
510
- hostApipaIP := localIPConfiguration .GatewayIPAddress
511
510
protocolList := []string {protocolICMPv4 , protocolTCP , protocolUDP }
512
511
513
512
endpointPolicies , err := configureAclSettingHostNCApipaEndpoint (
@@ -526,8 +525,9 @@ func configureHostNCApipaEndpoint(
526
525
endpoint .Policies = append (endpoint .Policies , endpointPolicy )
527
526
}
528
527
528
+ // keep Apipa Endpoint gw as 169.254.128.1 to make sure NC to host connectivity work for both Linux and Windows containers
529
529
hcnRoute := hcn.Route {
530
- NextHop : hostApipaIP ,
530
+ NextHop : hnsLoopbackAdapterIPAddress ,
531
531
DestinationPrefix : "0.0.0.0/0" ,
532
532
}
533
533
You can’t perform that action at this time.
0 commit comments