Share via


Enable-HcsNetInterface

Enable-HcsNetInterface

Enables a network interface.

Syntax

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

Detaillierte Beschreibung

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.

Parameter

-InterfaceAlias<HcsNetInterfaces>

Specifies an interface alias. Die folgenden Werte für diesen Parameter sind zulässig:

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

Aliasse

Keiner

Erforderlich?

true

Position?

2

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • 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

Beispiele

Example 1: Enable a network interface

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

PS C:\> Enable-HcsNetInterface Data2

Verwandte Themen

Disable-HcsNetInterface

Get-HcsNetInterface

Set-HcsNetInterface