Export (0) Print
Expand All

Set-NetIPv4Protocol

Applies To: Windows Server 2012

Set-NetIPv4Protocol

Modifies information about the IPv4 Protocol configuration.

Syntax

Parameter Set: InputObject (cdxml)
Set-NetIPv4Protocol [-AddressMaskReply <AddressMaskReply> ] [-AsJob] [-CimSession <CimSession[]> ] [-DefaultHopLimit <UInt32> ] [-DhcpMediaSense <DhcpMediaSense> ] [-GroupForwardedFragments <GroupForwardedFragments> ] [-IcmpRedirects <IcmpRedirects> ] [-IGMPLevel <MldLevel> ] [-IGMPVersion <MldVersion> ] [-InputObject <CimInstance[]> ] [-MediaSenseEventLog <MediaSenseEventLog> ] [-MulticastForwarding <MulticastForwarding> ] [-NeighborCacheLimitEntries <UInt32> ] [-PassThru] [-RandomizeIdentifiers <RandomizeIdentifiers> ] [-ReassemblyLimitBytes <UInt32> ] [-RouteCacheLimitEntries <UInt32> ] [-SourceRoutingBehavior <SourceRoutingBehavior> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Set-NetIPv4Protocol cmdlet modifies the global IPv4 protocol configuration for the computer. This includes parameters such as the default hop limit, the neighbor cache limit, and multi-cast configuration.

Parameters

-AddressMaskReply<AddressMaskReply>

Modifies the AddressMaskReply property. The acceptable values for this parameter are: 
-- Enabled: The computer will respond to ICMP Address mask packets.
-- Disabled: The computer will not respond to ICMP Address mask packets.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell® background jobs, see about_Jobs.


Aliases

none

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DefaultHopLimit<UInt32>

Modifies the default hop limit. This parameter value sets the default value for the CurrentHopLimit property in NetIPInterface. This parameter value is the value that the IP interface writes in the time to live (TTL) field in all outbound traffic. When forwarding a packet, routers are required to decrease the TTL by 1 and to discard the packet when the TTL is 0.
The default value is 128.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DhcpMediaSense<DhcpMediaSense>

Modifies the DHCPMediaSense property. DHCP media sense provides a mechanism for the network adapter to notify the protocol stack of media connect and disconnect events. These events trigger the DHCP client to take some action, such as attempting to renew a DHCP lease or removing routes related to a disconnected network. One application of Media Sense enables the network parameters on the notebook computer of a roaming user to automatically and transparently update without rebooting when the user moves from one location to another. The acceptable values for this parameter are: 
-- Enabled: DhcpMediaSense is set to Enabled.
-- Disabled: DhcpMediaSense is set to Disabled.
The default value is Enabled.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-GroupForwardedFragments<GroupForwardedFragments>

Modifies the GroupForwardedFragments property. This parameter value determines whether fragments should be collected into groups before being forwarded. The acceptable values for this parameter are: 
-- Enabled: IPv4 protocol fragments are collected into groups before being forwarded.
-- Disabled: IPv4 protocol fragments are not collected into groups and are forwarded as they are received.
The default value is Disabled.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IGMPLevel<MldLevel>

Modifies the IGMP level. This parameter value determines the level of multi-cast support. The acceptable values for this parameter are: 
-- All: Multi-cast packets can be sent and received.
-- None: Multi-cast packets can neither be sent nor received.
-- SendOnly: Multi-cast packets can be sent but not received.
The default value is All.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IGMPVersion<MldVersion>

Modifies the IGMP version number. This parameter value shows the maximum IGMP version supported by the host.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IcmpRedirects<IcmpRedirects>

Modifies the IcmpRedirects property. The acceptable values for this parameter are: 
-- Enabled: The path cache is updated in response to ICMP redirect packets.
-- Disabled: The path cache is not updated in response to ICMP redirect packets.
The default value is Enabled.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<CimInstance[]>

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-MediaSenseEventLog<MediaSenseEventLog>

Modifies the MediaSenseEventLog property. The acceptable values for this parameter are: 
-- Enabled: DHCP Media Sense events, connection or disconnection from the network, are logged in the event log for troubleshooting purposes.
-- Disabled: DHCP Media Sense events are not logged in the event log.
The default value is Disabled.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MulticastForwarding<MulticastForwarding>

Modifies the Multi-castForwarding property. The acceptable values for this parameter are: 
-- Enabled: Multi-cast packets can be forwarded.
-- Disabled: Multi-cast packets cannot be forwarded.
The default value is Disabled.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NeighborCacheLimitEntries<UInt32>

Modifies the number of neighbor cache limit entries. This parameter value determines the maximum number of neighbor cache entries.
The default value is 256.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RandomizeIdentifiers<RandomizeIdentifiers>

Modifies the RandomizeIdentifiers property. The acceptable values for this parameter are: 
-- Enabled: Interface identifiers are randomized when creating an IP address.
-- Disabled: Interface identifiers are not randomized when creating an IP address.
The default value is Enabled.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ReassemblyLimitBytes<UInt32>

Modifies the ReassemblyLimitBytes property. This parameter value determines the maximum size of the reassembly buffer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RouteCacheLimitEntries<UInt32>

Modifies the number of route cache limit entries. This parameter value determines the maximum number of route cache entries.
The default value is 128.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SourceRoutingBehavior<SourceRoutingBehavior>

Modifies the source routing behavior. This parameter value determines the behavior for source routed packets. Note: The computer allows three possible values. However, per RFC 5095 support for forwarding of source routed IPv6 packets has been removed, and the Forward setting now has the same effect as DontForward. The acceptable values for this parameter are: 
-- DontForward: Source routed packets can be received but not forwarded.
-- Drop: Source routed packets will be dropped.
The default value is DontForward.


Aliases

none

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.Management.Infrastructure.CimInstance#root\StandardCimv2\MSFT_NetIPv4Protocol

    The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • None

Examples

EXAMPLE 1

This example enabled the DHCP media sense event log.


PS C:\> Set-NetIPv4Protocol –MediaSenseEventLog Enabled

EXAMPLE 2

This example allows for more neighbors on the subnet, as the default is 256.


PS C:\> Get-NetIPv4Protocol –NeighborCacheLimit 1000

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft