Syntax
Set-VMGuestRoute -VMGuestRoute <VMGuestRoute[]> [[-Netmask] <String>] [[-Gateway] <IPAddress>] [-ToolsWaitSecs <Int32>] [-GuestPassword <SecureString>] [-GuestUser <String>] [-GuestCredential <PSCredential>] [-HostPassword <SecureString>] [-HostUser <String>] [-HostCredential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
Configures the specified route. At least one of the RouteNetmask, RouteGateway, and RouteInterface parameters must be specified. This cmdlet supports only Windows XP, Windows Server 2003, and Linux RedHat Enterprise 5. You can enhance this cmdlet to support other guest operating systems by modifying or adding custom scripts. The custom scripts are located in the "Scripts" folder in the PowerCLI installation directory and their names have the following format:Parameters
Return Type
VMGuestRouteNotes
Supported on ESX 3.5 Update 2 and newer. Consider that this functionality i s experimental.Examples
-------------- Example 1 --------------
Set-VMGuestRoute -VMGuestRoute $script:vmGuestRoute -HostUser Admin -HostPassword pass01 -GuestUser User -GuestPassword pass02 -Gateway 192.168.1.1 -Netmask 255.255.255.0 -ToolsWaitSecs 100
Changes the net mask and the gateway of the specified guest route.