戴尔 Azure Stack HCI 全融合网络配置
Summary: 本文提供了一个示例,说明如何为 Dell Technologies 解决方案 Microsoft Azure Stack HCI 群集主机配置完全融合网络。本文中的信息取自 https://infohub.delltechnologies.com/en-us/l/e2e-deployment-and-operations-guide-with-scalable-networking-windows-1/fully-converged-network-configuration-38/2/ 上提供的“完全融合网络配置的部署说明”。 ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
以下所有步骤都使用 PowerShell 运行。群集管理和存储网络流量使用相同的交换机嵌入式组 (SET)。这三个网络跨三个独立的虚拟适配器运行。下面包括 SET 交换机、VLAN 和虚拟适配器的配置。
请勿封装下面的 PowerShell 命令,否则在将大部分脚本复制到 PowerShell 窗口中后,它们将失败。必须在所有群集节点上运行以下配置脚本。
下图是使用 SET 进行管理和存储网络通信的已配置 Azure Stack HCI 融合网络的硬件图表:
图 1:Azure Stack HCI
中的全融合网络图示必须在管理 PowerShell 提示符下运行以下脚本步骤:
请勿封装下面的 PowerShell 命令,否则在将大部分脚本复制到 PowerShell 窗口中后,它们将失败。必须在所有群集节点上运行以下配置脚本。
下图是使用 SET 进行管理和存储网络通信的已配置 Azure Stack HCI 融合网络的硬件图表:
图 1:Azure Stack HCI
中的全融合网络图示必须在管理 PowerShell 提示符下运行以下脚本步骤:
提醒:脚本中的适配器名称、对象名称、IP 地址和 VLAN 标记值取决于部署 HCI 群集的环境。在运行脚本之前适当地设置这些值。
$ErrorActionPreference = 'Stop'
#region Variables for the scenario
# You must specify 2 or 4 network adapter port names
$netAdapterName = @('SLOT 4 PORT 1','SLOT 4 PORT 2')
$switchName = 'S2DSwitch'
# Management Adapter Parameters
$managementAdapterName = 'Management'
# VLAN ID for host management traffic; if no VLAN is preferred set this to 0
$managementVlanId = 102
# Management Gateway address
$managementGateway = '10.0.0.1'
# DNS server address
$managementDns = '10.0.0.19'
# Set this to a string 'DHCP' for a dynamic IP address
$managementIPAddress = '10.0.0.51'
# Management address prefix (24 translates to subnet mask 255.255.255.0)
$managementAddressPrefix = 24
# Storage Adapter Parameters
$storageAdapterPrefix = 'Storage'
# You must specify 1 or 2 or 4 VLANIDs
# You can use 0 as the value if you don't want to use VLANs for storage traffic
$storageVlanId = @(103,104)
# You must specify 2 or 4 IP Addresses
# DHCP as a value is accepted if you want dynamically assigned IP addresses
$storageIPAddress = @('171.16.101.51','172.16.102.51')
# You can specify 1 or 2 or 4 prefix length values
$StorageAddressPrefix = @(24)
#endregion
## Create a VM switch for management and Storage traffic
$null = New-VMSwitch -Name $switchName -AllowManagementOS 0 -NetAdapterName $netAdapterName -Verbose
## Add VM Network Adapters and configure VLANs and IP addresses as needed
### Management Adapter
$managementAdapter = Add-VMNetworkAdapter -SwitchName $SwitchName -ManagementOS -Passthru -Name $managementAdapterName -Verbose
if ($managementVlanId -and ($managementVlanId -ne 0))
{
Set-VMNetworkAdapterVlan -VMNetworkAdapter $managementAdapter -Access -VlanId $managementVlanId -Verbose
Start-Sleep -Seconds 5
}
if ($ManagementIPAddress -ne 'DHCP')
{
$null = New-NetIPAddress -InterfaceAlias "vEthernet ($managementAdapterName)" -IPAddress $managementIPAddress -DefaultGateway $managementGateway -PrefixLength $managementAddressPrefix -Verbose
Set-DnsClientServerAddress -InterfaceAlias "vEthernet ($managementAdapterName)" -ServerAddresses $managementDns -Verbose
}
### Storage Adapters
for ($i = 0; $i -lt $netAdapterName.Count; $i++)
{
$storageAdapterName = "${storageAdapterPrefix}$($i+1)"
# if there is a single VLAN for storage use the first and only element
if ($storageVlanId.Count -eq 1)
{
$storageVlan = $storageVlanId[0]
}
else
{
# else use the right index to get the VLAN ID
$storageVlan = $storageVlanId[$i]
}
# Check if only one prefix is provided
if ($StorageAddressPrefix.Count -eq 1)
{
$StoragePrefix = $StorageAddressPrefix[0]
}
else
{
# if more than one, use the right index to get the address prefix
$StoragePrefix = $StorageAddressPrefix[$i]
}
$storageAdapter = Add-VMNetworkAdapter -SwitchName $SwitchName -ManagementOS -Passthru -Name $storageAdapterName -Verbose
if ($storageVlan -and ($storageVlan -ne 0))
{
# Set VM Network adapter VLAN only if the VLAN ID specified is other than 0
Set-VMNetworkAdapterVlan -VMNetworkAdapter $storageAdapter -Access -VlanId $storageVlan -Verbose
Start-Sleep -Seconds 5
}
if ($StorageIPAddress[$i] -ne 'DHCP')
{
$null = New-NetIPAddress -InterfaceAlias "vEthernet ($storageAdapterName)" -IPAddress $StorageIPAddress[$i] -PrefixLength $StoragePrefix -Verbose
}
## Set VMnetwork adapter to Physical adapter mapping
Set-VMNetworkAdapterTeamMapping -VMNetworkAdapterName $storageAdapterName -ManagementOS -PhysicalNetAdapterName $netAdapterName[$i]
}
Affected Products
AX Nodes, AX-640, ax-650, AX-6515, AX-740XD, AX-750, AX-7525, Integrated System for Microsoft Azure Stack Hub, Integrated System for Microsoft Azure Stack Hub 13G, Integrated System for Microsoft Azure Stack Hub 14GProducts
Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, QLogic Family of AdaptersArticle Properties
Article Number: 000200958
Article Type: How To
Last Modified: 05 Sep 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.