Skip to content

Initialize-NatNetwork fails with err: "The provided network configuration is invalid or missing parameters" on WS2019 #24

@profnandaa

Description

@profnandaa

Describe the bug

Initialize-NatNetwork

Are you sure you want to initialises a NAT network? Missing dependencies (Windows CNI Plugins and HNS module) will be installed if missing.
Continue with this operation?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y
Creating NAT network
Could not create a new NAT network nat with Gateway 172.22.16.1 and Subnet mask 172.22.16.0/16. HcnCreateNetwork -- HRESULT: 2151350282. Result: {"Success":false,"Error":"The
provided network configuration is invalid or missing parameters. ","ErrorCode":2151350282}
At C:\Users\Administrator\installs\containers-toolkit\containers-toolkit\Public\ContainerNetworkTools.psm1:221 char:17
+ ...             Throw "Could not create a new NAT network $networkName wi ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not creat...de":2151350282}:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not create a new NAT network nat with Gateway 172.22.16.1 and Subnet mask 172.22.16.0/16. HcnCreateNetwork -- HRESULT: 2151350282. Result: {"Suc
   cess":false,"Error":"The provided network configuration is invalid or missing parameters. ","ErrorCode":2151350282}

To Reproduce
Steps to reproduce the behavior:

  1. Follow setup instructions
  2. Run Initialize-NatNetwork

Desktop (please complete the following information):

  • OS: WS2019

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions