Syntax
New-HCXStaticRoute [-Confirm] -Gateway <String> [-MTU <Int32>] -Network <String> [-Server <HcxServer[]>] [-WhatIf] [<CommonParameters>]Related Commands
Detailed Description
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.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
Gateway | String | Specifies the gateway. | true | False | |
MTU | Int32 | Specifies the maximum transmission unit. The default value is 1500 bytes. | false | False | |
Network | String | Specifies the network of the static route provided in the <network-ip>/<prefix-length> format. | true | False | |
Server | HcxServer[] | Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
VMware.VimAutomation.Hcx.Types.V1.HCXStaticRouteNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> New-HCXStaticRoute -Network 192.168.100.0/24 -Gateway 192.168.0.1
Creates a static route.