< Back
New-NsxLogicalRouterInterfaceSpec
Post
NAME New-NsxLogicalRouterInterfaceSpec
SYNOPSIS
Creates a new NSX Logical Router Interface Spec.
SYNTAX
New-NsxLogicalRouterInterfaceSpec [-Name] <String> [-Type] <String> [[-ConnectedTo] <Object>] [[-PrimaryAddress]
<String>] [[-SubnetPrefixLength] <String>] [[-MTU] <Int32>] [-Connected] [[-Index] <Int32>] [<CommonParameters>]
DESCRIPTION
NSX Logical Routers can host up to 1000 interfaces, each of which can be
configured with multiple properties. In order to allow creation of Logical
Routers with an arbitrary number of interfaces, a unique spec for each interface
required must first be created.
Logical Routers do support interfaces on VLAN backed portgroups, and this
cmdlet will support a interface spec connected to a normal portgroup, however
this is not noramlly a recommended scenario.
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ConnectedTo <Object>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrimaryAddress <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SubnetPrefixLength <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MTU <Int32>
Required? false
Position? 6
Default value 1500
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
-Index <Int32>
Required? false
Position? 7
Default value 0
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-NsxLogicalRouterinterfaceSpec -Name Uplink_interface -Type
uplink -ConnectedTo (Get-NsxTransportZone | Get-NsxLogicalSwitch LS1)
-PrimaryAddress 192.168.0.1 -SubnetPrefixLength 24
PS C:\\> $Internal = New-NsxLogicalRouterinterfaceSpec -Name Internal-interface -Type
internal -ConnectedTo (Get-NsxTransportZone | Get-NsxLogicalSwitch LS2)
-PrimaryAddress 10.0.0.1 -SubnetPrefixLength 24
RELATED LINKS
SYNOPSIS
Creates a new NSX Logical Router Interface Spec.
SYNTAX
New-NsxLogicalRouterInterfaceSpec [-Name] <String> [-Type] <String> [[-ConnectedTo] <Object>] [[-PrimaryAddress]
<String>] [[-SubnetPrefixLength] <String>] [[-MTU] <Int32>] [-Connected] [[-Index] <Int32>] [<CommonParameters>]
DESCRIPTION
NSX Logical Routers can host up to 1000 interfaces, each of which can be
configured with multiple properties. In order to allow creation of Logical
Routers with an arbitrary number of interfaces, a unique spec for each interface
required must first be created.
Logical Routers do support interfaces on VLAN backed portgroups, and this
cmdlet will support a interface spec connected to a normal portgroup, however
this is not noramlly a recommended scenario.
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ConnectedTo <Object>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrimaryAddress <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SubnetPrefixLength <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MTU <Int32>
Required? false
Position? 6
Default value 1500
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
-Index <Int32>
Required? false
Position? 7
Default value 0
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-NsxLogicalRouterinterfaceSpec -Name Uplink_interface -Type
uplink -ConnectedTo (Get-NsxTransportZone | Get-NsxLogicalSwitch LS1)
-PrimaryAddress 192.168.0.1 -SubnetPrefixLength 24
PS C:\\> $Internal = New-NsxLogicalRouterinterfaceSpec -Name Internal-interface -Type
internal -ConnectedTo (Get-NsxTransportZone | Get-NsxLogicalSwitch LS2)
-PrimaryAddress 10.0.0.1 -SubnetPrefixLength 24
RELATED LINKS