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>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
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