Get-NetIPConfiguration

Get-NetIPConfiguration

Gets IP network configuration.

구문

Parameter Set: Alias
Get-NetIPConfiguration [[-InterfaceAlias] <String> ] [-AllCompartments] [-CimSession <CimSession> ] [-CompartmentId <Int32> ] [-Detailed] [ <CommonParameters>]

Parameter Set: All
Get-NetIPConfiguration -All [-AllCompartments] [-CimSession <CimSession> ] [-CompartmentId <Int32> ] [-Detailed] [ <CommonParameters>]

Parameter Set: Index
Get-NetIPConfiguration -InterfaceIndex <Int32> [-AllCompartments] [-CimSession <CimSession> ] [-CompartmentId <Int32> ] [-Detailed] [ <CommonParameters>]

자세한 설명

The Get-NetIPConfiguration cmdlet gets network configuration, including usable interfaces, IP addresses, and DNS servers.

If you do not specify any parameters, this cmdlet gets IP configuration properties for all non-virtual connected interfaces on a computer.

매개 변수

-All

Indicates that the cmdlet retrieves the IP configuration properties for all of the interfaces on a computer, including virtual interfaces, loopback interfaces, and disconnected interfaces.

별칭

IncludeAllInterfaces

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-AllCompartments

Indicates that the cmdlet gets the IP configuration properties for all of the compartments on a computer.

별칭

IncludeAllCompartments

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-CimSession<CimSession>

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

별칭

PSComputerName,ComputerName

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-CompartmentId<Int32>

Specifies an identifier for network compartment in the protocol stack. By default, the cmdlet gets Net IP configuration in the default compartment. If you specify a value for this parameter, the cmdlet gets any matching Net IP configuration in the compartment specified in this field.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

true(ByPropertyName)

와일드카드 문자 허용 여부

false

-Detailed

Indicates that the cmdlet retrieves additional interface and computer configuration information, including the computer name, link layer address, network profile, MTU length, and DHCP status.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-InterfaceAlias<String>

Specifies an alias of a network interface. The cmdlet gets an IP configuration that matches the alias.

별칭

ifAlias

필수 여부

false

위치

1

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-InterfaceIndex<Int32>

Specifies an index of a network interface. The cmdlet gets an IP configuration that matches the index.

별칭

ifIndex

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

  • None

출력

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

  • None

Example 1: Get the IP configuration

This command gets IP configuration information. When this cmdlet is run without parameters, it gets the IP configuration information for all of the non-virtual connected interfaces on the computer.

PS C:\> Get-NetIPConfiguration

Example 2: Get all IP configuration details

This command gets the IP configuration information for all of the interfaces on the computer, including virtual interfaces, loopback interfaces, and disconnected interfaces.

PS C:\> Get-NetIPConfiguration -All

Example 3: Get the IP configuration information with a common parameter

This command gets IP configuration information. By using the Verbose parameter, the networking cmdlets are shown to gather and format the information displayed in this cmdlet.

PS C:\> Get-NetIPConfiguration -Verbose

Example 4: Get the IP configuration by interface index

This command gets the IP configuration information for the interface at the index 12.

PS C:\> Get-NetIPConfiguration –InterfaceIndex 12

Example 5: Get the IP configuration from pipeline input

This command gets the IP address information, including the prefix length.

PS C:\> Get-NetIPConfiguration | Get-NetIPAddress

관련 항목

Get-DNSClientServerAddress

Get-NetAdapter

Get-NetIPAddress

Get-NetIPInterface

Get-NetRoute