如何配置 ExpressRoute DirectHow to configure ExpressRoute Direct

使用 ExpressRoute Direct,可以直接连接到 Microsoft 战略性分布在全球的对等互连位置的的全球网络。ExpressRoute Direct gives you the ability to directly connect to Microsoft's global network through peering locations strategically distributed across the world. 有关详细信息,请参阅关于 ExpressRoute DirectFor more information, see About ExpressRoute Direct.

准备阶段Before you begin

需要先注册订阅,然后才能使用 ExpressRoute Direct。Before using ExpressRoute Direct, you must first enroll your subscription. 若要注册,请使用你的订阅 ID 向 ExpressRouteDirect@microsoft.com 发送一封电子邮件,其中包括以下详细信息:To enroll, send an Email to ExpressRouteDirect@microsoft.com with your subscription ID, including the following details:

  • 需通过 ExpressRoute Direct 完成的方案Scenarios you're looking to accomplish with ExpressRoute Direct
  • 位置首选项 - 请参阅合作伙伴和对等互连位置,获取包含所有位置的完整列表Location preferences - see Partners and peering locations for a complete list of all locations
  • 实现的时间线Timeline for implementation
  • 其他问题Any other questions

创建资源Create the resource

  1. 登录到 Azure 并选择订阅。Sign in to Azure and select the subscription. ExpressRoute Direct 资源和 ExpressRoute 线路必须位于同一订阅中。The ExpressRoute Direct resource and ExpressRoute circuits must be in the same subscription.

    Connect-AzAccount 
    
    Select-AzSubscription -Subscription "<SubscriptionID or SubscriptionName>"
    
  2. 将你的订阅重新注册到 Microsoft.Network 以访问 expressrouteportslocation 和 expressrouteport API。Re-register your subscription to Microsoft.Network to access the expressrouteportslocation and expressrouteport APIs.

    Register-AzResourceProvider -ProviderNameSpace "Microsoft.Network"
    
  3. 列出支持 ExpressRoute Direct 的所有位置。List all locations where ExpressRoute Direct is supported.

    Get-AzExpressRoutePortsLocation
    

    示例输出Example output

    Name                : Equinix-Ashburn-DC2
    Id                  : /subscriptions/<subscriptionID>/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Ashburn-D
                         C2
    ProvisioningState   : Succeeded
    Address             : 21715 Filigree Court, DC2, Building F, Ashburn, VA 20147
    Contact             : support@equinix.com
    AvailableBandwidths : []
    
    Name                : Equinix-Dallas-DA3
    Id                  : /subscriptions/<subscriptionID>/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-Dallas-DA
                         3
    ProvisioningState   : Succeeded
    Address             : 1950 N. Stemmons Freeway, Suite 1039A, DA3, Dallas, TX 75207
    Contact             : support@equinix.com
    AvailableBandwidths : []
    
    Name                : Equinix-San-Jose-SV1
    Id                  : /subscriptions/<subscriptionID>/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-San-Jose-
                         SV1
    ProvisioningState   : Succeeded
    Address             : 11 Great Oaks Blvd, SV1, San Jose, CA 95119
    Contact             : support@equinix.com
    AvailableBandwidths : []
    
  4. 确定上面列出的某个位置是否有可用的带宽Determine if a location listed above has available bandwidth

    Get-AzExpressRoutePortsLocation -LocationName "Equinix-San-Jose-SV1"
    

    示例输出Example output

    Name                : Equinix-San-Jose-SV1
    Id                  : /subscriptions/<subscriptionID>/providers/Microsoft.Network/expressRoutePortsLocations/Equinix-San-Jose-
                         SV1
    ProvisioningState   : Succeeded
    Address             : 11 Great Oaks Blvd, SV1, San Jose, CA 95119
    Contact             : support@equinix.com
    AvailableBandwidths : [
                           {
                             "OfferName": "100 Gbps",
                             "ValueInGbps": 100
                           }
                         ]
    
  5. 根据上面选择的位置创建 ExpressRoute Direct 资源Create an ExpressRoute Direct resource based on the location chosen above

    ExpressRoute Direct 同时支持 QinQ 和 Dot1Q 封装。ExpressRoute Direct supports both QinQ and Dot1Q encapsulation. 如果选择了 QinQ,则会动态为每个 ExpressRoute 线路分配一个 S-Tag,并且每个线路在整个 ExpressRoute Direct 资源中将是唯一的。If QinQ is selected, each ExpressRoute circuit will be dynamically assigned an S-Tag and will be unique throughout the ExpressRoute Direct resource. 线路上的每个 C-Tag 在该线路上必须是唯一的,但在整个 ExpressRoute Direct 中不必唯一。Each C-Tag on the circuit must be unique on the circuit, but not across the ExpressRoute Direct.

    如果选择了 Dot1Q 封装,则必须在整个 ExpressRoute Direct 资源中管理 C-Tag (VLAN) 的唯一性。If Dot1Q encapsulation is selected, you must manage uniqueness of the C-Tag (VLAN) across the entire ExpressRoute Direct resource.

    重要

    ExpressRoute Direct 只能采用一种封装类型。ExpressRoute Direct can only be one encapsulation type. 无法在创建 ExpressRoute Direct 后更改封装。Encapsulation cannot be changed after ExpressRoute Direct creation.

    $ERDirect = New-AzExpressRoutePort -Name $Name -ResourceGroupName $ResourceGroupName -PeeringLocation $PeeringLocationName -BandwidthInGbps 100.0 -Encapsulation QinQ | Dot1Q -Location $AzureRegion
    

    备注

    封装属性还可以设置为 Dot1Q。The Encapsulation attribute could also be set to Dot1Q.

    示例输出:Example output:

    Name                       : Contoso-Direct
    ResourceGroupName          : Contoso-Direct-rg
    Location                   : chinaeast
    Id                         : /subscriptions/<subscriptionID>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.Network/exp
                                ressRoutePorts/Contoso-Direct
    Etag                       : W/"<etagnumber> "
    ResourceGuid               : <number>
    ProvisioningState          : Succeeded
    PeeringLocation            : Equinix-Seattle-SE2
    BandwidthInGbps            : 100
    ProvisionedBandwidthInGbps : 0
    Encapsulation              : QinQ
    Mtu                        : 1500
    EtherType                  : 0x8100
    AllocationDate             : Saturday, September 1, 2018
    Links                      : [
                                  {
                                    "Name": "link1",
                                    "Etag": "W/\"<etagnumber>\"",
                                    "Id": "/subscriptions/<subscriptionID>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.
                                Network/expressRoutePorts/Contoso-Direct/links/link1",
                                    "RouterName": "tst-09xgmr-cis-1",
                                    "InterfaceName": "HundredGigE2/2/2",
                                    "PatchPanelId": "PPID",
                                    "RackId": "RackID",
                                    "ConnectorType": "SC",
                                    "AdminState": "Disabled",
                                    "ProvisioningState": "Succeeded"
                                  },
                                  {
                                    "Name": "link2",
                                    "Etag": "W/\"<etagnumber>\"",
                                    "Id": "/subscriptions/<subscriptionID>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.
                                Network/expressRoutePorts/Contoso-Direct/links/link2",
                                    "RouterName": "tst-09xgmr-cis-2",
                                    "InterfaceName": "HundredGigE2/2/2",
                                    "PatchPanelId": "PPID",
                                    "RackId": "RackID",
                                    "ConnectorType": "SC",
                                    "AdminState": "Disabled",
                                    "ProvisioningState": "Succeeded"
                                  }
                                ]
    Circuits                   : []
    

