powershellscripts.com

Tutorials  PowerShell Cmdlet Help for New-VMHostRoute



NAME
New-VMHostRoute

SYNOPSIS
Creates a new route in the routing table of a host.

SYNTAX
New-VMHostRoute [-VMHost] -Destination -Gateway -PrefixLength [-Server <
VIServer[]>] [-WhatIf] [-Confirm] []


DESCRIPTION
Creates a new route in the routing table of a host.


PARAMETERS
-VMHost
Specify the host for which you want to create a new route.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Destination
Specify a destination IP address for the new route.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Gateway
Specify a gateway IP address for the new route.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-PrefixLength
Specify the prefix length of the destination IP address. For IPv4, the valid values are from 0 to 32, and for I
Pv6 - from 0 to 128.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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.

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VMHostRoute[]


NOTES


Supported only on ESX 4.0/ vCenter Server 4.0 and newer.

-------------- Example 1 --------------

C:\PS>New-VMHostRoute -VMHost 10.23.114.195 -Destination 192.168.103.102 -PrefixLength 32 -Gateway 10.23.84.53


Creates a route for the specified host.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/New-VMHostRoute.html
Get-VMHostRoute
Remove-VMHostRoute
Set-VMHostRoute