Set-HcsNetInterface
Set-HcsNetInterface
Sets the configuration for a single network interface by alias.
구문
Parameter Set: Alias
Set-HcsNetInterface [-InterfaceAlias] <HcsNetInterfaces> [-Controller0IPv4Address <IPAddress> ] [-Controller1IPv4Address <IPAddress> ] [-IPv4Address <IPAddress> ] [-IPv4Gateway <IPAddress> ] [-IPv4Netmask <IPAddress> ] [-IPv6Gateway <IPAddress> ] [-IPv6Prefix <String> ] [-IsCloudEnabled <Boolean> ] [-IsiSCSIEnabled <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: Clear
Set-HcsNetInterface [-InterfaceAlias] <HcsNetInterfaces> [-ClearIPv4] [-ClearIPv6] [-Confirm] [-WhatIf] [ <CommonParameters>]
자세한 설명
The Set-HcsNetInterface cmdlet sets the configuration for a single network interface by alias. Controller-specific addresses, such as Controller0IPv4Address, apply only to Data0.
매개 변수
-ClearIPv4
Indicates that the cmdlet removes all IPv4 addresses from a network interface. If the network interface is only configured for IPv4, this cmdlet also disables the interface.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-ClearIPv6
Indicates that the cmdlet removes all IPv6 addresses from a network interface. If the network interface is only configured for IPv6, this cmdlet also disables the interface.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Controller0IPv4Address<IPAddress>
Specifies an IP address to directly target controller0. You can configure only the Data0 network interface with a fixed IP address for controller0. The Controller0IPv4 setting is ignored on all interfaces other than Data0.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Controller1IPv4Address<IPAddress>
Specifies an IP address to directly target controller1. You can configure only the Data0 network interface with a fixed IP address for controller1. The Controller1IPv4 setting is ignored on all interfaces other than Data0.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-InterfaceAlias<HcsNetInterfaces>
Specifies an interface alias. 이 매개 변수에 허용되는 값은 다음과 같습니다.
-- Data0
-- Data1
-- Data2
-- Data3
-- Data4
-- Data5
별칭 |
없음 |
필수 여부 |
true |
위치 |
2 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPv4Address<IPAddress>
Specifies an IPv4 address.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPv4Gateway<IPAddress>
Specifies an IPv4 default gateway.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPv4Netmask<IPAddress>
Specifies the IPv4 prefix length in bits. This field also accepts subnet format (for example, 255.255.255.0)
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPv6Gateway<IPAddress>
Specifies an IPv6 default gateway.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IPv6Prefix<String>
Specifies an IPv6 prefix. When you specify this parameter, the cmdlet automatically generates an IPv6 address based on the prefix, ensures it does not have an IP conflict on the network, and sets that IPv6 address.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IsCloudEnabled<Boolean>
Indicates whether cloud access is enabled on an interface. If you enable cloud access, you can use an interface to send data to the cloud and communicate with the StorSimple Manager Service. Data0 must always be cloud-enabled.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-IsiSCSIEnabled<Boolean>
Indicates whether iSCSI access is enabled on an interface.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Confirm
cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-WhatIf
cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
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: Set the IPv4 configuration for a network interface
This command sets the IPv4 configuration for the network interface specified by the InterfaceAlias parameter.
PS C:\> Set-HcsNetInterface Data2 -IPv4Address 10.1.1.30 -IPv4Gateway 10.1.1.1 -IPv4Netmask 192.168.255.0
Example 2: Set the IPv6 gateway address
This command sets the IPv6 gateway address for the network interface specified by the InterfaceAlias parameter. The IP address is automatically generated based on the IPv6Prefix parameter.
PS C:\> Set-HcsNetInterface Data2 -IPv6Prefix 2001:4898:4010:3015::/64 -IPv6Gateway 2001:4898:4010:3015::1
Example 3: Clear IPv6 settings for a network interface
This command removes IPv6 settings from the network interface specified by the InterfaceAlias parameter.
PS C:\> Set-HcsNetInterface Data2 -ClearIPv6
Example 4: Enable cloud access for a network interface
This command enables cloud access for the network interface specified by the InterfaceAlias parameter.
PS C:\> Set-HcsNetInterface Data2 -IsCloudEnabled $True
Example 5: Enable iSCSI access for a network interface
This command enables iSCSI access for the network interface specified by the InterfaceAlias parameter.
PS C:\> Set-HcsNetInterface Data2 -IsiSCSIEnabled $True