You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can create a logical network using either the Azure Command-Line Interface (CLI) or by using the Azure portal.
46
+
You can create a logical network by using either the Azure CLI or the Azure portal.
47
47
48
48
# [Azure CLI](#tab/azurecli)
49
49
50
-
You can use the [`az stack-hci-vm network lnet create`](/cli/azure/stack-hci-vm/network/lnet#az-stack-hci-vm-network-lnet-create) cmdlet to create a logical network on the VM switch in Static IP configuration.
50
+
To create a logical network on the VM switch in a static IP configuration, you can use the [`az stack-hci-vm network lnet create`](/cli/azure/stack-hci-vm/network/lnet#az-stack-hci-vm-network-lnet-create) command:
51
+
52
+
```azurecli
53
+
az stack-hci-vm network lnet create \
54
+
--subscription $subscription \
55
+
--resource-group $resource_group \
56
+
--custom-location $customLocationID \
57
+
--name $lnetName \
58
+
--vm-switch-name $vmSwitchName \
59
+
--ip-allocation-method "Static" \
60
+
--address-prefixes $addressPrefixes \
61
+
--gateway $gateway \
62
+
--dns-servers $dnsServers \
63
+
--ip-pool-start $ipPoolStart \
64
+
--ip-pool-end $ipPoolEnd \
65
+
--vlan 10
66
+
```
51
67
52
68
For static IP, the required parameters are as follows:
53
69
@@ -57,17 +73,14 @@ For static IP, the required parameters are as follows:
57
73
|`--resource-group`| Name of the resource group where you create the logical network. |
58
74
|`--subscription`| Name or ID of the subscription where your Azure Local is deployed. |
59
75
|`--custom-location`| Provide the custom location associated with your Azure Local cluster where you're creating the logical network. |
60
-
|`--vm-switch-name`| The name of the VM switch. Usage: `--vm-switch-name "vm-switch-01"`. |
76
+
|`--vm-switch-name`| The name of the VM switch. Usage: `--vm-switch-name "vm-switch-01"`. |
61
77
|`--address-prefixes`| AddressPrefix for the network. Currently only 1 address prefix is supported. Usage: `--address-prefixes "10.220.32.16/24"`. |
62
-
|`--dns-servers`| Space-separated list of DNS server IP addresses. Usage: `--dns-servers 10.220.32.16 10.220.32.17`. |
78
+
|`--dns-servers`| Space-separated list of DNS server IP addresses. Usage: `--dns-servers 10.220.32.16 10.220.32.17`. |
63
79
|`--gateway`| Gateway. The gateway IP address must be within the scope of the address prefix. Usage: `--gateway 10.220.32.16`. |
64
-
|`--ip-allocation-method`| The IP address allocation method. Supported values are "Static". Usage: `--ip-allocation-method "Static"`. |
65
-
|`--ip-pool-start`| The start IP address of your IP pool. The address must be in range of the address prefix. Usage: `--ip-pool-start "10.220.32.18"`. |
80
+
|`--ip-allocation-method`| The IP address allocation method. Supported values are `Static`. Usage: `--ip-allocation-method "Static"`. |
81
+
|`--ip-pool-start`| The start IP address of your IP pool. The address must be in range of the address prefix. Usage: `--ip-pool-start "10.220.32.18"`. |
66
82
|`--ip-pool-end`| The end IP address of your IP pool. The address must be in range of the address prefix. Usage: `--ip-pool-end "10.220.32.38"`. |
|`--vlan`| The VLAN ID. Usage: `--vlan 10`. This parameter is required, otherwise the default value of 0 results in an AKS Arc cluster creation failure. |
71
84
72
85
# [Azure portal](#tab/azureportal)
73
86
@@ -77,11 +90,11 @@ Complete the following steps to create a logical network using the Azure portal:
0 commit comments