Share via


Get-HcsNetInterface

Get-HcsNetInterface

Gets configuration information for a network interface.

Sintassi

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

Descrizione dettagliata

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.

Parametri

-InterfaceAlias<HcsNetInterfaces>

Specifies an interface alias. I valori accettabili per questo parametro sono:

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

Alias

nessuno

Obbligatorio?

false

Posizione?

2

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

Output

Il tipo di output corrisponde al tipo di oggetti generati dal 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

Esempi

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 : 

Argomenti correlati

Disable-HcsNetInterface

Enable-HcsNetInterface

Set-HcsNetInterface