如何配置虚拟中心路由How to configure virtual hub routing

虚拟中心可以包含多个网关,例如站点到站点 VPN 网关、ExpressRoute 网关、点到站点网关以及 Azure 防火墙。A virtual hub can contain multiple gateways such as a Site-to-site VPN gateway, ExpressRoute gateway, Point-to-site gateway, and Azure Firewall. 虚拟中心的路由功能由路由器提供,该路由器使用边界网关协议 (BGP) 管理网关之间的所有路由(包括传输路由)。The routing capabilities in the virtual hub are provided by a router that manages all routing, including transit routing, between the gateways using Border Gateway Protocol (BGP). 该路由器还提供与虚拟中心连接的虚拟网络之间的传输连接,最高可支持 50 Gbps 的总吞吐量。This router also provides transit connectivity between virtual networks that connect to a virtual hub and can support up to an aggregate throughput of 50 Gbps. 这些路由功能适用于标准虚拟 WAN 客户。These routing capabilities apply to Standard Virtual WAN customers.

有关详细信息,请参阅关于虚拟中心路由For more information, see About virtual hub routing.

创建路由表Create a route table

  1. 在 Azure 门户中,导航到虚拟中心。In the Azure portal, navigate to the virtual hub.

  2. 在“连接”下,选择“路由” 。Under Connectivity , select Routing . 在“路由”页上,可以看到“默认”和“无”路由表 。On the Routing page, you see the Default and None route tables.

    “路由”页

  3. 选择“+创建路由表”以打开“创建路由表”页 。Select +Create route table to open the Create Route Table page.

  4. 在“创建路由表”页的“基本信息”选项卡上,请填写以下字段。On the Create Route Table page Basics tab, complete the following fields.

    “基本信息”选项卡

    • 名称Name

    • RoutesRoutes

    • 路由名称Route name

    • 目标类型Destination type

    • 目标前缀:可以聚合前缀。Destination prefix : You can aggregate prefixes. 例如:VNet 1:10.1.0.0/24 和 VNet 2:10.1.1.0/24 可以聚合为 10.1.0.0/16。For example: VNet 1: 10.1.0.0/24 and VNet 2: 10.1.1.0/24 can be aggregated as 10.1.0.0/16. 分支路由适用于所有已连接的 VPN 站点、ExpressRoute 线路和用户 VPN 连接。Branch routes apply to all connected VPN sites, ExpressRoute circuits, and User VPN connections.

    • 下一跃点 :虚拟网络连接或 Azure 防火墙的列表。Next hop : A list of virtual network connections, or Azure Firewall.

      如果选择虚拟网络连接,则会看到“配置静态路由”。If you select a virtual network connection, you will see Configure static routes . 这是可选的配置设置。This is an optional configuration setting. 有关详细信息,请参阅配置静态路由For more information, see Configuring static routes.

      下一跃点

  5. 选择“标签”选项卡以配置标签名称。Select the Labels tab to configure label names. 标签提供一种对路由表进行逻辑分组的机制。Labels provide a mechanism to logically group route tables.

    配置标签名称

  6. 选择“关联”选项卡以将连接关联到路由表。Select the Associations tab to associate connections to the route table. 你会看到连接的“分支”、“虚拟网络”和“当前设置” 。You will see Branches , Virtual Networks , and the Current settings of the connections.

    与路由表的关联连接

  7. 选择“传播”选项卡以将路由从连接传播到路由表。Select the Propagations tab to propagate routes from connections to the route table.

    传播路由

  8. 选择“创建”以创建路由表。Select Create to create the route table.

编辑路由表To edit a route table

在 Azure 门户中,找到虚拟中心的路由表。In the Azure portal, locate the route table of your virtual hub. 选择路由表以编辑任何信息。Select the route table to edit any information.

删除路由表To delete a route table

在 Azure 门户中,找到虚拟中心的路由表。In the Azure portal, locate the route table of your virtual hub. 无法删除“默认”或“无”路由表。You cannot delete a Default or None route table. 但是可以删除所有自定义路由表。However, you can delete all custom route tables. 单击“…”,然后选择“删除” 。Click "…" , and then select Delete .

查看有效路由To view effective routes

在 Azure 门户中,找到虚拟中心的路由表。In the Azure portal, locate the route table of your virtual hub. 单击“…”,然后选择“有效路由”以查看所选路由表了解的路由 。Click "…" and select Effective Routes to view routes learned by the selected route table. 在路由表的“有效路由”中会自动填充从连接传播到路由表的路由。Propagated routes from the connection to the route table are automatically populated in Effective Routes of the route table. 有关详细信息,请参阅关于有效路由For more information, see About effective routes.

查看有效路由

为虚拟网络连接设置路由配置To set up routing configuration for a virtual network connection

  1. 在 Azure 门户中,导航到你的虚拟 WAN,然后在“连接”下选择“虚拟网络连接”。 In the Azure portal, navigate to your virtual WAN and, under Connectivity , select Virtual Network Connections .
  2. 选择“+添加连接”。Select +Add connection .
  3. 从下拉列表中选择虚拟网络。Select the virtual network from the dropdown.
  4. 设置要关联到路由表的路由配置。Set up the routing configuration to associate to a route table. 对于“关联路由表”,请从下拉列表中选择路由表。For Associate Route Table , select the route table from the dropdown.
  5. 设置路由配置以传播到一个或多个路由表。Set up the routing configuration to propagate to one or many route tables. 对于“传播到路由表”,请从下拉列表中进行选择。For Propagate to Route Table , select from the dropdown.
  6. 对于“静态路由”,为网络虚拟设备配置静态路由(如果适用)。For Static routes , configure static routes for Network Virtual Appliance (if applicable). 对于虚拟网络连接中的静态路由,虚拟 WAN 支持单个下一跃点 IP。Virtual WAN supports a single next hop IP for static route in a virtual network connection. 例如,如果你有一个单独的虚拟设备用于入口和出口流量,则最好将虚拟设备置于单独的 VNET 中,并将 VNET 连接到虚拟中心。For example, if you have a separate virtual appliance for ingress and egress traffic flows, it would be best to have the virtual appliances in separate VNETs and attach the VNETs to the virtual hub.

设置路由配置

后续步骤Next steps

有关虚拟中心路由的详细信息,请参阅关于虚拟中心路由For more information about virtual hub routing, see About virtual hub routing. 有关虚拟 WAN 的详细信息,请参阅常见问题解答For more information about Virtual WAN, see the FAQ.