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(
507507 }
508508
509509 networkContainerApipaIP := localIPConfiguration .IPSubnet .IPAddress
510- hostApipaIP := localIPConfiguration .GatewayIPAddress
511510 protocolList := []string {protocolICMPv4 , protocolTCP , protocolUDP }
512511
513512 endpointPolicies , err := configureAclSettingHostNCApipaEndpoint (
@@ -526,8 +525,9 @@ func configureHostNCApipaEndpoint(
526525 endpoint .Policies = append (endpoint .Policies , endpointPolicy )
527526 }
528527
528+ // keep Apipa Endpoint gw as 169.254.128.1 to make sure NC to host connectivity work for both Linux and Windows containers
529529 hcnRoute := hcn.Route {
530- NextHop : hostApipaIP ,
530+ NextHop : hnsLoopbackAdapterIPAddress ,
531531 DestinationPrefix : "0.0.0.0/0" ,
532532 }
533533
You can’t perform that action at this time.
0 commit comments