New-HCXStaticRoute Command | Vmware PowerCLI Reference

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

New-HCXStaticRoute
-Gateway < String >
-Network < String >
[-MTU < Int32 > ]
[-ProgressAction < ActionPreference > ]
[-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 <network-ip>/<prefix-length> format.
optional MTU Int32 named
Specifies the maximum transmission unit. The default value is 1500 bytes.
optional ProgressAction ActionPreference named
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

HCXStaticRoute

This cmdlet creates a static route.