< Back

New-NsxEdgeInterfaceSpec

Sat Jan 18, 2020 9:15 pm

NAME New-NsxEdgeInterfaceSpec



SYNOPSIS

Creates a new NSX Edge Service Gateway interface Spec.





SYNTAX

New-NsxEdgeInterfaceSpec [-Index] <Int32> [[-Name] <String>] [[-Type] <String>] [[-ConnectedTo] <Object>]

[[-PrimaryAddress] <String>] [[-SubnetPrefixLength] <String>] [[-SecondaryAddresses] <String[]>] [[-MTU] <Int32>]

[-EnableProxyArp] [-EnableSendICMPRedirects] [-Connected] [<CommonParameters>]





DESCRIPTION

NSX ESGs can host up to 10 interfaces and up to 200 subinterfaces, each of which

can be configured with multiple properties. In order to allow creation of

ESGs with an arbitrary number of interfaces, a unique spec for each

interface required must first be created.



ESGs support interfaces connected to either VLAN backed port groups or NSX

Logical Switches.





PARAMETERS

-Index <Int32>



Required? true

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Type <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ConnectedTo <Object>



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PrimaryAddress <String>



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SubnetPrefixLength <String>



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SecondaryAddresses <String[]>



Required? false

Position? 7

Default value @()

Accept pipeline input? false

Accept wildcard characters? false



-MTU <Int32>



Required? false

Position? 8

Default value 1500

Accept pipeline input? false

Accept wildcard characters? false



-EnableProxyArp [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-EnableSendICMPRedirects [<SwitchParameter>]



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-Connected [<SwitchParameter>]



Required? false

Position? named

Default value True

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:\\>$Uplink = New-NsxEdgeInterfaceSpec -Name Uplink_interface -Type



uplink -ConnectedTo (Get-NsxTransportZone | Get-NsxLogicalSwitch LS1)

-PrimaryAddress 192.168.0.1 -SubnetPrefixLength 24



PS C:\\> $Internal = New-NsxEdgeInterfaceSpec -Name Internal-interface -Type

internal -ConnectedTo (Get-NsxTransportZone | Get-NsxLogicalSwitch LS2)

-PrimaryAddress 10.0.0.1 -SubnetPrefixLength 24











RELATED LINKS