gpt4 book ai didi

azure - 使用 networkconfig.xml 添加到 Azure 虚拟网络的第二个 ExpressRoute 连接

转载 作者:行者123 更新时间:2023-12-03 03:15:11 25 4
gpt4 key购买 nike

我们正在尝试向 Azure 订阅中的 vNet 添加第二个 ExpressRoute 连接。我们已经使用虚拟网络 GUI 和 powershell cmdlet 工具的组合成功完成了与第一个 ExpressRoute 的连接(我们使用 Exchange Provider 方法)。

但是...GUI 仅支持通过 ExpressRoute 添加一个站点到站点 VPN。

添加辅助站点到站点连接的方法是导出网络配置(通过 Azure 门户)并编辑生成的 NetworkConfig.xml 文件 - 然后通过门户重新导入该文件。

理论上来说一切都很好。

从 GUI 导出的 NetworkConfig.xml 文件:

<Gateway>
<ConnectionsToLocalNetwork>
<LocalNetworkSiteRef name="XXXX">
<Connection type="Dedicated" />
</LocalNetworkSiteRef>
</ConnectionsToLocalNetwork>
</Gateway>

与微软支持部门(我们仍然与他们合作)一起,我们确定以下措施应该有效:

<Gateway>
<ConnectionsToLocalNetwork>
<LocalNetworkSiteRef name="XXXX">
<Connection type="Dedicated" />
</LocalNetworkSiteRef>
<LocalNetworkSiteRef name="YYYY">
<Connection type="Dedicated" />
</LocalNetworkSiteRef>
</ConnectionsToLocalNetwork>
</Gateway>

但是,尝试导入它会生成以下错误消息:

"The gateway in virtual network site XXX-XXX-XX referenced multiple localnetwork sites and uses a connection type different than 'IPsec' for atleast one of the connections. If a gateway references more than one localnetwork site, the connection type to all local network sites must be'IPsec'. 'IPsec' is the default connection type."

这似乎表明不支持单个 vNet 上的多个 ExpressRoute 连接,这与此处的 MS 常见问题解答相反:

Can I have one virtual network connected to more than one ExpressRoutecircuit?

Yes. You can link a single virtual network with up to 4 ExpressRoutecircuits. All ExpressRoute circuits must be in the same continent. Theycan be ordered through different service providers and in differentlocations.

(来自 https://azure.microsoft.com/en-us/documentation/articles/expressroute-coexist/ )

有人知道我们应该如何进行吗?

谢谢

最佳答案

您可以使用 API 完成此任务。您最多可以将 4 个 ExpressRoute 线路链接到虚拟网络。您可以通过将同一 vnet 链接到多个电路来实现此目的。下面是一个示例

new-azurededicatedcircuitlink -servicekey <skey1> -vnetname <vnet>
new-azurededicatedcircuitlink -servicekey <skey2> -vnetname <vnet>

在上面的示例中,skey 1 和 skey 2 代表不同的电路。

关于azure - 使用 networkconfig.xml 添加到 Azure 虚拟网络的第二个 ExpressRoute 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29253649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com