节点之间无法访问 Hyper-V 群集网络

节点之间无法访问 Hyper-V 群集网络

Microsoft 建议Hyper-V 群集具有自己的专用群集网络,其功能如下:

用于节点间集群通信,例如集群心跳和集群共享卷 (CSV) 重定向。

借助以下指南,了解如何创建搭载 Windows Server 2016 的 2 节点超融合集群之后,我使用以下 PowerShell 命令在第一个节点上创建集群网络:

# Create Virtual Machine Switch by merging the management adapters and disabling management OS
New-VMSwitch -Name SW-1G -NetAdapterName Management-1, Management-2 -EnableEmbeddedTeaming $True -AllowManagementOS $False
# Add Virtual Machine Network Adaptors for cluster based on merged switch
Add-VMNetworkAdapter -SwitchName SW-1G -ManagementOS -Name Cluster-100
# Set Virtual Machine Adapter VLAN for Cluster adapter
Set-VMNetworkAdapterVLAN -ManagementOS -VMNetworkAdapterName Cluster-100 -Access -VlanId 100
# Set IP address for cluster adapter
New-NetIPAddress -InterfaceAlias "vEthernet (Cluster-100)" -IPAddress 10.10.100.11 -PrefixLength 24 -Type Unicast | Out-Null
# Disable DNS registration of Cluster network adapter  
Set-DNSClient -InterfaceAlias *Cluster* -RegisterThisConnectionsAddress $False

然后这将在ipconfig /all

Ethernet adapter vEthernet (Cluster-100):

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2
   Physical Address. . . . . . . . . : 00-15-5D-00-6C-01
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::29bd:4937:2dc1:8f8%10(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.10.100.11(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 503321949
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-CB-79-8B-FC-AA-14-ED-C6-BA
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

在第二个节点上再次运行相同的脚本,将 IP 地址更改为 10.10.100.13,从而创建以下条目ipconfig /all

Ethernet adapter vEthernet (Cluster-100):

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2
   Physical Address. . . . . . . . . : 00-15-5D-00-68-01
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c823:10d5:66f5:b8bb%9(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.10.100.13(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 503321949
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-CB-79-25-FC-AA-14-ED-C6-A2
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

运行Test-Cluster node1, node2命令后,报告在“验证网络通信”部分给出以下错误:

网络接口 node1.lab.com - vEthernet (Cluster-100) 和 node2.lab.com - vEthernet (Cluster-100) 位于同一个集群网络上,但无法从 10.10.100.11 使用端口 3343 上的 UDP 访问地址 10.10.100.13。

网络接口 node2.lab.com - vEthernet (Cluster-100) 和 node1.lab.com - vEthernet (Cluster-100) 位于同一个集群网络上,但无法从 10.10.100.13 使用端口 3343 上的 UDP 访问地址 10.10.100.11。

由于集群网络应该允许节点间通信,因此网络似乎配置不正确。你知道我可能做错了什么吗?

答案1

仔细查看脚本,您已为 vSwitch 配置了 VLAN ID。您是否已将这些主机所连接的物理交换机端口配置为中继端口,并在这些端口上允许适当的 VLAN?为了承载该 VLAN 的流量,需要将物理交换机端口配置为中继端口以承载该 VLAN。

相关内容