Network Edge到 Azure ExpressRoute
从Network Edge虚拟设备连接到 Azure ExpressRoute。
有关从 Fabric 端口、Fabric 云路由器或使用服务令牌进行连接的说明,请参阅快速连接到 Microsoft Azure ExpressRoute(端口、服务令牌、云路由器)。
先决条件
- Portal
- API
在从Network Edge虚拟设备创建与Microsoft Azure ExpressRoute 的连接之前,您必须:
- 一个在微软的Azure账户。
- 在 Azure 资源管理器门户中配置的 ExpressRoute 服务密钥。
- 一个 Equinix Fabric 帐户,并分配了以下 IAM 角色:
Fabric Connections Manager。 - 网络边缘虚拟设备。
-
身份验证 - 请提交您的用户凭据、客户端 ID 和客户端密钥以进行 OAuth2 身份验证。有关如何调用 OAuth API 来验证和确认您的凭据的说明,请参阅API 身份验证。
-
确定您的 A 端信息。您需要已配置的网络边缘虚拟设备、冗余设备或集群,并已注册许可证。向
/ne/v1/devices端点或/ne/v1/devices/{id}端点发送GET请求。您可以选择设备上的任何可用接口进行连接。但是,如果您未指定接口,Equinix 将自动选择一个。 -
确定 Azure ExpressRoute 服务配置文件信息。有关应选择哪个服务配置文件的更多信息,请参阅 Azure ExpressRoute 概述 页面。
- Azure ExpressRoute -
a1390b22-bbe0-4e93-ad37-85beef9d254d - Azure 政府 ExpressRoute -
0de4e413-edd7-4325-912f-7c8a4428e156
- Azure ExpressRoute -
-
识别并验证您的 ExpressRoute 服务密钥。向
/fabric/v4/connections/validate端点发送POST请求,以验证您的 ExpressRoute 服务密钥是否可用于创建与给定都市中选定服务配置文件的连接。
创建一个与Azure ExpressRoute的连接
要连接到Microsoft Azure ExpressRoute,请执行以下操作:
- Portal
- API
-
从“连接”菜单中,选择“创建连接”。
-
在“服务提供商”卡片中,单击“连接到服务提供商”。

-
在A 服务提供商卡,点击连接到服务提供商。
-
找到“Microsoft Azure”卡片,然后单击“选择服务”。
-
在“Azure Express Route”卡上,单击“创建连接(网络边缘设备)”。

-
查看连接到 Azure ExpressRoute 的步骤,然后单击创建与 Azure ExpressRoute 的连接。
-
在“来源”部分:
-
单击“虚拟设备”。如果“虚拟设备”选项处于禁用状态,则表示所选项目中没有可用的虚拟设备。请选择一个已分配虚拟设备的其他项目,或者在本项目中创建新的虚拟设备。
-
选择一个地铁。
-
选择虚拟设备类型,选择连接类型,然后选择虚拟设备实例。
-
-
在“目标”部分,输入您的“Microsoft Azure ExpressRoute 服务密钥”,然后单击“下一步”。
提示ExpressRoute 服务密钥验证成功后,将显示 Azure 对等互连位置和带宽。“定价概览”会根据您选择的连接位置显示更新后的详细信息。您可以更改源位置,以查看 Fabric 网络上任何路由的定价。

-
输入主连接名称。
-
输入辅助连接名称。
-
选择对等类型。
-
选择虚拟设备上的网络接口。
-
输入一个VLAN卖方C-tag。
注意如果在此处输入 C 标记的 VLAN 值,则它必须与在 Azure 门户中为所选对等互连类型输入的 C 标记值匹配。此值允许 ExpressRoute 线路进入已预配状态。这对于 Fabric 经销商用户或需要为不同业务部门管理多个 Azure 订阅的用户很有帮助,因为这些用户仅获得一个 ExpressRoute 服务密钥用于预配,而无权访问 ExpressRoute 对等互连配置。
-
输入采购订单号。
-
点击下一步。

-
请查看“连接摘要”和“冗余连接摘要”信息。
-
(可选)点击“设计概要”下载设计详情副本。
-
(可选)在“通知”部分,输入任何其他应接收有关此订阅的通知的电子邮件地址。
-
点击提交订单。
注意连接请求一经提交,就开始收费。

要监控您的连接状态,请从“连接”菜单中选择“连接清单”。
要从您的网络边缘设备创建到 Azure 的连接,请向 /fabric/v4/connections 端点发送 POST 请求。连接类型为 EVPL_VC。
在 aSide 对象中定义您的网络边缘设备,包括:
accessPoint.typeasVDvirtualDevice.typeasEDGEvirtualDevice.uuidas your device's UUID
请在 zSide 对象中提供您的 Azure ExpressRoute 详细信息和位置详细信息,包括:
- 将
accessPoint.type设置为SP。 - 将
profile.type设置为L2_PROFILE。 - 在
profile.uuid中指定要连接的 Azure ExpressRoute 服务配置文件。 - 在
location.metroCode中指定您要连接的 Equinix Metro 位置。 - 将
authenticationKey设置为您的 ExpressRoute 服务密钥。 - 根据您使用连接的服务,将
peeringType设置为MICROSOFT或PRIVATE。有关详细信息,请参阅配置对等互连。
请在请求正文中指定其他连接配置详情,包括bandwidth和redundancy。有关参数及其说明的完整列表,请参阅API 参考。
示例 cURL 请求:
curl -X
POST 'https://api.equinix.com/fabric/v4/connections'
-H 'content-type: application/json'
-H 'authorization: Bearer <token>'
-d '{
"type": "EVPL_VC",
"name": "<your_connection_name>",
"bandwidth": <connection_speed>,
"redundancy":{
"priority": "<redundancy_code>"
},
"aSide": {
"accessPoint": {
"type": "VD",
"virtualDevice": {
"type": "EDGE",
"uuid": "<virtual_device_uuid>"
}
}
},
"zSide": {
"accessPoint": {
"type": "SP",
"profile": {
"type": "L2_PROFILE",
"uuid": "<service_profile_uuid>"
},
"location": {
"metroCode": "SV"
},
"authenticationKey": "xxxx-xxx-xxxx",
"peeringType": "MICROSOFT"
}
},
"project": {
"projectId": "<project_id>"
},
"order": {
"purchaseOrderNumber": "<purchase_order_number>"
},
"notifications": [
{
"type": "ALL",
"emails":
[
"<contact_email>"
]
}
]
}
监控连接状态
向 fabric/v4/connections/{connectionId} 端点发送 GET 请求以监控连接状态。
| Equinix Connection States | Azure States | |||
|---|---|---|---|---|
equinixStatus attribute values | providerStatus attribute values | Provider Status | Peerings Status | Description |
PROVISIONING | PROVISIONING | Not provisioned | Not provisioned | Connection request has not been sent to Microsoft yet. |
PENDING_BGP_PEERING | PENDING_BGP | Provisioned | Not provisioned | The connection has been approved and awaits for the customer to configure Microsoft peering on the Microsoft Azure portal. Note that the status will remain PENDING_BGP_PEERING until peering is completed in the Microsoft Azure portal and the status will only change to PROVISIONED once Equinix Fabric syncs with Microsoft. If you are connecting to Azure ExpressRoute from a Network Edge device, you also need to configure the routing details on the device, which vary by vendor (such as Cisco or Juniper). |
PROVISIONING | PROVISIONED | Provisioning completed at Microsoft's end and the connection is provisioning at Equinix's end. | ||
PROVISIONED | PROVISIONED | Connection established. |