Set-NetIPv4Protocol
Set-NetIPv4Protocol
Modifies information about the IPv4 Protocol configuration.
Syntax
Parameter Set: InputObject (cdxml)
Set-NetIPv4Protocol [-AddressMaskReply <AddressMaskReply> {Disabled | Enabled} ] [-CimSession <CimSession[]> ] [-DefaultHopLimit <UInt32> ] [-DhcpMediaSense <DhcpMediaSense> {Disabled | Enabled} ] [-GroupForwardedFragments <GroupForwardedFragments> {Disabled | Enabled} ] [-IcmpRedirects <IcmpRedirects> {Disabled | Enabled} ] [-IGMPLevel <MldLevel> {None | SendOnly | All} ] [-IGMPVersion <MldVersion> {Version1 | Version2 | Version3} ] [-MediaSenseEventLog <MediaSenseEventLog> {Disabled | Enabled} ] [-MinimumMtu <UInt32> ] [-MulticastForwarding <MulticastForwarding> {Disabled | Enabled} ] [-NeighborCacheLimitEntries <UInt32> ] [-PassThru] [-RandomizeIdentifiers <RandomizeIdentifiers> {Disabled | Enabled} ] [-ReassemblyLimitBytes <UInt32> ] [-RouteCacheLimitEntries <UInt32> ] [-SourceRoutingBehavior <SourceRoutingBehavior> {Forward | DontForward | Drop} ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>] [ <WorkflowParameters>]
Detaillierte Beschreibung
The Set-NetIPv4Protocol cmdlet modifies the global IPv4 protocol configuration for a computer. If you do not specify any parameters for the cmdlet, the cmdlet sets the default values for the global IPv6 protocol configuration.
Parameter
-AddressMaskReply<AddressMaskReply>
Specifies a value for address mask reply. The cmdlet modifies the value for this setting. Address mask reply specifies how the computer responds to ICMP address mask packets. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. The computer responds to ICMP address mask packets.
-- Disabled. The computer does not respond to ICMP address mask packets.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-CimSession<CimSession[]>
Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.
Aliase |
Session |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-DefaultHopLimit<UInt32>
Specifies a value for the default hop limit. The cmdlet modifies the value for this setting. This parameter sets the default value for the CurrentHopLimit property in the IP interface. The current hop limit is the value that the IP interface writes in the hop limit field in all outbound IPv4 traffic. When routers forward a packet, they decrement the hop limit by 1 and discard the packet when the hop limit is 0. The default value is 128.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-DhcpMediaSense<DhcpMediaSense>
Specifies a value for Media Sense. The cmdlet modifies the value for this setting.
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 an action, such as attempting to renew a DHCP lease or removing routes that are related to a disconnected network. When Media Sense is enabled, the network parameters on the laptop of a roaming user are automatically and transparently updated without requiring a restart when the user moves from one location to another. Die zulässigen Werte für diesen Parameter sind:
-- Enabled
-- Disabled
The default value is Enabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-GroupForwardedFragments<GroupForwardedFragments>
Specifies a value for group forwarded fragments. The cmdlet modifies the value for this setting. Group forwarded fragments specifies whether the IP interface collects fragments into groups before it forwards the fragments. This parameter sets the GroupForwardedFragments property in the IP interface. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. The IP interface collects IPv6 protocol fragments into groups before it forwards the fragments.
-- Disabled. The IP interface does not collect IPv6 protocol fragments into groups before it forwards the fragments.
The default value is Disabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-IGMPLevel<MldLevel>
Specifies a value for Internet Group Management Protocol (IGMP) level. The cmdlet modifies the value for this setting. The IGMP level specifies the level of multicast support. Die zulässigen Werte für diesen Parameter sind:
-- None
-- SendOnly
-- All
The default value is All.
Aliase |
MldLevel |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-IGMPVersion<MldVersion>
Specifies a value for the IGMP version number. The cmdlet modifies the value for this setting. The IGMP version is the maximum IGMP version supported by the host.
Aliase |
MldVersion |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-IcmpRedirects<IcmpRedirects>
Specifies a value for Internet Control Message Protocol (ICMP) redirect. The cmdlet modifies the value for this setting. ICMP redirect specifies whether to update the path cache in response to ICMP redirect packets. This parameter sets the IcmpRedirects property in the IP interface. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. The IP interface updates the path cache in response to ICMP redirect packets.
-- Disabled. The IP interface does not update the path cache in response to ICMP redirect packets.
The default value is Enabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-MediaSenseEventLog<MediaSenseEventLog>
Specifies a value for Media Sense event log. The cmdlet modifies the value for this setting. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. The IP interface logs DHCP Media Sense events in the event log for troubleshooting purposes.
-- Disabled. The IP interface does not log DHCP Media Sense events in the event log.
The default value is Disabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-MinimumMtu<UInt32>
Specifies a value, in bytes, for the network layer Maximum Transmission Unit (MTU). For IPv4 the minimum value is 576 bytes. For IPv6 the minimum is value is 1280 bytes. For both IPv4 and IPv6, the maximum value is 2^32-1 (4294967295). You cannot set values outside these ranges.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-MulticastForwarding<MulticastForwarding>
Specifies a value for multicast forwarding. The cmdlet modifies the value for this setting. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. The computer can forward multicast packets.
-- Disabled. The computer cannot forward multicast packets.
The default value is Disabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-NeighborCacheLimitEntries<UInt32>
Specifies the maximum number of neighbor cache entries. The cmdlet modifies the value for this setting.
The default value is 256.
Aliase |
NeighborCacheLimit |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-PassThru
Gibt ein Objekt an, das das Element darstellt, mit dem Sie arbeiten. Dieses Cmdlet generiert standardmäßig keine Ausgabe.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-RandomizeIdentifiers<RandomizeIdentifiers>
Specifies a value for the randomization of identifiers. The cmdlet modifies the value for this setting. Die zulässigen Werte für diesen Parameter sind:
-- Enabled. The IP interface randomizes identifiers when it creates an IP address.
-- Disabled. The IP interface does not randomize identifiers when it creates an IP address.
The default value is Enabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ReassemblyLimitBytes<UInt32>
Specifies a value for the maximum size of the reassembly buffer. The cmdlet modifies the value for this setting.
Aliase |
ReassemblyLimit |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-RouteCacheLimitEntries<UInt32>
Specifies a value for the maximum number of route cache entries. The cmdlet modifies the value for this setting.
The default value is 128.
Aliase |
RouteCacheLimit |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-SourceRoutingBehavior<SourceRoutingBehavior>
Specifies a value for source routing behavior. The cmdlet modifies the value for this setting. Die zulässigen Werte für diesen Parameter sind:
-- DontForward. The computer can receive but not forward source-routed packets.
-- Drop. The computer drops source-routed packets.
The default value is DontForward.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ThrottleLimit<Int32>
Gibt die maximale Anzahl gleichzeitiger Vorgänge an, die zum Ausführen des Cmdlets hergestellt werden können. Wenn dieser Parameter ausgelassen wird oder der Wert 0
eingegeben wird, berechnet Windows PowerShell ® einen optimalen Drosselungsgrenzwert für das Cmdlet basierend auf der Anzahl der CIM-Cmdlets, die auf dem Computer ausgeführt werden. Der Grenzwert gilt nur für das aktuelle Cmdlet, nicht für die Sitzung oder den Computer.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Confirm
Fordert Sie vor der Ausführung des Cmdlet zum Bestätigen auf.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-WhatIf
Zeit, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
<WorkflowParameters>
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimv2\MSFT_NetIPv4Protocol
Das
Microsoft.Management.Infrastructure.CimInstance
-Objekt ist eine Wrapperklasse, die Windows-Verwaltungsinstrumentation-Objekte (Windows Management Instrumentation, WMI) angezeigt. Der Pfad nach dem Nummernzeichen (#
) stellt den Namespace und den Klassennamen des zugrunde liegenden WMI-Objekts dar.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
- None
Beispiele
Example 1: Enable the DHCP Media Sense event log
This command enables the DHCP Media Sense event log.
PS C:\> Set-NetIPv4Protocol –MediaSenseEventLog Enabled
Example 2: Increase the number of neighbors
This command increases the size of the cache of on-link neighbors on the subnet to 1,000. The default value is 256.
PS C:\> Set-NetIPv4Protocol –NeighborCacheLimitEntries 1000
Verwandte Themen
Architectural Overview of the TCP/IP Protocol Suite on TechNet