Get-HcsNetInterface

Get-HcsNetInterface

Gets configuration information for a network interface.

구문

Parameter Set: Default
Get-HcsNetInterface [[-InterfaceAlias] <HcsNetInterfaces> ] [ <CommonParameters>]

자세한 설명

The Get-HcsNetInterface cmdlet gets configuration information for a network interface by specifying the InterfaceAlias parameter.

You can also use Get-HcsNetInterface with no parameter to get configuration information for all network interfaces on a device.

매개 변수

-InterfaceAlias<HcsNetInterfaces>

Specifies an interface alias. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- Data0
-- Data1
-- Data2
-- Data3
-- Data4
-- Data5

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.HCS.Management.Platform.Support.NetInterfaceInfo[]

    The NetInterfaceInfo object has the following properties:

    -- HcsNetInterfaces InterfaceAlias (Data0, Data1, Data2, Data3, Data4, or Data5)
    -- IPAddress Controller 0 IPv4Address
    -- IPAddress Controller 0 IPv6Address
    -- IPAddress Controller 1 IPv4Address
    -- IPAddress Controller 1 IPv6Address
    -- IPAddress IPv4Address
    -- IPAddress IPv4Gateway
    -- IPAddress IPv4Netmask
    -- IPAddress IPv6Address
    -- IPAddress IPv6Gateway
    -- String IPv6Prefix
    -- IsEnabled
    -- IsCloudEnabled
    -- IsiSCSIEnabled

예제

Example 1: Get network interface configuration information by alias

This command gets network interface configuration information for the network interface specified by the InterfaceAlias parameter.

PS C:\> Get-HcsNetInterface Data0

Example 2: Get network interface configuration information for all interfaces

This command gets network configuration information for all network interfaces on a device.

PS C:\> Get-HcsNetInterface : 

관련 항목

Disable-HcsNetInterface

Enable-HcsNetInterface

Set-HcsNetInterface