Been looking to route the VMKernal traffic to different gateways based on the adapters we have set up. I found this blog entry and was working my way through it.
Enhanced VMkernel Networking Configuration in vSphere PowerCLI 4.1
Everything is fine until I get to the point of creating the "New-VMHostRoute" parts. At that point I get an error:
-
New-VMHostRoute : 10/1/2010 2:58:11 PM New-VMHostRoute An error occur
red during host configuration.
At line:1 char:16
+ New-VMHostRoute <<<< -Destination '192.168.1.0' -PrefixLength 22 -Gateway '192.168.1.1'
+ CategoryInfo : NotSpecified: (:smileyhappy: , VimExceptio
n
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
n.ViCore.Cmdlets.Commands.Host.NewVMHostRoute
-
I moved on to try a few of the "Set-VMHostRoute" commands and I get a similiar thing. If I intentionally create a syntax error I do not get the comfirmation prompt, so I think my syntax is correct. They all seem to have an error on the space right after the initial command and there is no reference to anything more being needed in the examples. Any help or reference you can point me at would be appreciated.
edit: I had left out the ip initially forgetting to put in just dummy ones so you can see how exactly I had put in the command. Sorry about that.
Message was edited by: Argonak