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

-Gateway  <String>
-Network  <String>
[-MTU  <Int32>]
[-Server  <HcxServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Gateway
String named Specifies the gateway.
required
Network
String named Specifies the network of the static route provided in the / format.
optional
MTU
Int32 named Specifies the maximum transmission unit. The default value is 1500 bytes.
optional
Server
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.

Related Commands

Feedback

Was this page helpful?