diff --git a/cns/service/main.go b/cns/service/main.go index 19bf2dc06..645b8fed8 100644 --- a/cns/service/main.go +++ b/cns/service/main.go @@ -579,6 +579,13 @@ func main() { logger.Errorf("Failed to start CRD Controller, err:%v.\n", err) return } + + // Setting the remote ARP MAC address to 12-34-56-78-9a-bc on windows for external traffic + err = platform.SetSdnRemoteArpMacAddress() + if err != nil { + logger.Errorf("Failed to set remote ARP MAC address: %v", err) + return + } } // Initialize multi-tenant controller if the CNS is running in MultiTenantCRD mode. @@ -589,6 +596,13 @@ func main() { logger.Errorf("Failed to start multiTenantController, err:%v.\n", err) return } + + // Setting the remote ARP MAC address to 12-34-56-78-9a-bc on windows for external traffic + err = platform.SetSdnRemoteArpMacAddress() + if err != nil { + logger.Errorf("Failed to set remote ARP MAC address: %v", err) + return + } } logger.Printf("[Azure CNS] Start HTTP listener")