Disable-HcsNetInterface

Disable-HcsNetInterface

Disables a network interface.

구문

Parameter Set: Default
Disable-HcsNetInterface [-InterfaceAlias] <HcsDisableNetInterfaces> [ <CommonParameters>]

자세한 설명

The Disable-HcsNetInterface cmdlet disables a network interface. If you disable a network interface and then enable it, the IP address settings stay in place.

Note that you cannot disable the Data0 interface.

매개 변수

-InterfaceAlias<HcsDisableNetInterfaces>

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

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

    -- 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: Disable a network interface

This command specifies the InterfaceAlias parameter to disable the Data2 network interface.

PS C:\> Disable-HcsNetInterface Data2

관련 항목

Get-HcsNetInterface

Enable-HcsNetInterface

Set-HcsNetInterface