快速入门:创建和修改 ExpressRoute 线路Quickstart: Create and modify an ExpressRoute circuit

本快速入门介绍如何使用 Azure 门户和 Azure 资源管理器部署模型创建 ExpressRoute 线路。This quickstart shows you how to create an ExpressRoute circuit using the Azure portal and the Azure Resource Manager deployment model. 还可以检查线路状态、更新、删除或取消预配线路。You can also check the status, update, delete, or deprovision a circuit.

先决条件Prerequisites

创建和预配 ExpressRoute 线路Create and provision an ExpressRoute circuit

1.登录到 Azure 门户1. Sign in to the Azure portal

从浏览器导航到 Azure 门户并使用 Azure 帐户登录。From a browser, navigate to the Azure portal and sign in with your Azure account.

2.创建新的 ExpressRoute 线路2. Create a new ExpressRoute circuit

重要

从发布服务密钥的那一刻起,将对 ExpressRoute 线路进行计费。Your ExpressRoute circuit is billed from the moment a service key is issued. 确保连接服务提供商准备好预配线路后就执行此操作。Ensure that you perform this operation when the connectivity provider is ready to provision the circuit.

可以通过选择创建新资源的选项来创建 ExpressRoute 线路。You can create an ExpressRoute circuit by selecting the option to create a new resource.

  1. 在 Azure 门户菜单中,选择“创建资源”。On the Azure portal menu, select Create a resource. 选择“网络” > “ExpressRoute”,如下图所示:Select Networking > ExpressRoute, as shown in the following image:

    创建 ExpressRoute 线路

  2. 选择“ExpressRoute”即可看到“创建 ExpressRoute”页。After you select ExpressRoute, you'll see the Create ExpressRoute page. 为线路提供“资源组”、“区域”和“名称”。Provide the Resource Group, Region, and Name for the circuit. 然后选择“下一步:配置 >”。Then select Next: Configuration >.

    配置资源组和区域

  3. 在此页上填写相应值时,请务必指定正确的 SKU 层(“标准”或“高级”)和数据计量计费模型(“不限流量”或“按流量计费”)。When you're filling in the values on this page, make sure that you specify the correct SKU tier (Standard, or Premium) and data metering billing model (Unlimited or Metered).

    配置线路

    • 端口类型 确定你是连接到服务提供商还是直接在对等互连位置连接到 Microsoft 的全球网络。Port type determines if you're connecting to a service provider or directly into Microsoft's global network at a peering location.
    • 新建或从经典线路中导入 确定是要创建新线路还是要将经典线路迁移到 Azure 资源管理器。Create new or import from classic determines if a new circuit is being created or if you're migrating a classic circuit to Azure Resource Manager.
    • 提供商 指你将向其请求提供服务的 Internet 服务提供商。Provider is the internet service provider who you will be requesting your service from.
    • 对等互连位置 是与 Microsoft 建立对等互连的实际位置。Peering Location is the physical location where you're peering with Microsoft.

    重要

    “对等互连位置”指明了与 Microsoft 建立对等互连的实际位置The Peering Location indicates the physical location where you are peering with Microsoft. 此位置与“Location”属性 没有 关系,后者指的是 Azure 网络资源提供商所在的地理位置。This is not linked to "Location" property, which refers to the geography where the Azure Network Resource Provider is located. 尽管两者之间没有关系,但最好是选择地理上与线路对等互连位置靠近的网络资源提供商。While they are not related, it is a good practice to choose a Network Resource Provider geographically close to the Peering Location of the circuit.

    • 计费模型 确定计费类型。Billing model determines the billing type. 可以指定“Metered”以获取数据流量套餐,指定“Unlimited”以获取无限制流量套餐。You can specify Metered for a metered data plan and Unlimited for an unlimited data plan. 可以将计费类型从“按流量计费”更改为“不限流量” 。You can change the billing type from Metered to Unlimited.

    重要

    你无法将类型从“不限流量”更改为“按流量计费” 。You can not change the type from Unlimited to Metered.

    • 允许经典操作 将允许经典虚拟网络链接到线路。Allow classic operation will allow classic virtual networks to be link to the circuit.

