Get-OVApplianceStaticRoute
Syntax
Get-OVApplianceStaticRoute
[-Destination <String>]
[-Interface <String>]
[-ApplianceConnection <Object>]
[<CommonParameters>]
Description
When configuring a second NIC on a virtual machine appliance, static routes can be configured as only a single appliance NIC can be configured with a default gateway. Both IPv4 and IPv6 static routes are supported. Use Get-OVApplianceIPAddress to display the configured NIC interfaces, and supply the interface name with the -Interface parameter.
Info
Minimum required privileges: Infrastructure administrator
Examples
Example 1
Get all configured static routes.
Example 2
Get all configured static routes for the default "Appliance" NIC.
Parameters
-ApplianceConnection <Object>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).
Default Value: ${Global:ConnectedSessions} | ? Default
| Aliases | Appliance |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Destination <String>
The static route defined on the appliance. IP address format should be {destination_subnet}/{subnetmask_short_bit}.
Example: 10.55.74.0/24
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Interface <String>
Interface name to filter. Use Get-OVApplianceIPAddress to display the configured NIC interfaces.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
Input Types
None. You cannot pipe objects to this cmdlet.
Return Values
IP static route object.