PowerShell Logo Small

Set-NetNeighbor



This is the built-in help made by Microsoft for the command 'Set-NetNeighbor', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies a neighbor cache entry.

SYNTAX


Set-NetNeighbor [[-IPAddress] <String[]>] [-AddressFamily <AddressFamily[]>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>]
[-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>] [-LinkLayerAddress <String>] [-PassThru [<SwitchParameter>]] [-PolicyStore <String>]
[-State <State[]>] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Set-NetNeighbor [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-LinkLayerAddress <String>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-NetNeighbor cmdlet modifies a neighbor cache entry for IPv4 or IPv6. The neighbor cache maintains a list of information for each
on-link neighbor, including the IP address and the associated link-layer address. It is only possible to modify neighbor cache entries in a
permanent state on interfaces that have link-layer addresses.



<

RELATED LINKS

Get-NetNeighbor
New-NetNeighbor
Remove-NetNeighbor

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Set-NetNeighbor –InterfaceIndex 12 –IPAddress 192.168.0.5 –MACaddress 00-00-12-00-00-ff


This cmdlet is an alternative method.
PS C:\>Get-NetNeighbor –InterfaceIndex 12 –IPAddress 192.168.0.5 | Set-NetNeighbor –MACAddress 00-00-12-00-00-ff



This example sets a neighbor cache entry with a specific IP address, and updates, or sets, the MAC address property.