查看线路和属性View the circuits and properties

查看所有线路View all the circuits

在左侧菜单中选择“所有服务”>“网络”>“ExpressRoute 线路”,即可查看创建的所有线路。You can view all the circuits that you created by selecting All services > Networking > ExpressRoute circuits on the left-side menu.

ExpressRoute 线路菜单

在订阅中创建的所有 Expressroute 线路都将在此处显示。All Expressroute circuits created in the subscription will appear here.

ExpressRoute 线路列表

查看属性View the properties

可以通过选择线路来查看线路属性。You can view the properties of the circuit by selecting it. 在线路的“概述”页上,服务密钥显示在“服务密钥”字段中。On the Overview page for your circuit, the service key appears in the service key field. 请查看线路服务密钥,并向服务提供商提供服务密钥,以便完成预配流程。Refer to the service key for your circuit and provide it to the service provider to complete the provisioning process. 服务密钥为线路专属。The service key is specific to your circuit.

查看属性

将服务密钥发送给连接服务提供商进行预配Send the service key to your connectivity provider for provisioning

在此页上,“提供商状态”指明了服务提供商端的当前预配状态。On this page, Provider status gives you the current state of provisioning on the service-provider side. “线路状态”指明了 Microsoft 端的状态。Circuit status provides you the state on the Microsoft side. 有关线路预配状态的详细信息,请参阅工作流一文。For more information about circuit provisioning states, see the Workflows article.

创建新的 ExpressRoute 线路时,线路将为以下状态:When you create a new ExpressRoute circuit, the circuit is in the following state:

提供程序状态:未预配Provider status: Not provisioned
线路状态:已启用Circuit status: Enabled

启动预配过程

当连接服务提供商正在为你启用线路时,线路将更改为以下状态:The circuit changes to the following state when the connectivity provider is currently enabling it for you:

提供程序状态:预配Provider status: Provisioning
线路状态:已启用Circuit status: Enabled

若要使用 ExpressRoute 线路,该线路必须处于以下状态:To use the ExpressRoute circuit, it must be in the following state:

提供程序状态:已预配Provider status: Provisioned
线路状态:已启用Circuit status: Enabled

定期检查线路密钥的状态Periodically check the status and the state of the circuit key

选择感兴趣的线路即可查看其属性。You can view the properties of the circuit that you're interested in by selecting it. 选中“提供商状态”,确保在继续之前其已转为“已预配”。Check the Provider status and ensure that it has moved to Provisioned before you continue.

线路和提供商状态

创建路由配置Create your routing configuration

有关分步说明,请参阅 ExpressRoute 线路路由配置一文,了解如何创建和修改线路对等互连。For step-by-step instructions, refer to the ExpressRoute circuit routing configuration article to create and modify circuit peerings.

重要

这些说明仅适用于由提供第 2 层连接服务的服务提供商创建的线路。These instructions only apply to circuits that are created with service providers that offer layer 2 connectivity services. 如果服务提供商提供第 3 层托管服务(通常是 IP VPN,如 MPLS),则连接服务提供商会配置和管理路由。If you're using a service provider that offers managed layer 3 services (typically an IP VPN, like MPLS), your connectivity provider configures and manages routing for you.

接下来,将虚拟网络链接到 ExpressRoute 线路。Next, link a virtual network to your ExpressRoute circuit. 使用 Resource Manager 部署模式时,请参阅将虚拟网络链接到 ExpressRoute 线路一文。Use the Linking virtual networks to ExpressRoute circuits article when you work with the Resource Manager deployment model.

获取 ExpressRoute 线路的状态Getting the status of an ExpressRoute circuit

可以选择线路并查看“概述”页,从而查看线路状态。You can view the status of a circuit by selecting it and viewing the Overview page.

修改 ExpressRoute 线路Modifying an ExpressRoute circuit

可以在不影响连接的情况下修改 ExpressRoute 线路的某些属性。You can modify certain properties of an ExpressRoute circuit without impacting connectivity. 可以修改“配置”页上的“带宽”、“SKU”、“计费模型”和“允许经典操作”。You can modify the bandwidth, SKU, billing model and allow classic operations on the Configuration page. 若要了解限制,请参阅 ExpressRoute 常见问题For information on limits and limitations, see the ExpressRoute FAQ.

可以在不停机的情况下执行以下任务:You can do the following tasks with no downtime:

  • 为 ExpressRoute 线路启用或禁用 ExpressRoute Premium 加载项。Enable or disable an ExpressRoute Premium add-on for your ExpressRoute circuit.

  • 增加 ExpressRoute 线路的带宽,前提是端口上有可用容量。Increase the bandwidth of your ExpressRoute circuit, provided there is capacity available on the port.

    重要

    不支持对线路的带宽进行降级。Downgrading the bandwidth of a circuit is not supported.

  • 将计量套餐从“按流量计费”更改为“不限流量”。Change the metering plan from Metered Data to Unlimited Data.

    重要

    不支持将数据流量套餐从“不限流量”更改为“按流量计费”。Changing the metering plan from Unlimited Data to Metered Data is not supported.

  • 可以启用和禁用允许经典操作。You can enable and disable Allow Classic Operations.

重要

如果现有端口上的容量不足,可能需要重新创建 ExpressRoute 线路。You may have to recreate the ExpressRoute circuit if there is inadequate capacity on the existing port. 如果该位置没有额外的可用容量,则不能升级线路。You cannot upgrade the circuit if there is no additional capacity available at that location.

尽管你可无缝升级带宽,但是无法在不中断的情况下降低 ExpressRoute 线路的带宽。Although you can seamlessly upgrade the bandwidth, you cannot reduce the bandwidth of an ExpressRoute circuit without disruption. 带宽降级需要取消对 ExpressRoute 线路的预配,并重新预配新的 ExpressRoute 线路。Downgrading bandwidth requires you to deprovision the ExpressRoute circuit and then reprovision a new ExpressRoute circuit.

如果要使用的资源超出了标准线路所允许的范围,可能无法禁用 Premium 加载项。Disabling the Premium add-on operation can fail if you're using resources that are greater than what is permitted for the standard circuit.

若要修改 ExpressRoute 线路,请选择“配置”。To modify an ExpressRoute circuit, select Configuration.

修改线路

取消预配 ExpressRoute 线路Deprovisioning an ExpressRoute circuit

如果 ExpressRoute 线路服务提供商预配状态为“正在预配”或“已预配”,则必须与服务提供商合作,在他们一端取消预配线路。If the ExpressRoute circuit service provider provisioning state is Provisioning or Provisioned you must work with your service provider to deprovision the circuit on their side. 在服务提供商完成取消设置线路并通知我们之前,我们会继续保留资源并向你收费。We continue to reserve resources and bill you until the service provider completes deprovisioning the circuit and notifies us.

备注

  • 在取消预配前,必须取消所有虚拟网络与 ExpressRoute 线路的链接。You must unlink all virtual networks from the ExpressRoute circuit before deprovisioning. 如果此操作失败,请检查是否有虚拟网络链接到了该线路。If this operation fails, check whether any virtual networks are linked to the circuit.
  • 如果服务提供商已取消设置线路(服务提供商预配状态设置为“未预配”),可以删除线路。If the service provider has deprovisioned the circuit (the service provider provisioning state is set to Not provisioned), you can delete the circuit. 这样就会停止对线路的计费。This stops billing for the circuit.

清理资源Clean up resources

可以选择“删除”图标来删除 ExpressRoute 线路。You can delete your ExpressRoute circuit by selecting the Delete icon. 请先确保提供程序状态为“未预配”,然后再继续操作。Ensure the provider status is Not provisioned before proceeding.

删除线路

后续步骤Next steps

创建线路后,请继续执行下一步:After you create your circuit, continue with the following next step: