Enable-HcsNetInterface

Enable-HcsNetInterface

Enables a network interface.

구문

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

자세한 설명

The Enable-HcsNetInterface cmdlet enables a network interface. If you previously enabled an interface and saved its settings, these settings stay in place if you disable and then enable the network interface. These settings include the IP address.

매개 변수

-InterfaceAlias<HcsNetInterfaces>

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

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

별칭

없음

필수 여부

true

위치

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:

    -- InterfaceAlias (Data0, Data1, Data2, Data3, Data4, or Data5)
    -- IPAddress Controller0IPv4Address
    -- 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: Enable a network interface

This command specifes the InterfaceAlias parameter to enable the Data2 network interface.

PS C:\> Enable-HcsNetInterface Data2

관련 항목

Disable-HcsNetInterface

Get-HcsNetInterface

Set-HcsNetInterface