Set-NetIPv4Protocol

Set-NetIPv4Protocol

Modifies information about the IPv4 Protocol configuration.

구문

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>]

자세한 설명

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.

매개 변수

-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. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- Enabled. The computer responds to ICMP address mask packets.
-- Disabled. The computer does not respond to ICMP address mask packets.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-CimSession<CimSession[]>

원격 세션이나 원격 컴퓨터에서 cmdlet을 실행합니다. 컴퓨터 이름이나 New-CimSession 또는 Get-CimSession cmdlet의 출력과 같은 세션 개체를 입력하세요. 기본값은 로컬 컴퓨터 상의 현재 세션입니다.

별칭

Session

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- Enabled
-- Disabled

The default value is Enabled.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- 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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- None
-- SendOnly
-- All

The default value is All.

별칭

MldLevel

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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.

별칭

MldVersion

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- 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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-MediaSenseEventLog<MediaSenseEventLog>

Specifies a value for Media Sense event log. The cmdlet modifies the value for this setting. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- 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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-MulticastForwarding<MulticastForwarding>

Specifies a value for multicast forwarding. The cmdlet modifies the value for this setting. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- Enabled. The computer can forward multicast packets.
-- Disabled. The computer cannot forward multicast packets.

The default value is Disabled.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-NeighborCacheLimitEntries<UInt32>

Specifies the maximum number of neighbor cache entries. The cmdlet modifies the value for this setting.

The default value is 256.

별칭

NeighborCacheLimit

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-PassThru

작업 중인 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-RandomizeIdentifiers<RandomizeIdentifiers>

Specifies a value for the randomization of identifiers. The cmdlet modifies the value for this setting. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- 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.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ReassemblyLimitBytes<UInt32>

Specifies a value for the maximum size of the reassembly buffer. The cmdlet modifies the value for this setting.

별칭

ReassemblyLimit

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

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.

별칭

RouteCacheLimit

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-SourceRoutingBehavior<SourceRoutingBehavior>

Specifies a value for source routing behavior. The cmdlet modifies the value for this setting. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- DontForward. The computer can receive but not forward source-routed packets.
-- Drop. The computer drops source-routed packets.

The default value is DontForward.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ThrottleLimit<Int32>

Cmdlet을 실행하도록 설정할 수 있는 동시 작업의 최대 수를 지정합니다. 이 매개 변수를 생략하거나 값으로 0 을 입력하면 Windows PowerShell®은 컴퓨터에서 실행 중인 CIM cmdlet의 수에 따라 cmdlet에 대한 최적의 스로틀 제한을 계산합니다. 스로틀 제한은 현재 cmdlet에만 적용되고, 세션이나 컴퓨터에는 적용되지 않습니다.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지를 표시합니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행되는 경우 발생할 결과를 보여 줍니다. cmdlet은 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

<WorkflowParameters>

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

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

    Microsoft.Management.Infrastructure.CimInstance 개체는 WMI(Windows Management Instrumentation) 개체를 표시하는 래퍼 클래스입니다. 파운드 기호(#) 뒤의 경로는 기본 WMI 개체에 대한 네임 스페이스 및 클래스 이름을 제공합니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

  • None

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

관련 항목

Get-NetIPv4Protocol

Architectural Overview of the TCP/IP Protocol Suite on TechNet