This is the built-in help made by Microsoft for the command 'New-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.
Creates a neighbor cache entry for IPv4 or IPv6.
New-NetNeighbor [-IPAddress] <String> [-AddressFamily <AddressFamily>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>]
[-LinkLayerAddress <String>] [-PolicyStore <String>] [-State <State>] [-ThrottleLimit <Int32>] -InterfaceAlias <String> [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
New-NetNeighbor [-IPAddress] <String> [-AddressFamily <AddressFamily>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>]
[-LinkLayerAddress <String>] [-PolicyStore <String>] [-State <State>] [-ThrottleLimit <Int32>] -InterfaceIndex <UInt32> [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
The New-NetNeighbor cmdlet creates 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. Note: For successful creation of a neighbor entry, the
address family of the neighbor cache entry must match the address family of the IP interface.
<
Remove-NetNeighbor
Set-NetNeighbor
Get-NetAdapter
<
EXAMPLE 1
PS C:\>New-NetNeighbor –InterfaceIndex 12 –IPAddress 192.168.0.5 –MACaddress 00-00-12-00-00-ff
This example creates a new neighbor cache entry with an IPv4 address.
EXAMPLE 2
PS C:\>New-NetNeighbor –InterfaceIndex 13 –IPAddress fe80::5efe:192.168.0.5
This example creates a new neighbor cache entry on a virtual ISATAP interface.
EXAMPLE 3
PS C:\>Get-NetNeighbor –State Reachable | Get-NetAdapter
This example gets NetAdapter information for all adapters that have reachable neighbors.