生成授权信 (LOA)Generate the Letter of Authorization (LOA)

引用最近创建的 ExpressRoute Direct 资源,输入客户名称以将 LOA 写入其中,并(可选)定义用于存储文档的文件位置。Reference the recently created ExpressRoute Direct resource, input a customer name to write the LOA to and (optionally) define a file location to store the document. 如果未引用文件路径,则文档将下载到当前目录。If a file path is not referenced, the document will download to the current directory.

 New-AzExpressRoutePortLOA -ExpressRoutePort $ERDirect -CustomerName TestCustomerName -Destination "C:\Users\SampleUser\Downloads" 

示例输出Example output

Written Letter of Authorization To: C:\Users\SampleUser\Downloads\LOA.pdf

应当使用此过程执行第 1 层测试,以确保每个交叉连接都已针对主端口和辅助端口正确设置到每台路由器中。This process should be used to conduct a Layer 1 test, ensuring that each cross-connection is properly patched into each router for primary and secondary.

  1. 获取 ExpressRoute Direct 详细信息。Get ExpressRoute Direct details.

    $ERDirect = Get-AzExpressRoutePort -Name $Name -ResourceGroupName $ResourceGroupName
    
  2. 将链路设置为“已启用”。Set Link to Enabled. 重复此步骤以将每个链路设置为“已启用”。Repeat this step to set each link to enabled.

    Links[0] 是主端口,Links[1] 是辅助端口。Links[0] is the primary port and Links[1] is the secondary port.

    $ERDirect.Links[0].AdminState = "Enabled"
    Set-AzExpressRoutePort -ExpressRoutePort $ERDirect
    $ERDirect = Get-AzExpressRoutePort -Name $Name -ResourceGroupName $ResourceGroupName
    $ERDirect.Links[1].AdminState = "Enabled"
    Set-AzExpressRoutePort -ExpressRoutePort $ERDirect
    

    示例输出:Example output:

    Name                       : Contoso-Direct
    ResourceGroupName          : Contoso-Direct-rg
    Location                   : westcentralus
    Id                         : /subscriptions/<number>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.Network/exp
                              ressRoutePorts/Contoso-Direct
    Etag                       : W/"<etagnumber> "
    ResourceGuid               : <number>
    ProvisioningState          : Succeeded
    PeeringLocation            : Equinix-Seattle-SE2
    BandwidthInGbps            : 100
    ProvisionedBandwidthInGbps : 0
    Encapsulation              : QinQ
    Mtu                        : 1500
    EtherType                  : 0x8100
    AllocationDate             : Saturday, September 1, 2018
    Links                      : [
                                {
                                  "Name": "link1",
                                  "Etag": "W/\"<etagnumber>\"",
                                  "Id": "/subscriptions/<subscriptionID>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.
                              Network/expressRoutePorts/Contoso-Direct/links/link1",
                                  "RouterName": "tst-09xgmr-cis-1",
                                  "InterfaceName": "HundredGigE2/2/2",
                                  "PatchPanelId": "PPID",
                                  "RackId": "RackID",
                                  "ConnectorType": "SC",
                                  "AdminState": "Enabled",
                                  "ProvisioningState": "Succeeded"
                                },
                                {
                                  "Name": "link2",
                                  "Etag": "W/\"<etagnumber>\"",
                                  "Id": "/subscriptions/<subscriptionID>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.
                              Network/expressRoutePorts/Contoso-Direct/links/link2",
                                  "RouterName": "tst-09xgmr-cis-2",
                                  "InterfaceName": "HundredGigE2/2/2",
                                  "PatchPanelId": "PPID",
                                  "RackId": "RackID",
                                  "ConnectorType": "SC",
                                  "AdminState": "Enabled",
                                  "ProvisioningState": "Succeeded"
                                }
                              ]
    Circuits                   : []
    

    使用相同的过程和 AdminState = "Disabled" 设置可关闭端口。Use the same procedure with AdminState = "Disabled" to turn down the ports.

