Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Multiple NIC configurations - Static IP Configuration requires unnecessary gateway address when using internal/non routed networks #210

Open
erwinkersten opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@erwinkersten
Copy link

Description:
When I add additional network adapters to the AKS Edge Essentials configuration and opt for a static IP setup, I am required to provide values for all three fields: Ip4Address, Ip4GatewayAddress, and Ip4PrefixLength, even when configuring a flat, internal, or non-routable network. In such cases, the Ip4GatewayAddress is not necessary.

The issue arises because the system enforces the requirement to provide all three values, even though gateways aren’t relevant for certain internal networks.

{
...,
"LinuxNode": {
    ...,
    "SecondaryNetworks": [
      {
        "VMSwitchName": "INTERNAL",
        "Ip4Address": "192.168.175.10",
        "Ip4PrefixLength": 24
      }
    ]
  }
}

When I try to omit the Ip4GatewayAddress, I encounter the following error: Invalid values provided for the subnet details. Either provide values for all (Ip4Address, Ip4PrefixLength & Ip4GatewayAddress) or for none of them.

More details:

[10/21/2024 08:22:47] Invalid values provided for the subnet details. Either provide values for all (Ip4Address, Ip4PrefixLength & Ip4GatewayAddress) or for none of them.
[10/21/2024 08:22:47] Validating AksEdge network parameters...
[10/21/2024 08:22:47] 1 errors found in the deployment configuration. Fix errors before deployment
[10/21/2024 08:22:47] AksEdge - JSON configuration contains errors

Expected Behavior
Specifying the Ip4GatewayAddress should not be a mandatory field, particularly when it is not required or relevant for internal or non-routable networks. The configuration should allow for the omission of this field in such cases.

Work arround:
I can use a workaround by specifying a bogus gateway address, which allows me to deploy the configuration. However, this results in an unnecessary and incorrect gateway being configured, which doesn’t make sense for internal or non-routable networks.

@erwinkersten erwinkersten added the bug Something isn't working label Oct 21, 2024
@parameshbabu
Copy link
Collaborator

Multiple NIC feature support was added to allow explicit network connectivity (via internet) for specific workload requirements. To make this feasible, we enforce all the network properties for these secondary networks today.

Can you elaborate your scenario here on this internal/private network use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants