< Back

Get-NsxLogicalRouterPrefix

Sat Jan 18, 2020 9:09 pm

NAME Get-NsxLogicalRouterPrefix



SYNOPSIS

Retrieves IP Prefixes from the specified NSX LogicalRouter Routing

configuration.





SYNTAX

Get-NsxLogicalRouterPrefix [-LogicalRouterRouting] <XmlElement> [[-Name] <String>] [[-Network] <String>]

[<CommonParameters>]





DESCRIPTION

An NSX Logical Router is a distributed routing function implemented within

the ESXi kernel, and optimised for east west routing.



Logical Routers perform ipv4 and ipv6 routing functions for connected

networks and support both static and dynamic routing via OSPF and BGP.



The Get-NsxLogicalRouterPrefix cmdlet retrieves IP prefixes from the

routing configuration specified.





PARAMETERS

-LogicalRouterRouting <XmlElement>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Network <String>



Required? false

Position? 3

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxLogicalRouter LogicalRouter01 | Get-NsxLogicalRouterRouting | Get-NsxLogicalRouterPrefix



Retrieve prefixes from LogicalRouter LogicalRouter01









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxLogicalRouter LogicalRouter01 | Get-NsxLogicalRouterRouting | Get-NsxLogicalRouterPrefix -Network

1.1.1.0/24



Retrieve prefix 1.1.1.0/24 from LogicalRouter LogicalRouter01









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-NsxLogicalRouter LogicalRouter01 | Get-NsxLogicalRouterRouting | Get-NsxLogicalRouterPrefix -Name

CorpNet



Retrieve prefix CorpNet from LogicalRouter LogicalRouter01











RELATED LINKS