创建线路Create a circuit

默认情况下,可以在 ExpressRoute Direct 资源所在的订阅中创建 10 条线路。By default, you can create 10 circuits in the subscription where the ExpressRoute Direct resource is. 此限制可以通过支持来提高。This limit can be increased by support. 你负责跟踪预配的和已利用的带宽。You are responsible for tracking both Provisioned and Utilized Bandwidth. 预配的带宽是 ExpressRoute Direct 资源上所有线路的带宽总和,已利用的带宽是基础物理接口的物理利用率。Provisioned bandwidth is the sum of bandwidth of all circuits on the ExpressRoute Direct resource and utilized bandwidth is the physical usage of the underlying physical interfaces.

有额外的线路带宽可以在 ExpressRoute Direct 上使用,仅用于支持上面概述的场景。There are additional circuit bandwidths that can be utilized on ExpressRoute Direct to support only the scenarios outlined above. 这些带宽为 40 Gbps 和 100 Gbps。These bandwidths are 40 Gbps and 100 Gbps.

SkuTier 可以为“本地”、“标准”或“高级”。SkuTier can be Local, Standard, or Premium.

SkuFamily 只能为 MeteredData。SkuFamily can only be MeteredData. ExpressRoute Direct 不支持“无限制”。Unlimited is not supported on ExpressRoute Direct.

在 ExpressRoute Direct 资源上创建一个线路。Create a circuit on the ExpressRoute Direct resource.

New-AzExpressRouteCircuit -Name $Name -ResourceGroupName $ResourceGroupName -ExpressRoutePort $ERDirect -BandwidthinGbps 100.0  -Location $AzureRegion -SkuTier Premium -SkuFamily MeteredData 

其他带宽包括:5.0、10.0 和 40.0Other bandwidths include: 5.0, 10.0, and 40.0

示例输出:Example output:

Name                             : ExpressRoute-Direct-ckt
ResourceGroupName                : Contoso-Direct-rg
Location                         : chinaeast
Id                               : /subscriptions/<subscriptionID>/resourceGroups/Contoso-Direct-rg/providers/Microsoft.Netwo
                                 rk/expressRouteCircuits/ExpressRoute-Direct-ckt
Etag                             : W/"<etagnumber>"
ProvisioningState                : Succeeded
Sku                              : {
                                   "Name": "Premium_MeteredData",
                                   "Tier": "Premium",
                                   "Family": "MeteredData"
                                 }
CircuitProvisioningState         : Enabled
ServiceProviderProvisioningState : Provisioned
ServiceProviderNotes             : 
  ServiceProviderProperties        : null
ExpressRoutePort                 : {
                                   "Id": "/subscriptions/<subscriptionID>n/resourceGroups/Contoso-Direct-rg/providers/Micros
                                 oft.Network/expressRoutePorts/Contoso-Direct"
                                 }
BandwidthInGbps                  : 10
Stag                             : 2
ServiceKey                       : <number>
Peerings                         : []
Authorizations                   : []
AllowClassicOperations           : False
GatewayManagerEtag     

后续步骤Next steps

有关 ExpressRoute Direct 的详细信息,请参阅概述For more information about ExpressRoute Direct, see the Overview.