New-HCXStaticRoute
This cmdlet creates a static route and provides a static route for the networks that are not reachable through the default gateway. You can create a new Interconnect appliance by using the output of the cmdlet.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String | named |
|
Specifies the gateway. | required |
|
String | named |
|
Specifies the network of the static route provided in the |
optional |
|
Int32 | named |
|
Specifies the maximum transmission unit. The default value is 1500 bytes. | optional |
|
HcxServer[] | named |
|
Specifies the HCX Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet. |
Output
VMware.VimAutomation.Hcx.Types.V1.HCXStaticRoute
Examples
Example 1
New-HCXStaticRoute -Network 192.168.100.0/24 -Gateway 192.168.0.1
Creates a static route.