< Back
Set-NetVirtualizationProviderAddress
Post
NAME Set-NetVirtualizationProviderAddress
SYNOPSIS
Changes a VLAN ID or prefix length for a Provider Address.
SYNTAX
Set-NetVirtualizationProviderAddress [-AddressState <AddressState[]>] [-CimSession <CimSession[]>]
[-InterfaceIndex <UInt32[]>] [-MACAddress <String>] [-PassThru] [-PrefixLength <Byte>] [-ProviderAddress
<String[]>] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] [<CommonParameters>]
Set-NetVirtualizationProviderAddress [-CimSession <CimSession[]>] [-MACAddress <String>] [-PassThru]
[-PrefixLength <Byte>] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] [<CommonParameters>]
DESCRIPTION
The Set-NetVirtualizationProviderAddress cmdlet changes a virtual local area network (VLAN) ID or prefix length
for Provider Addresses used with Microsoft???? Hyper-V???? Server 2016 Network Virtualization. For more information, see
Network Virtualization technical details (http://technet.microsoft.com/library/jj134174.aspx) on TechNet.
You can specify which Provider Addresses to modify by using address state, interface index, or IP address, or you
can use the Get-NetVirtualizationProviderAddress cmdlet to get Provider Addresses to modify.
PARAMETERS
-AddressState [<AddressState[]>]
Specifies an array of states of Provider Addresses. The acceptable values for this parameter are:
-- Preferred. The address is unique.
-- Tentative. The address is not yet verified.
-- Duplicate. There is a duplicate address on the network.
-- Invalid. The address lifetime has expired.
-- Deprecated. The address cannot start new connections.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-CimSession [<CimSession[]>]
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such
as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local
computer.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InterfaceIndex [<UInt32[]>]
Specifies an array of indexes for network interfaces that have Hyper-V Server 2016 Network Virtualization
enabled.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-MACAddress [<String>]
Specifies a media access control (MAC) address that corresponds to the Provider Address.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Returns an object representing the item with which you are working. By default, this cmdlet does not generate
any output.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-PrefixLength [<Byte>]
Specifies the length of an IP prefix.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-ProviderAddress [<String[]>]
Specifies an array of IP addresses. You can use IPv4 or IPv6 addresses.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-ThrottleLimit [<Int32>]
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this
parameter is omitted or a value of 0 is entered, then Windows PowerShell???? calculates an optimum throttle limit
for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies
only to the current cmdlet, not to the session or to the computer.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-VlanID [<UInt16>]
Specifies an ID for a VLAN for the Provider Address.
Required? false
Position? named
Default value none
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: Change a virtual LAN ID
PS C:\\> Set-NetVirtualizationProviderAddress -ProviderAddress "192.168.2.3" -InterfaceIndex 17 -VlanID 201
This command changes the virtual LAN ID for the Provider Address 192.168.2.3 on the interface that has the Index
17.
Example 2: Change a virtual LAN ID for specified Provider Addresses
PS C:\\>Get-NetVirtualizationProviderAddress -InterfaceIndex 23 | Set-NetVirtualizationProviderAddress -VlanID 20
This command uses the Get-NetVirtualizationProviderAddress cmdlet to get all the Provider Addresses for the
interface that has the index 23, and then passes them to the Set-NetVirtualizationProviderAddress cmdlet by using
the pipeline operator. The command assigns a value of 20 for the virtual LAN ID of all the Provider Address for
the interface.
RELATED LINKS
Get-NetVirtualizationProviderAddress
New-NetVirtualizationProviderAddress
Remove-NetVirtualizationProviderAddress
SYNOPSIS
Changes a VLAN ID or prefix length for a Provider Address.
SYNTAX
Set-NetVirtualizationProviderAddress [-AddressState <AddressState[]>] [-CimSession <CimSession[]>]
[-InterfaceIndex <UInt32[]>] [-MACAddress <String>] [-PassThru] [-PrefixLength <Byte>] [-ProviderAddress
<String[]>] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] [<CommonParameters>]
Set-NetVirtualizationProviderAddress [-CimSession <CimSession[]>] [-MACAddress <String>] [-PassThru]
[-PrefixLength <Byte>] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] [<CommonParameters>]
DESCRIPTION
The Set-NetVirtualizationProviderAddress cmdlet changes a virtual local area network (VLAN) ID or prefix length
for Provider Addresses used with Microsoft???? Hyper-V???? Server 2016 Network Virtualization. For more information, see
Network Virtualization technical details (http://technet.microsoft.com/library/jj134174.aspx) on TechNet.
You can specify which Provider Addresses to modify by using address state, interface index, or IP address, or you
can use the Get-NetVirtualizationProviderAddress cmdlet to get Provider Addresses to modify.
PARAMETERS
-AddressState [<AddressState[]>]
Specifies an array of states of Provider Addresses. The acceptable values for this parameter are:
-- Preferred. The address is unique.
-- Tentative. The address is not yet verified.
-- Duplicate. There is a duplicate address on the network.
-- Invalid. The address lifetime has expired.
-- Deprecated. The address cannot start new connections.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-CimSession [<CimSession[]>]
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such
as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local
computer.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InterfaceIndex [<UInt32[]>]
Specifies an array of indexes for network interfaces that have Hyper-V Server 2016 Network Virtualization
enabled.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-MACAddress [<String>]
Specifies a media access control (MAC) address that corresponds to the Provider Address.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Returns an object representing the item with which you are working. By default, this cmdlet does not generate
any output.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-PrefixLength [<Byte>]
Specifies the length of an IP prefix.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-ProviderAddress [<String[]>]
Specifies an array of IP addresses. You can use IPv4 or IPv6 addresses.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-ThrottleLimit [<Int32>]
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this
parameter is omitted or a value of 0 is entered, then Windows PowerShell???? calculates an optimum throttle limit
for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies
only to the current cmdlet, not to the session or to the computer.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-VlanID [<UInt16>]
Specifies an ID for a VLAN for the Provider Address.
Required? false
Position? named
Default value none
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: Change a virtual LAN ID
PS C:\\> Set-NetVirtualizationProviderAddress -ProviderAddress "192.168.2.3" -InterfaceIndex 17 -VlanID 201
This command changes the virtual LAN ID for the Provider Address 192.168.2.3 on the interface that has the Index
17.
Example 2: Change a virtual LAN ID for specified Provider Addresses
PS C:\\>Get-NetVirtualizationProviderAddress -InterfaceIndex 23 | Set-NetVirtualizationProviderAddress -VlanID 20
This command uses the Get-NetVirtualizationProviderAddress cmdlet to get all the Provider Addresses for the
interface that has the index 23, and then passes them to the Set-NetVirtualizationProviderAddress cmdlet by using
the pipeline operator. The command assigns a value of 20 for the virtual LAN ID of all the Provider Address for
the interface.
RELATED LINKS
Get-NetVirtualizationProviderAddress
New-NetVirtualizationProviderAddress
Remove-NetVirtualizationProviderAddress