Quantcast
Viewing all articles
Browse latest Browse all 2770

Cannot add NAT rules after creating and deleting multiple NAT connections

Hello,

I'm running into a situation where if I create multiple NAT connections on a single VMNetworkGateway via PowerShell, and then delete one of them, I am no longer able to add NAT rules. I'm running SCVMM under Windows 2012 R2.

It's quite easy to reproduce. The first commands run with no problems:

Add-SCVMNetworkGateway -Name "Gateway" -EnableBGP $false -NetworkGateway $gatewaydevice -VMNetwork $vmnetwork
$nat1 = Add-SCNATConnection -Name "nat1" -VMNetworkGateway $vmnetworkgateway -ExternalIPPool $externalippoolvar
$nat2 = Add-SCNATConnection -Name "nat2" -VMNetworkGateway $vmnetworkgateway -ExternalIPPool $externalippoolvar
Remove-SCNATConnection -NATConnection $nat1

But then at this point, any attempts to add a NAT connection will fail:

Add-SCNATRule -Name "rule1" -Protocol "TCP" -InternalIPAddress 192.168.90.90 -InternalPort 8080 -ExternalPort 8080 -NATConnection $nat2
Add-SCNATRule : Execution of Microsoft.SystemCenter.NetworkService::NewNATRule on the configuration provider
4ee559f1-f479-480c-9458-d14b8b1c1779 failed. Detailed exception: Microsoft.VirtualManager.Utils.CarmineException:
Unable to add or remove NAT rule to the Remote Access server. (Instance Nat b9cef020-556e-4f67-b7ca-5775334d2370 not
found
)
Fix the issue in Remote Access server and retry the operation. (Error ID: 21426)

Check the documentation for the configuration provider or contact the publisher support.

At line:1 char:1
+ Add-SCNATRule -Name "rule1" -Protocol "TCP" -InternalIPAddress 192.168.90.90 -In ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (:) [Add-SCNATRule], CarmineException

    + FullyQualifiedErrorId : 21426,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.AddSCNATRuleCmdlet

Any ideas, or has anyone seen this before?

Thanks,

Ray


Viewing all articles
Browse latest Browse all 2770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>