New-SCLogicalNetwork

Creates a logical network object.

Syntax

New-SCLogicalNetwork [-Name] <String> [[-Description] <String>] [-AllowDynamicVlanOnVnic <Boolean>]
 [-EnableNetworkVirtualization <Boolean>] [-IsPVLAN <Boolean>] [-JobVariable <String>]
 [-LogicalNetworkDefinitionIsolation <Boolean>] [-NetworkController <VirtualSwitchExtensionManager>]
 [-PROTipID <Guid>] [-PublicIPNetwork] [-RunAsynchronously] [-UseGRE <Boolean>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]

Description

The New-SCLogicalNetwork cmdlet creates a logical network object for a Virtual Machine Manager (VMM). Each logical network must have a unique name within a VMM installation.

Logical networks enable network administrators to model a network by grouping subnets and virtual local area networks (VLANs) based on categories that align to business needs. To assign IP subnets and VLANs to a logical network, create a logical network definition by using the New-SCLogicalNetworkDefinition cmdlet.

Examples

Example 1: Create a logical network

PS C:\> New-SCLogicalNetwork -Name "LogicalNetwork01"

This command creates a logical network named LogicalNetwork01.

Example 2: Create a network virtualization-enabled logical network

PS C:\> New-SCLogicalNetwork -Name "LogicalNetwork02" -EnableNetworkVirtualization $True -UseGRE $True

This command creates a logical network named LogicalNetwork02 that is enabled for network virtualization and implements Generic Routing Encapsulation (GRE).

Parameters

-AllowDynamicVlanOnVnic

Specifies that this vNIC is configured for Dynamic VLAN. VMM does not expect a VLAN for this network adapter.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for the logical network object.

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableNetworkVirtualization

Indicates whether network virtualization is enabled. The default value is $False.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsPVLAN

Indicates whether the logical network is a Private Virtual LAN (PVLAN).

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies the name of a variable in which job progress is tracked and stored.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LogicalNetworkDefinitionIsolation

Indicates whether to enable network isolation for the logical network definition.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a VMM object.

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NetworkController

Specifies a network controller.

Type:VirtualSwitchExtensionManager
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PublicIPNetwork

Specifies if a Network Controller managed network is meant for Public IPs.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseGRE

Indicates whether to use network virtualization with Generic Routing Encapsulation (GRE). The default value is $False.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

LogicalNetwork

This cmdlet returns a **LogicalNetwork** object.