< Back

Get-NsxEdgeInterfaceAddress

Sat Jan 18, 2020 9:03 pm

NAME Get-NsxEdgeInterfaceAddress



SYNOPSIS

Retrieves the address configuration for the specified interface





SYNTAX

Get-NsxEdgeInterfaceAddress [-Interface] <XmlElement> [[-PrimaryAddress] <String>] [<CommonParameters>]





DESCRIPTION

NSX ESGs interfaces can be configured with multiple 'Address Groups'. This

allows a single interface to have IP addresses defined in different subnets,

each complete with their own Primary Address, Netmask and zero or more

Secondary Addresses.



The Get-NsxEdgeInterfaceAddress cmdlet retrieves the addresses for

the specific interface.





PARAMETERS

-Interface <XmlElement>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-PrimaryAddress <String>



Required? false

Position? 2

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-NsxEdge Edge01 | Get-NsxEdgeInterface -Index 9 | Get-NsxEdgeInterfaceAddress



Retrieves all the address groups defined on vNic 9 of the ESG Edge01.









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



PS C:\\>Get-NsxEdge Edge01 | Get-NsxEdgeInterface -Index 9 | Get-NsxEdgeInterfaceAddress -PrimaryAddress 1.2.3.4



Retrieves the address config with primary address 1.2.3.4 defined on vNic 9 of the ESG Edge01.











RELATED LINKS