帮助我们改善您的体验。

让我们了解您的想法。

您是否能抽出两分钟的时间完成一份问卷调查?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
3 层 VPN 路由设备用户指南
Table of Contents Expand all
list Table of Contents

机器翻译对您有帮助吗?

starstarstarstarstar
Go to English page
免责声明:

我们将使用第三方机器翻译软件翻译本页面。瞻博网络虽已做出相当大的努力提供高质量译文,但无法保证其准确性。如果对译文信息的准确性有任何疑问,请参阅英文版本. 可下载的 PDF 仅提供英文版.

第 3 层 VPN 上的组播

date_range 25-Feb-25

您可以通过运行符合 RFC 4364 的第 3 层 VPN 的网络配置组播路由。本主题概括介绍了组播,并介绍了如何配置设备以支持第 3 层 VPN 中的组播流量。

了解 MVPN 概念和协议

3 层 VPN 组播概述

在第 3 层 VPN 的单播环境中,所有 VPN 状态信息都包含在 PE 路由器中。但是,使用第 3 层 VPN 的组播时,可以通过以下方式之一建立协议无关组播 (PIM) 邻接:

  • 您可以通过层次 [edit routing-instances instance-name protocols pim] 结构级别的 VRF 实例在 CE 路由器和 PE 路由器之间设置 PIM 邻接。您必须包含 group-address 提供商隧道的语句,并指定组播组。VRF 实例中列出的集合点 (RP) 是 VPN 客户 RP (C-RP)。

  • 您还可以通过在 [edit protocols pim] 层次结构级别配置语句来设置主 PIM 实例和 PE 的 IGP 邻接方。您必须将 VRF 实例中指定的组播组添加到主 PIM 实例。整个服务提供商网络中的一组主 PIM 邻接构成了转发路径,该转发路径将成为根植于服务提供商 RP (SP-RP) 的 RP 树。因此,提供商核心内的 P 路由器必须维护 VPN 的组播状态信息。

要使其正常工作,您需要为每个 VPN 使用两种类型的 RP 路由器:

  • C-RP — 位于 VPN 内特定位置的 RP 路由器(可以是服务提供商路由器,也可以是客户路由器)。

  • SP-RP — 位于服务提供商网络中的 RP 路由器。

    注意:

    PE 路由器可以充当 SP-RP 和 C-RP。将这些组播配置任务转移到服务提供商路由器有助于简化客户的组播第 3 层 VPN 配置过程。但是,不支持在同一 PE 路由器上同时配置 SP-RP 和 VPN C-RP。

要通过第 3 层 VPN 配置组播,必须在以下设备上安装隧道服务 物理接口卡 (PIC):

  • 充当 RP 的 P 路由器

  • 配置为运行组播路由的 PE 路由器

  • CE 路由器充当指定路由器或 VPN-RP

有关在第 3 层 VPN 上运行组播的更多信息,请参阅以下文档:

以下各节介绍了组播 VPN 的作。 图 1 说明了所使用的网络拓扑。

图 1:组播拓扑概述 Multicast Topology Overview

向 PE 路由器发送 PIM hello 消息

通过第 3 层 VPN 初始化组播的第一步是将 PIM Hello 消息从 PE 路由器(在本节中称为 PE3)分发到配置了 PIM 的所有其他 PE 路由器。

您可以在 PE3 路由器上的第 3 层 VPN 路由实例上配置 PIM。如果路由平台中安装了隧道服务 PIC,则会创建组播接口。此接口用于在 VRF 路由实例中的 PIM 实例和主 PIM 实例之间进行通信。

向 PE 路由器发送 PIM Hello 消息时,会出现以下情况:

  1. 通过组播接口从 VRF 路由实例发送 PIM Hello 消息。通用路由封装 (GRE) 标头将前置到 PIM Hello 消息。标头消息包括 PE3 路由器的 VPN 组地址和环路地址。

  2. 当数据包通过 PIM 封装接口循环时,PIM 寄存器标头将前置到 Hello 消息中。此报头包含 SP-RP 的目标地址和 PE3 路由器的环路地址。

  3. 数据包将发送至 SP-RP。

  4. SP-RP 从数据包中移除顶部标头,并将剩余的 GRE 封装的 Hello 消息发送到所有 PE 路由器。

  5. 每个 PE 路由器上的主 PIM 实例处理 GRE 封装的数据包。由于 VPN 组地址包含在数据包中,因此主实例会从数据包中移除 GRE 标头,并通过组播接口发送 Hello 消息,其中包含 VRF 路由实例中正确的 VPN 组地址。

向 PE 路由器发送 PIM 加入消息

要从组播网络接收组播广播,CE 路由器必须向 C-RP 发送 PIM 加入消息。本节中描述的过程参见 图 1

CE5 路由器需要从组播源 224.1.1.1 接收组播广播。要接收广播,它会向 C-RP(PE3 路由器)发送 PIM 加入消息:

  1. PIM 加入消息通过组播接口发送,并在消息中前置 GRE 标头。GRE 报头包含 PE3 路由器的 VPN 组 ID 和环路地址。

  2. 然后,PIM 加入消息将通过 PIM 封装接口发送,并将寄存器标头前置到数据包中。寄存器报头包含 SP-RP 的 IP 地址和 PE3 路由器的环路地址。

  3. PIM 加入消息通过单播路由发送到 SP-RP。

  4. 在 SP-RP 上,寄存器标头将被剥离(GRE 报头保留),并将数据包发送到所有 PE 路由器。

  5. PE2 路由器接收数据包,由于到 C-RP 的链路是通过 PE2 路由器,因此它通过组播接口发送数据包,以移除 GRE 报头。

  6. 最后,将 PIM 加入消息发送到 C-RP。

接收组播传输

以下步骤概述了组播传输在整个网络中的传播方式:

  1. 连接到 CE1 路由器的组播源将数据包发送到组 224.1.1.1(VPN 组地址)。数据包封装到 PIM 寄存器中。

  2. 由于此数据包已包含 PIM 标头,因此会通过第 3 层 VPN 通过单播路由转发至 C-RP。

  3. C-RP 移除数据包并将其发送到下游接口(包括返回 CE3 路由器的接口)。CE3 路由器也会将此转发给 PE3 路由器。

  4. 数据包通过 PE2 路由器上的组播接口发送;在此过程中,GRE 标头将前置到数据包。

  5. 接下来,数据包通过 PIM 封装接口发送,其中寄存器标头前置到数据包中。

  6. 然后,数据包被转发到 SP-RP,SP-RP 将移除寄存器标头,保持 GRE 标头不变,并将数据包发送到 PE 路由器。

  7. PE 路由器移除 GRE 报头,并通过发送 PIM 加入消息将数据包转发到请求组播广播的 CE 路由器。

    注意:

    尚未收到来自其连接的 CE 路由器的组播广播请求的 PE 路由器仍会接收广播数据包。这些 PE 路由器在收到数据包时会丢弃数据包。

支持的组播 VPN 标准

Junos OS 实质上支持以下 RFC 和互联网草案,这些规定定义了组播虚拟专用网络 (VPN) 的标准。

  • RFC 6513,MPLS/BGP IP VPN 中的组播

  • RFC 6514,MPLS/BGP IP VPN 中的 BGP 组播编码和过程

  • RFC 6515, 组播 VPN 的 BGP 更新中的 IPv4 和 IPv6 基础架构地址

  • RFC 6625, 组播 VPN 自动发现路由中的通配符

  • 互联网草稿draft-morin-l3vpn-mvpn-fast-failover-06.txt、 组播 VPN 快速上游故障切换

  • 互联网草稿draft-raggarwa-l3vpn-bgp-mvpn-extranet-08.txt、 BGP 组播 VPN (MVPN) 中的外联网

  • RFC 7900,BGP/IP MPLS VPN 中的外部网组播(部分支持)

  • RFC 8534, 在组播 VPN 中使用通配符路由进行显式跟踪(部分支持)

  • RFC 9081, 组播虚拟专用网络 (MVPN) 与组播源目录协议 (MSDP) 源活动路由之间的互作

配置组播第 3 层 VPN

您可以使用 Junos OS 配置两种类型的组播第 3 层 VPN:

  • Rosen 组播 VPN 草案 — Rosen 组播 VPN 草案在 RFC 4364 BGP/MPLS IP 虚拟专用网络 (VPN) 中进行了介绍,并基于 IETF 互联网草案 draft-rosen-vpn-mcast-06.txt 的第二部分 MPLS/BGP VPN 中的组播 (2004 年 4 月到期)。

  • 新一代组播 VPN — 新一代组播 VPN 在 Internet 草案 draft-ietf-l3vpn-2547bis-mcast-bgp-03.txt、MPLS/BGP IP VPN 中用于组播的 BGP 编码draft-ietf-l3vpn-2547bis-mcast-02.txt、MPLS/BGP IP VPN 中的组播中介绍了。

本节介绍如何配置草稿 Rosen 组播 VPN。如果您的网络上已配置了双 PIM 组播 VPN,则会向您提供此信息。有关 BGP MPLS 组播 VPN(也称为新一代组播 VPN)的信息,请参阅 MBGP 组播 VPN 站点

注意:

即使可以在逻辑系统层次结构下配置配置语句,逻辑系统环境中也不支持 Draft-rosen 组播 VPN。

您可以将第 3 层 VPN 配置为使用协议无关组播 (PIM) 路由协议来支持组播流量。要支持组播,您需要在 VPN 内的路由器和服务提供商网络中的路由器上配置 PIM。

每个配置为在第 3 层 VPN 上运行组播的 PE 路由器都必须具有隧道服务 PIC。作为集合点 (RP) 的 P 路由器上也需要通道服务 PIC。正如在非 VPN PIM 环境中一样,作为指定路由器(第一跃点/最后一跳路由器)或 RP 的所有 CE 路由器也需要隧道服务 PIC。

在 CE 和 PE 路由器上的 [edit protocols pim] 层次结构级别配置主 PIM 实例。PE 路由器上的此主 PIM 实例配置应与服务提供商核心路由器上的配置匹配。

您还需要在 PE 路由器上的层次结构级别为第 3 层 VPN [edit routing-instances routing-instance-name protocols pim] 配置 PIM 实例。这将为指示的路由实例创建一个 PIM 实例。PE 路由器上 PIM 实例的配置应与 PE 路由器连接到的 CE 路由器上配置的 PIM 实例匹配。

有关如何配置 PIM 的信息,请参阅 组 播协议用户指南

包括 vpn-apply-export 语句以配置在服务提供商网络中为 VPN 指定的组地址。此地址对于每个 VPN 必须是唯一的,并在连接到同一 VPN 的所有 PE 路由器的 VRF 路由实例上配置。它确保组播流量仅传输到指定的 VPN。

包括以下 vpn-apply-export 语句:

content_copy zoom_out_map

有关可在其中配置此语句的层次结构级别列表,请参阅此语句的语句摘要部分。

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name protocols pim]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name protocols pim]

用于组播的第 3 层 VPN 配置的其余部分是常规配置,本手册的其他部分对此进行了介绍。在 VPN 环境中激活组播所需的大多数特定配置任务都涉及 PIM。

示例:在 Draft-Rosen 组播 VPN 上配置 PIM 加入负载平衡

此示例说明如何为运行 Draft-Rosen 组播 VPN (MVPN) 的提供商边缘 (PE) 路由器上具有不相等的内部网关协议 (IGP) 指标和协议无关组播 (PIM) 加入负载平衡的外部和内部虚拟专用网络 (VPN) 路由配置多路径路由。当 PE 路由器同时具有指向源或集合点 (RP) 的外部 BGP (EBGP) 和内部 BGP (IBGP) 路径时,此功能允许客户 PIM (C-PIM) 加入消息在外部和内部 BGP (EIBGP) 上行路径之间进行负载平衡。

要求

此示例需要以下硬件和软件组件:

  • 这三台路由器可以是 M Series 多服务边缘路由器、MX 系列 5G 通用路由平台或 T Series 核心路由器的组合。

  • 在所有设备上运行 Junos OS 12.1 或更高版本。

开始之前:

  1. 配置设备接口。

  2. 在所有 PE 路由器上配置以下路由协议:

    • OSPF

    • MPLS 的比较

    • 自民党

    • PIM

    • 边界网关协议

  3. 配置组播 VPN。

概述和拓扑

Junos OS 12.1 及更高版本支持多路径配置以及 PIM 加入负载平衡。如果 PE 路由器具有指向源(或 RP)的 EBGP 和 IBGP 路径,则允许在不相等的 EIBGP 路由之间均衡 C-PIM 加入消息。在以前的版本中,仅使用活动 EBGP 路径来发送加入消息。此功能适用于 IPv4 C-PIM 加入消息。

在负载平衡期间,如果 PE 路由器丢失了一条或多条朝向源(或 RP)的 EBGP 路径,则之前使用 EBGP 路径的 C-PIM 加入消息将移至组播隧道接口,并根据散列机制选择组播隧道接口上的反向路径转发 (RPF) 邻接方。

在发现通向源(或 RP)的第一条 EBGP 路径时,只有新的加入消息会在 EIBGP 路径之间实现负载均衡,而组播隧道接口上的现有加入消息则不受影响。

尽管多路径 PIM 加入负载平衡的主要目标是将不相等的 EIBGP 路径用于组播流量,但如果当远程 PE 路由器存在一条或多条用于不同组的加入消息时,PE 路由器仅选择 EBGP 路径,则可以避免潜在的加入环路。如果远程 PE 路由器的加入消息是在 PE 路由器选择 IBGP 作为上行路径之后到达的,则可以通过将选定的上行路径更改为 EBGP 来断开潜在环路。

注意:

在平滑路由引擎切换 (GRES) 期间,C-PIM 加入消息的 EIBGP 路径选择可能会有所不同,因为系统会根据新路由引擎从 CE 和 PE 邻接方收到的加入消息再次执行上游接口选择。这可能会导致组播流量中断,具体取决于接收的加入消息数量和正常重启时网络上的负载。但是,不间断活动路由功能不受支持,并且对 Draft-Rosen MVPN 场景中的组播流量没有影响。

在此示例中,PE1 和 PE2 是配置了多路径 PIM 加入负载均衡功能的上游 PE 路由器。路由器 PE1 和 PE2 各有一条 EBGP 路径和一条朝向源的 IBGP 路径。连接到客户边缘 (CE) 路由器的源和接收器是免费的 BSD 主机。

在具有指向源(或 RP)的 EIBGP 路径的 PE 路由器(如 PE1 和 PE2)上,按如下方式执行 PIM 加入负载平衡:

  1. 执行现有的基于连接计数的负载平衡时,算法将首先选择负载最小的 C-PIM 接口。如果所有 C-PIM 接口上的负载相等或都没有负载,则加入消息将在可用的上游接口上平均分布。

    图 2 中,如果 PE1 路由器接收来自 CE2 路由器的 PIM 加入消息,并且如果朝向源的 EBGP 和 IBGP 路径上的负载相等或没有负载,则加入消息将在 EIBGP 路径上实现负载均衡。

  2. 如果选定的负载最少接口是组播隧道接口,则如果客户加入 (C-join) 消息的下游列表已包含组播隧道接口,则可能存在潜在的加入环路。在这种情况下,EBGP 路径中负载最小的接口将被选为 C 联接消息的上游接口。

    假设 IBGP 路径的负载最小,PE1 路由器使用 IBGP 路径向 PE2 发送加入消息。如果来自 PE3 路由器的 PIM 加入消息到达 PE1,则 PE3 的 C 加入消息的下游列表已包含组播隧道接口,这可能会导致潜在的加入环路,因为上行接口和下行接口都是组播隧道接口。在这种情况下,PE1 仅使用 EBGP 路径发送加入消息。

  3. 如果选定的负载最少的接口是组播隧道接口,并且组播隧道接口不在 C 联接消息的下游列表中,则不需要环路预防机制。如果任何 PE 路由器已通告数据组播分布树 (MDT) 类型、长度和值 (TLV),则该 PE 路由器将被选为上游邻接方。

    当 PE1 路由器使用负载最小的 IBGP 路径向 PE2 发送加入消息时,如果 PE3 将其加入消息发送到 PE2,则不会创建加入环路。

  4. 如果没有数据 MDT TLV 对应于 C-join 消息,则组播隧道接口上负载最小的邻接方将被选为上游接口。

在只有指向源(或 RP)的 IBGP 路径的 PE 路由器(如 PE3)上,按如下方式执行 PIM 加入负载平衡:

  1. PE 路由器仅找到作为 RPF 接口的组播隧道接口,并通过组播隧道接口上的 C-PIM 邻接方进行负载平衡。

    路由器 PE3 对从 CE4 路由器接收的 PIM 加入消息进行负载平衡,这些消息穿过 IBGP 路径到 PE1 和 PE2 路由器。

  2. 如果任何 PE 路由器已播发与 C 联接消息对应的数据 MDT TLV,则会选择该 PE 路由器作为 RPF 邻接方。

对于特定的 C 组播流,至少有一个具有指向源(或 RP)的 EIBGP 路径的 PE 路由器必须仅使用 EBGP 路径,以避免或中断加入环路。由于环路避免机制,当下游列表中已存在组播隧道接口时,PE 路由器只能在 EIBGP 路径中进行选择。

图 2 中,假设 CE2 主机有兴趣接收来自源的流量,并且 CE2 为不同的组(组 1 的组地址为 203.0.113.1,组 2 的组地址为 203.0.113.2)发起多条 PIM 加入消息,则两个组的加入消息都将到达 PE1 路由器。

然后,路由器 PE1 在 EIBGP 路径之间向源平均分配连接消息。假设第 1 组加入消息使用 EBGP 路径直接发送至 CE1 路由器,并且第 2 组加入消息使用 IBGP 路径发送至 PE2 路由器,则 PE1 和 PE2 分别成为第 1 组和第 2 组加入消息的 RPF 邻接方。

当 CE3 路由器启动组 1 和组 2 PIM 加入消息时,两个组的加入消息都将到达 PE2 路由器。然后,路由器 PE2 在 EIBGP 路径之间向源平均分配连接消息。由于 PE2 是第 2 组加入消息的 RPF 邻接方,因此它会使用 EBGP 路径将第 2 组加入消息直接发送至 CE1 路由器。使用 IBGP 路径将第 1 组加入消息发送到 PE1 路由器。

但是,如果 CE4 路由器启动多个第 1 组和第 2 组 PIM 加入消息,则无法控制在 PE3 路由器上接收的这些加入消息如何分发以到达源。PE3 选择 RPF 邻接可能会影响 EIBGP 路径上的 PIM 加入负载平衡。

  • 如果 PE3 向 PE1 发送第 1 组加入消息,向 PE2 发送第 2 组加入消息,则 RPF 邻接方没有变化。因此,不会创建连接环路。

  • 如果 PE3 向 PE2 发送第 1 组加入消息,向 PE1 发送第 2 组加入消息,则不同组的 RPF 邻接会发生更改,从而导致创建连接环路。为避免潜在的加入环路,PE1 和 PE2 不考虑使用 IBGP 路径来发送从 PE3 路由器接收的加入消息。相反,仅使用 EBGP 路径将加入消息直接发送至 CE1 路由器。

Draft-Rosen MVPN 中的环路避免机制具有以下限制:

  • 由于远程 PE 路由器上加入消息的到达时间决定了加入消息的分发,因此就加入计数而言,分布可能次优。

  • 由于无法避免加入环路,并且可能由于加入消息的计时而发生,因此后续的 RPF 接口更改会导致组播流量丢失。通过实现 PIM 先合后断路功能,可以避免这种情况。

    PIM 先合后断功能是一种在 Draft-Rosen MVPN 中检测和断开 C-PIM 连接环的方法。在建立 PIM 邻接方关系之后,但在更新相关的组播转发条目之前,C-PIM 加入消息将发送到新的 RPF 邻接方。尽管上游 RPF 邻接方会更新其组播转发条目并开始向下游发送组播流量,但在使用新的 RPF 邻接方更新组播转发条目之前,下游路由器不会转发组播流量(因为 RPF 检查失败)。这有助于确保在切换组播转发条目的 RPF 接口之前,组播流量在新路径上可用。

图 2:Draft-Rosen MVPN PIM Join Load Balancing on Draft-Rosen MVPN 上的 PIM 加入负载平衡

配置

CLI 快速配置

要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到 [编辑] 层次结构级别的 CLI 中。

PE1型

content_copy zoom_out_map
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 interface ge-5/0/4.0
set routing-instances vpn1 interface ge-5/2/0.0
set routing-instances vpn1 interface lo0.1
set routing-instances vpn1 route-distinguisher 1:1
set routing-instances vpn1 vrf-target target:1:1
set routing-instances vpn1 routing-options multipath vpn-unequal-cost equal-external-internal
set routing-instances vpn1 protocols bgp export direct
set routing-instances vpn1 protocols bgp group bgp type external
set routing-instances vpn1 protocols bgp group bgp local-address 192.0.2.4
set routing-instances vpn1 protocols bgp group bgp family inet unicast
set routing-instances vpn1 protocols bgp group bgp neighbor 192.0.2.5 peer-as 3
set routing-instances vpn1 protocols bgp group bgp1 type external
set routing-instances vpn1 protocols bgp group bgp1 local-address 192.0.2.1
set routing-instances vpn1 protocols bgp group bgp1 family inet unicast
set routing-instances vpn1 protocols bgp group bgp1 neighbor 192.0.2.2 peer-as 4
set routing-instances vpn1 protocols pim group-address 198.51.100.1
set routing-instances vpn1 protocols pim rp static address 10.255.8.168
set routing-instances vpn1 protocols pim interface all
set routing-instances vpn1 protocols pim join-load-balance

PE2

content_copy zoom_out_map
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 interface ge-2/0/3.0
set routing-instances vpn1 interface ge-4/0/5.0
set routing-instances vpn1 interface lo0.1
set routing-instances vpn1 route-distinguisher 2:2
set routing-instances vpn1 vrf-target target:1:1
set routing-instances vpn1 routing-options multipath vpn-unequal-cost equal-external-internal
set routing-instances vpn1 protocols bgp export direct
set routing-instances vpn1 protocols bgp group bgp1 type external
set routing-instances vpn1 protocols bgp group bgp1 local-address 10.90.10.1 
set routing-instances vpn1 protocols bgp group bgp1 family inet unicast
set routing-instances vpn1 protocols bgp group bgp1 neighbor 10.90.10.2 peer-as 45
set routing-instances vpn1 protocols bgp group bgp type external
set routing-instances vpn1 protocols bgp group bgp local-address 10.50.10.2
set routing-instances vpn1 protocols bgp group bgp family inet unicast
set routing-instances vpn1 protocols bgp group bgp neighbor 10.50.10.1 peer-as 4
set routing-instances vpn1 protocols pim group-address 198.51.100.1
set routing-instances vpn1 protocols pim rp static address 10.255.8.168
set routing-instances vpn1 protocols pim interface all
set routing-instances vpn1 protocols pim join-load-balance

程序

分步过程

下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 在配置模式下使用 CLI 编辑器。要配置 PE1 路由器,请执行以下作:

注意:

修改每台路由器的相应接口名称、地址和任何其他参数后,对 MVPN 域中的每台瞻博网络路由器重复此过程。

  1. 配置 VPN 路由和转发 (VRF) 实例。

    content_copy zoom_out_map
    [edit routing-instances vpn1]
    user@PE1# set instance-type vrf
    user@PE1# set interface ge-5/0/4.0
    user@PE1# set interface ge-5/2/0.0
    user@PE1# set interface lo0.1
    user@PE1# set route-distinguisher 1:1
    user@PE1# set vrf-target target:1:1
    
  2. 为 VRF 实例启用与协议无关的负载平衡。

    content_copy zoom_out_map
    [edit routing-instances vpn1]
    user@PE1# set routing-options multipath vpn-unequal-cost equal-external-internal
    
  3. 配置 BGP 组和邻居以启用 PE 到 CE 路由。

    content_copy zoom_out_map
    [edit routing-instances vpn1 protocols]
    user@PE1# set bgp export direct
    user@PE1# set bgp group bgp type external
    user@PE1# set bgp group bgp local-address 192.0.2.4
    user@PE1# set bgp group bgp family inet unicast
    user@PE1# set bgp group bgp neighbor 192.0.2.5 peer-as 3
    user@PE1# set bgp group bgp1 type external
    user@PE1# set bgp group bgp1 local-address 192.0.2.1
    user@PE1# set bgp group bgp1 family inet unicast
    user@PE1# set bgp group bgp1 neighbor 192.0.2.2 peer-as 4
    
  4. 配置 PIM 以启用 PE 到 CE 组播路由。

    content_copy zoom_out_map
    [edit routing-instances vpn1 protocols]
    user@PE1# set pim group-address 198.51.100.1
    user@PE1# set pim rp static address 10.255.8.168
    
  5. 在所有网络接口上启用 PIM。

    content_copy zoom_out_map
    [edit routing-instances vpn1 protocols]
    user@PE1# set pim interface all
    
  6. 为 VRF 实例启用 PIM 加入负载平衡。

    content_copy zoom_out_map
    [edit routing-instances vpn1 protocols]
    user@PE1# set pim join-load-balance
    
结果

在配置模式下,输入 show routing-instances 命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。

content_copy zoom_out_map
routing-instances {
    vpn1 {
        instance-type vrf;
        interface ge-5/0/4.0;
        interface ge-5/2/0.0;
        interface lo0.1;
        route-distinguisher 1:1;
        vrf-target target:1:1;
        routing-options {
            multipath {
                vpn-unequal-cost equal-external-internal;
            }
        }
        protocols {
            bgp {
                export direct;
                group bgp {
                    type external;
                    local-address 192.0.2.4;
                    family inet {
                        unicast;
                    }
                    neighbor 192.0.2.5 {
                        peer-as 3;
                    }
                }
                group bgp1 {
                    type external;
                    local-address 192.0.2.1;
                    family inet {
                        unicast;
                    }
                    neighbor 192.0.2.2 {
                        peer-as 4;
                    }
                }
            }
            pim {
                group-address 198.51.100.1;
                rp {
                    static {
                        address 10.255.8.168;
                    }
                }
                interface all;
                join-load-balance;
            }
        }
    }
}

如果完成设备配置,请从配置模式进入 提交

验证

确认配置工作正常。

验证不同联接消息组的 PIM 联接负载均衡

目的

验证 PE1 路由器上接收的不同加入消息组的 PIM 加入负载平衡。

行动

在作模式下,运行 show pim join instance extensive 命令。

content_copy zoom_out_map
user@PE1>show pim join instance extensive
 Instance: PIM.vpn1 Family: INET
 R = Rendezvous Point Tree, S = Sparse, W = Wildcard

 Group: 203.0.113.1
     Source: *
     RP: 10.255.8.168
     Flags: sparse,rptree,wildcard
     Upstream interface: ge-5/2/0.1
     Upstream neighbor: 10.10.10.2
     Upstream state: Join to RP
     Downstream neighbors: 
         Interface: ge-5/0/4.0
             10.40.10.2 State: Join Flags: SRW Timeout: 207

 Group: 203.0.113.2
     Source: *
     RP: 10.255.8.168
     Flags: sparse,rptree,wildcard
     Upstream interface:  mt-5/0/10.32768
     Upstream neighbor: 19.19.19.19
     Upstream state: Join to RP
     Downstream neighbors:
         Interface: ge-5/0/4.0
             10.40.10.2 State: Join Flags: SRW Timeout: 207

 Group: 203.0.113.3
     Source: *
     RP: 10.255.8.168
     Flags: sparse,rptree,wildcard
     Upstream interface: ge-5/2/0.1
     Upstream neighbor: 10.10.10.2
     Upstream state: Join to RP
     Downstream neighbors:
         Interface: ge-5/0/4.0
             10.40.10.2 State: Join Flags: SRW Timeout: 207

 Group: 203.0.113.4
     Source: *
     RP: 10.255.8.168
     Flags: sparse,rptree,wildcard
     Upstream interface:  mt-5/0/10.32768
     Upstream neighbor: 19.19.19.19
     Upstream state: Join to RP
     Downstream neighbors:
         Interface: ge-5/0/4.0
             10.40.10.2 State: Join Flags: SRW Timeout: 207
意义

输出显示 PE1 路由器如何对四个不同组的 C-PIM 加入消息进行负载平衡。

  • 对于组 1(组地址:203.0.113.1)和组 3(组地址:203.0.113.3)加入消息,PE1 路由器已选择朝向 CE1 路由器的 EBGP 路径以发送加入消息。

  • 对于第 2 组(组地址:203.0.113.2)和第 4 组(组地址:203.0.113.4)加入消息,PE1 路由器已选择朝向 PE2 路由器的 IBGP 路径以发送加入消息。

MBGP 组播 VPN 站点

MBGP MVPN 的主要特征是:

  • 它们扩展了第 3 层 VPN 服务 (RFC 4364),以支持第 3 层 VPN 服务提供商的 IP 组播。

  • 它们遵循与 RFC 4364 为单播 VPN 指定的相同架构。 具体而言,BGP 用作组播 VPN 的提供商边缘 (PE) 路由器到 PE 路由器控制平面。

  • 它们消除了对组播 VPN 的虚拟路由器 (VR) 模型(如互联网草案 draft-rosen-vpn-mcast, MPLS/BGP VPN 中的组播中所指定)和 RFC 4364 模型对单播 VPN 的要求。

  • 它们依靠基于 RFC 4364 的单播,并带有 AS 内部和 AS 间通信的扩展。

MBGP MVPN 定义两种类型的站点集,发送方站点集和接收方站点集。这些站点具有以下属性:

  • 发送站点集中的主机可以为接收站点集中的接收方发起组播流量。

  • 接收方站点集之外的接收方不应能够接收此流量。

  • 接收方站点集中的主机可以接收由发送方站点集中的任何主机发出的组播流量。

  • 接收方站点集中的主机不应能够接收由不在发送方站点集中的任何主机发出的组播流量。

站点可以同时位于发送站点集和接收站点集中,因此此类站点中的主机既可以发起组播流量,也可以接收组播流量。例如,发送方站点集可以与接收方站点集相同,在这种情况下,所有站点都可以相互发起和接收组播流量。

给定 MBGP MVPN 中的站点可能位于同一组织内,也可能位于不同组织中,这意味着 MBGP MVPN 可以是 Intranet 或 Extranet。给定站点可以位于多个 MBGP MVPN 中,因此 MBGP MVPN 可能会重叠。并非给定 MBGP MVPN 的所有站点都必须连接到同一服务提供商,这意味着 MBGP MVPN 可以跨越多个服务提供商。

Junos OS 11.1R2、11.2R2 和 11.4 版支持 Junos Trio 芯片组上的 MVPN 外联网功能或重叠 MVPN 的功能奇偶校验。

查看 MBGP MVPN 的另一种方法是说 MBGP MVPN 由一组管理策略定义。这些策略确定发送方站点集和接收方站点集。这些策略由 MBGP MVPN 客户建立,但由使用现有 BGP 和 MPLS VPN 基础架构的服务提供商实施。

示例:配置 MBGP 组播 VPN

此示例提供跨多协议 BGP (MBGP) 第 3 层虚拟专用网配置组播服务的分步过程。(也称为新一代第 3 层组播 VPN)

要求

此示例使用以下硬件和软件组件:

  • Junos OS 9.2 或更高版本

  • 五台 M Series、T Series、TX 系列或 MX 系列瞻博网络路由器

  • 一个能够发送组播流量并支持互联网组管理协议 (IGMP) 的主机系统

  • 一个能够接收组播流量并支持 IGMP 的主机系统

根据您使用的设备,您可能需要配置静态路由,以便:

  • 组播发送方

  • 发送方在组播接收器上连接到的快速以太网接口

  • 组播接收器

  • 组播发送方上接收器连接到的快速以太网接口

概述和拓扑

此示例说明如何配置以下技术:

  • IPv4

  • 边界网关协议

  • OSPF

  • 回复

  • MPLS 的比较

  • PIM 稀疏模式

  • 静态 RP

拓扑学

网络的拓扑如 图 3 所示。

图 3:第 3 层 VPN 组播示例拓扑 Multicast Over Layer 3 VPN Example Topology

配置

注意:

在任何配置会话中,最好定期验证是否可以使用 commit check 命令提交配置。

在此示例中,将使用以下命令提示符识别正在配置的路由器:

  • CE1 识别客户边缘 1 (CE1) 路由器

  • PE1 标识提供商边缘 1 (PE1) 路由器

  • P 标识提供商核心 (P) 路由器

  • CE2 识别客户边缘 2 (CE2) 路由器

  • PE2 标识提供商边缘 2 (PE2) 路由器

要为 图 3 所示的网络配置 MBGP 组播 VPN,请执行以下步骤:

配置接口

分步过程

下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器

  1. 在每台路由器上,在环路逻辑接口 0 ()lo0.0 上配置一个 IP 地址。

    content_copy zoom_out_map
    [edit interfaces]
    user@CE1# set lo0 unit 0 family inet address 192.168.6.1/32 primary
    
    user@PE1# set lo0 unit 0 family inet address 192.168.7.1/32 primary
    
    user@P# set lo0 unit 0 family inet address 192.168.8.1/32 primary
    
    user@PE2# set lo0 unit 0 family inet address 192.168.9.1/32 primary
    
    user@CE2# set lo0 unit 0 family inet address 192.168.0.1/32 primary
    

    show interfaces terse使用命令验证环路逻辑接口上的 IP 地址是否正确。

  2. 在 PE 和 CE 路由器上,配置快速以太网接口上的 IP 地址和协议家族。指定 inet 协议家族类型。

    content_copy zoom_out_map
    [edit interfaces]
    user@CE1# set fe-1/3/0 unit 0 family inet address 10.10.12.1/24
    user@CE1# set fe-0/1/0 unit 0 family inet address 10.0.67.13/30
    
    [edit interfaces]
    user@PE1# set fe-0/1/0 unit 0 family inet address 10.0.67.14/30
    
    [edit interfaces]
    user@PE2# set fe-0/1/0 unit 0 family inet address 10.0.90.13/30
    
    [edit interfaces]
    user@CE2# set fe-0/1/0 unit 0 family inet address 10.0.90.14/30
    user@CE2# set fe-1/3/0 unit 0 family inet address 10.10.11.1/24
    

    show interfaces terse使用命令验证快速以太网接口上的 IP 地址是否正确。

  3. 在 PE 和 P 路由器上,配置 ATM 接口的 VPI 和最大虚拟电路数。如果直接连接的 ATM 接口上的默认 PIC 类型不同,请将 PIC 类型配置为相同。配置逻辑接口 VCI、协议家族、本地 IP 地址和目标 IP 地址。

    content_copy zoom_out_map
    [edit interfaces]
    user@PE1# set at-0/2/0 atm-options pic-type atm1 
    user@PE1# set at-0/2/0 atm-options vpi 0 maximum-vcs 256
    user@PE1# set at-0/2/0 unit 0 vci 0.128
    user@PE1# set at-0/2/0 unit 0 family inet address 10.0.78.5/32 destination 10.0.78.6
    
    [edit interfaces]
    user@P# set at-0/2/0 atm-options pic-type atm1
    user@P# set at-0/2/0 atm-options vpi 0 maximum-vcs 256
    user@P# set at-0/2/0 unit 0 vci 0.128
    user@P# set at-0/2/0 unit 0 family inet address 10.0.78.6/32 destination 10.0.78.5
    user@P# set at-0/2/1 atm-options pic-type atm1
    user@P# set at-0/2/1 atm-options vpi 0 maximum-vcs 256
    user@P# set at-0/2/1 unit 0 vci 0.128
    user@P# set at-0/2/1 unit 0 family inet address 10.0.89.5/32 destination 10.0.89.6
    
    [edit interfaces]
    user@PE2# set at-0/2/1 atm-options pic-type atm1
    user@PE2# set at-0/2/1 atm-options vpi 0 maximum-vcs 256
    user@PE2# set at-0/2/1 unit 0 vci 0.128
    user@PE2# set at-0/2/1 unit 0 family inet address 10.0.89.6/32 destination 10.0.89.5
    

    show configuration interfaces使用命令验证 ATM 接口的 VPI 和最大 VC 数是否正确,以及逻辑接口 VCI、协议族、本地 IP 地址和目标 IP 地址是否正确。

配置 OSPF

分步过程
  1. 在 P 和 PE 路由器上,配置 OSPF 的提供程序实例。指定 lo0.0 面向 ATM 核心的逻辑接口。PE 路由器上的 OSPF 提供程序实例与其他 PE 路由器和路由器 P 上的 OSPF 邻接方形成邻接。

    content_copy zoom_out_map
    user@PE1# set protocols ospf area 0.0.0.0 interface at-0/2/0.0
    user@PE1# set protocols ospf area 0.0.0.0 interface lo0.0
    
    user@P# set protocols ospf area 0.0.0.0 interface lo0.0
    user@P# set protocols ospf area 0.0.0.0 interface all
    user@P# set protocols ospf area 0.0.0.0 interface fxp0 disable
    
    user@PE2# set protocols ospf area 0.0.0.0 interface lo0.0
    user@PE2# set protocols ospf area 0.0.0.0 interface at-0/2/1.0
    

    show ospf interfaces使用命令验证lo0.0是否为 OSPF 配置了面向 ATM 核心的逻辑接口。

  2. 在 CE 路由器上,配置 OSPF 的客户实例。指定环路和快速以太网逻辑接口。CE 路由器上的 OSPF 客户实例与 PE 路由器上 OSPF 的 VPN 路由实例内的邻接方形成邻接。

    content_copy zoom_out_map
    user@CE1# set protocols ospf area 0.0.0.0 interface fe-0/1/0.0
    user@CE1# set protocols ospf area 0.0.0.0 interface fe-1/3/0.0
    user@CE1# set protocols ospf area 0.0.0.0 interface lo0.0
    
    user@CE2# set protocols ospf area 0.0.0.0 interface fe-0/1/0.0
    user@CE2# set protocols ospf area 0.0.0.0 interface fe-1/3/0.0
    user@CE2# set protocols ospf area 0.0.0.0 interface lo0.0
    

    show ospf interfaces使用命令验证是否已将正确的环路和快速以太网逻辑接口添加到 OSPF 协议中。

  3. 在 P 和 PE 路由器上,为 OSPF 的提供商实例配置 OSPF 流量工程支持。

    shortcuts 语句使 OSPF 的主实例可以使用标签交换路径作为下一跃点。

    content_copy zoom_out_map
    user@PE1# set protocols ospf traffic-engineering shortcuts
    
    user@P# set protocols ospf traffic-engineering shortcuts
    
    user@PE2# set protocols ospf traffic-engineering shortcuts
    

    show ospf overview使用或 show configuration protocols ospf 命令验证是否启用了流量工程支持。

配置 BGP

分步过程
  1. 在路由器 P 上,为 VPN 配置 BGP。本地地址即为本地 lo0.0 地址。邻接方地址即为 PE 路由器的 lo0.0 地址。

    unicast 语句使路由器可以使用 BGP 通告网络层可达性信息 (NLRI)。该 signaling 语句允许路由器使用 BGP 作为 VPN 的信令协议。

    content_copy zoom_out_map
    user@P# set protocols bgp group group-mvpn type internal
    user@P# set protocols bgp group group-mvpn local-address 192.168.8.1
    user@P# set protocols bgp group group-mvpn family inet unicast
    user@P# set protocols bgp group group-mvpn family inet-mvpn signaling
    user@P# set protocols bgp group group-mvpn neighbor 192.168.9.1
    user@P# set protocols bgp group group-mvpn neighbor 192.168.7.1
    

    show configuration protocols bgp使用命令验证路由器是否已配置为使用 BGP 播发 NLRI。

  2. 在 PE 和 P 路由器上,配置 BGP 本地自治系统编号。

    content_copy zoom_out_map
    user@PE1# set routing-options autonomous-system 0.65010
    
    user@P# set routing-options autonomous-system 0.65010
    
    user@PE2# set routing-options autonomous-system 0.65010
    

    show configuration routing-options使用命令验证 BGP 本地自治系统编号是否正确。

  3. 在 PE 路由器上,为 VPN 配置 BGP。将本地地址配置为本地 lo0.0 地址。邻接方地址是 lo0.0 路由器 P 和另一个 PE 路由器 PE2 的地址。

    content_copy zoom_out_map
    user@PE1# set protocols bgp group group-mvpn type internal
    user@PE1# set protocols bgp group group-mvpn local-address 192.168.7.1
    user@PE1# set protocols bgp group group-mvpn family inet-vpn unicast
    user@PE1# set protocols bgp group group-mvpn family inet-mvpn signaling
    user@PE1# set protocols bgp group group-mvpn neighbor 192.168.9.1
    user@PE1# set protocols bgp group group-mvpn neighbor 192.168.8.1
    
    user@PE2# set protocols bgp group group-mvpn type internal
    user@PE2# set protocols bgp group group-mvpn local-address 192.168.9.1
    user@PE2# set protocols bgp group group-mvpn family inet-vpn unicast
    user@PE2# set protocols bgp group group-mvpn family inet-mvpn signaling
    user@PE2# set protocols bgp group group-mvpn neighbor 192.168.7.1
    user@PE2# set protocols bgp group group-mvpn neighbor 192.168.8.1
    

    show bgp group使用命令验证 BGP 配置是否正确。

  4. 在 PE 路由器上,配置将 BGP 路由导出到 OSPF 的策略。

    content_copy zoom_out_map
    user@PE1# set policy-options policy-statement bgp-to-ospf from protocol bgp
    user@PE1# set policy-options policy-statement bgp-to-ospf then accept
    
    user@PE2# set policy-options policy-statement bgp-to-ospf from protocol bgp
    user@PE2# set policy-options policy-statement bgp-to-ospf then accept
    

    show policy bgp-to-ospf使用命令验证策略是否正确。

配置 RSVP

分步过程
  1. 在 PE 路由器上,在参与 LSP 的接口上启用 RSVP。配置快速以太网和 ATM 逻辑接口。

    content_copy zoom_out_map
    user@PE1# set protocols rsvp interface fe-0/1/0.0
    user@PE1# set protocols rsvp interface at-0/2/0.0
    
    user@PE2# set protocols rsvp interface fe-0/1/0.0 
    user@PE2# set protocols rsvp interface at-0/2/1.0
    
  2. 在路由器 P 上,在加入 LSP 的接口上启用 RSVP。配置 ATM 逻辑接口。

    content_copy zoom_out_map
    user@P# set protocols rsvp interface at-0/2/0.0
    user@P# set protocols rsvp interface at-0/2/1.0
    

    show configuration protocols rsvp使用命令验证 RSVP 配置是否正确。

配置 MPLS

分步过程
  1. 在 PE 路由器上,将 MPLS LSP 配置到作为 LSP 出口点的 PE 路由器。指定 LSP 另一端路由器上接口的 lo0.0 IP 地址。在 ATM、快速以太网和 lo0.0 接口上配置 MPLS。

    为了在故障排除时帮助识别每个 LSP,请在每个 PE 路由器上配置不同的 LSP 名称。在此示例中,我们将该名称 to-pe2 用作在 PE1 上配置的 LSP 的名称,以及 to-pe1 在 PE2 上配置的 LSP 的名称。

    content_copy zoom_out_map
    user@PE1# set protocols mpls label-switched-path to-pe2 to 192.168.9.1
    user@PE1# set protocols mpls interface fe-0/1/0.0
    user@PE1# set protocols mpls interface at-0/2/0.0
    user@PE1# set protocols mpls interface lo0.0
    
    user@PE2# set protocols mpls label-switched-path to-pe1 to 192.168.7.1
    user@PE2# set protocols mpls interface fe-0/1/0.0
    user@PE2# set protocols mpls interface at-0/2/1.0
    user@PE2# set protocols mpls interface lo0.0
    

    show configuration protocols mpls使用和 show route label-switched-path to-pe1 命令验证 MPLS 和 LSP 配置是否正确。

    完成配置后,使用 show mpls lsp name to-pe1show mpls lsp name to-pe2 命令验证 LSP 是否正常运行。

  2. 在路由器 P 上,启用 MPLS。指定连接到 PE 路由器的 ATM 接口。

    content_copy zoom_out_map
    user@P# set protocols mpls interface at-0/2/0.0
    user@P# set protocols mpls interface at-0/2/1.0
    

    show mpls interface使用命令验证 ATM 接口上是否启用了 MPLS。

  3. 在 PE 和 P 路由器上,在与 LSP 关联的 ATM 接口上配置协议家族。指定 mpls 协议家族类型。

    content_copy zoom_out_map
    user@PE1# set interfaces at-0/2/0 unit 0 family mpls
    
    user@P# set interfaces at-0/2/0 unit 0 family mpls
    user@P# set interfaces at-0/2/1 unit 0 family mpls
    
    user@PE2# set interfaces at-0/2/1 unit 0 family mpls
    

    show mpls interface使用命令验证是否在与 LSP 关联的 ATM 接口上启用了 MPLS 协议家族。

配置 VRF 路由实例

分步过程
  1. 在 PE 路由器上,为 VPN 配置路由实例并指定实例类型 vrf 。添加快速以太网和 lo0.1 面向客户的接口。配置 OSPF 的 VPN 实例,并包含 BGP 到 OSPF 的导出策略。

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a instance-type vrf
    user@PE1# set routing-instances vpn-a interface lo0.1
    user@PE1# set routing-instances vpn-a interface fe-0/1/0.0
    user@PE1# set routing-instances vpn-a protocols ospf export bgp-to-ospf
    user@PE1# set routing-instances vpn-a protocols ospf area 0.0.0.0 interface all
    
    user@PE2# set routing-instances vpn-a instance-type vrf
    user@PE2# set routing-instances vpn-a interface lo0.1
    user@PE2# set routing-instances vpn-a interface fe-0/1/0.0
    user@PE2# set routing-instances vpn-a protocols ospf export bgp-to-ospf
    user@PE2# set routing-instances vpn-a protocols ospf area 0.0.0.0 interface all
    

    show configuration routing-instances vpn-a使用命令验证路由实例配置是否正确。

  2. 在 PE 路由器上,为路由实例配置路由识别符。路由识别符允许路由器区分用作 VPN 路由的两个相同的 IP 前缀。在每个 PE 路由器上配置不同的路由识别符。此示例在 PE1 上使用 65010:1,在 PE2 上使用 65010:2。

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a route-distinguisher 65010:1
    
    user@PE2# set routing-instances vpn-a route-distinguisher 65010:2
    

    show configuration routing-instances vpn-a使用命令验证路由识别符是否正确。

  3. 在 PE 路由器上,配置默认 VRF 导入和导出策略。基于该配置,BGP 会自动生成与 VRF 导入策略中引用的路由目标相对应的本地路由。此示例使用 2:1 作为路由目标。

    注意:

    您必须在每个 PE 路由器上为给定的 VPN 路由实例配置相同的路由目标。

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a vrf-target target:2:1
    
    user@PE2# set routing-instances vpn-a vrf-target target:2:1
    

    show configuration routing-instances vpn-a使用命令验证路由目标是否正确。

  4. 在 PE 路由器上,配置 VPN 路由实例以支持组播。

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a protocols mvpn
    
    user@PE2# set routing-instances vpn-a protocols mvpn
    

    show configuration routing-instance vpn-a使用命令验证是否已将 VPN 路由实例配置为支持组播。

  5. 在 PE 路由器上,在客户路由实例 VPN 中使用的环路逻辑接口 1 (lo0.1) 上配置 IP 地址。

    content_copy zoom_out_map
    user@PE1# set interfaces lo0 unit 1 family inet address 10.10.47.101/32
    
    user@PE2# set interfaces lo0 unit 1 family inet address 10.10.47.100/32
    

    show interfaces terse使用命令验证环路接口上的 IP 地址是否正确。

配置 PIM

分步过程
  1. 在 PE 路由器上,启用 PIM。配置 lo0.1 面向客户的快速以太网接口。将模式指定为 sparse ,将版本指定为 2

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a protocols pim interface lo0.1 mode sparse 
    user@PE1# set routing-instances vpn-a protocols pim interface lo0.1 version 2 
    user@PE1# set routing-instances vpn-a protocols pim interface fe-0/1/0.0 mode sparse
    user@PE1# set routing-instances vpn-a protocols pim interface fe-0/1/0.0 version 2
    user@PE2# set routing-instances vpn-a protocols pim interface lo0.1 mode sparse 
    user@PE2# set routing-instances vpn-a protocols pim interface lo0.1 version 2 
    user@PE2# set routing-instances vpn-a protocols pim interface fe-0/1/0.0 mode sparse
    user@PE2# set routing-instances vpn-a protocols pim interface fe-0/1/0.0 version 2
    

    show pim interfaces instance vpn-a使用命令验证接口和面向客户的快速以太网接口上lo0.1是否启用了 PIM 稀疏模式。

  2. 在 CE 路由器上,启用 PIM。在此示例中,我们配置所有接口。将模式指定为 sparse ,将版本指定为 2

    content_copy zoom_out_map
    user@CE1# set protocols pim interface all
    user@CE2# set protocols pim interface all mode sparse
    user@CE2# set protocols pim interface all version 2
    

    show pim interfaces使用命令验证是否在所有接口上启用了 PIM 稀疏模式。

配置提供商通道

分步过程
  1. 在路由器 PE1 上,配置提供商隧道。指定要使用的组播地址。

    provider-tunnel 句指示路由器通过隧道发送组播流量。

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a provider-tunnel rsvp-te label-switched-path-template default-template
    

    show configuration routing-instance vpn-a使用命令验证提供商隧道是否已配置为使用默认 LSP 模板。

  2. 在路由器 PE2 上,配置提供商隧道。指定要使用的组播地址。

    content_copy zoom_out_map
    user@PE2# set routing-instances vpn-a provider-tunnel rsvp-te label-switched-path-template default-template
    

    show configuration routing-instance vpn-a使用命令验证提供商隧道是否已配置为使用默认 LSP 模板。

配置集合点

分步过程
  1. 将路由器 PE1 配置为集合点。指定 lo0.1 路由器 PE1 的地址。指定要使用的组播地址。

    content_copy zoom_out_map
    user@PE1# set routing-instances vpn-a protocols pim rp local address 10.10.47.101
    user@PE1# set routing-instances vpn-a protocols pim rp local group-ranges 224.1.1.1/32
    

    show pim rps instance vpn-a使用命令验证是否为 RP 配置了正确的本地 IP 地址。

  2. 在路由器 PE2 上,配置静态会合点。指定 lo0.1 路由器 PE1 的地址。

    content_copy zoom_out_map
    user@PE2# set routing-instances vpn-a protocols pim rp static address 10.10.47.101
    

    show pim rps instance vpn-a使用命令验证是否为 RP 配置了正确的静态 IP 地址。

  3. 在 CE 路由器上,配置静态集合点。指定 lo0.1 路由器 PE1 的地址。

    content_copy zoom_out_map
    user@CE1# set protocols pim rp static address 10.10.47.101 version 2
    user@CE2# set protocols pim rp static address 10.10.47.101 version 2
    

    show pim rps使用命令验证是否为 RP 配置了正确的静态 IP 地址。

  4. commit check使用命令验证配置是否可以成功提交。如果配置通过检查,请提交配置。

  5. 启动连接到CE1的组播发送方设备。

  6. 启动连接到 CE2 的组播接收器设备。

  7. 验证接收方是否正在接收组播流。

  8. 使用 show 命令验证路由、VPN 和组播作。

结果

此示例的配置和验证部分已完成。以下部分供您参考。

路由器 CE1 的相关配置示例如下。

路由器 CE1

content_copy zoom_out_map
interfaces {
    lo0 {
        unit 0 {
            family inet {
                address 192.168.6.1/32 {
                    primary;
                }
            }
        }
    }
    fe-0/1/0 {
        unit 0 {
            family inet {
                address 10.0.67.13/30;
            }
        }
    }
    fe-1/3/0 {
        unit 0 {
            family inet {
                address 10.10.12.1/24;
            }
        }
    }
}
protocols {
    ospf {
        area 0.0.0.0 {
            interface fe-0/1/0.0;
            interface lo0.0;
            interface fe-1/3/0.0;
        }
    }
    pim {
        rp {
            static {
                address 10.10.47.101 {
                    version 2;
                }
            }
        }
        interface all;
    }
}

路由器 PE1 的相关示例配置如下。

路由器 PE1

content_copy zoom_out_map
interfaces {
    lo0 {
        unit 0 {
            family inet {
                address 192.168.7.1/32 {
                    primary;
                }
            }
        }
    }
    fe-0/1/0 {
        unit 0 {
            family inet {
                address 10.0.67.14/30;
            }
        }
    }
    at-0/2/0 {
        atm-options {
            pic-type atm1;
            vpi 0 {
                maximum-vcs 256;
            }
        }
        unit 0 {
            vci 0.128;
            family inet {
                address 10.0.78.5/32 {
                    destination 10.0.78.6;
                }
            }
            family mpls;
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 10.10.47.101/32;
            }
        }
    }
}
routing-options {
    autonomous-system 0.65010;
}
protocols {
    rsvp {
        interface fe-0/1/0.0;
        interface at-0/2/0.0;
    }
    mpls {
        label-switched-path to-pe2 {
            to 192.168.9.1;
        }
        interface fe-0/1/0.0;
        interface at-0/2/0.0;
        interface lo0.0;
    }
    bgp {
        group group-mvpn {
            type internal;
            local-address 192.168.7.1;
            family inet-vpn {
                unicast;
            }
            family inet-mvpn {
                signaling;
            }
            neighbor 192.168.9.1;
            neighbor 192.168.8.1;
        }
    }
    ospf {
        traffic-engineering {
            shortcuts;
        }
        area 0.0.0.0 {
            interface at-0/2/0.0;
            interface lo0.0;
        }
    }
}
policy-options {
    policy-statement bgp-to-ospf {
        from protocol bgp;
        then accept;
    }
}
routing-instances {
    vpn-a {
        instance-type vrf;
        interface lo0.1;
        interface fe-0/1/0.0;
        route-distinguisher 65010:1;
        provider-tunnel {
            rsvp-te {
                label-switched-path-template {
                    default-template;
                }
            }
        }
        vrf-target target:2:1;
        protocols {
            ospf {
                export bgp-to-ospf;
                area 0.0.0.0 {
                    interface all;
                }
            }
            pim {
                rp {
                    local {
                        address 10.10.47.101;
                        group-ranges {
                            224.1.1.1/32;
                        }
                    }
                }
                interface lo0.1 {
                    mode sparse;
                    version 2;
                }
                interface fe-0/1/0.0 {
                    mode sparse;
                    version 2;
                }
            }
            mvpn;
        }
    }
}

路由器 P 的相关示例配置如下。

路由器 P

content_copy zoom_out_map
interfaces {
    lo0 {
        unit 0 {
            family inet {
                address 192.168.8.1/32 {
                    primary;
                }
            }
        }
    }
    at-0/2/0 {
        atm-options {
            pic-type atm1;
            vpi 0 {
                maximum-vcs 256;
            }
        }
        unit 0 {
            vci 0.128;
            family inet {
                address 10.0.78.6/32 {
                    destination 10.0.78.5;
                }
            }
            family mpls;
        }
    }
    at-0/2/1 {
        atm-options {
            pic-type atm1;
            vpi 0 {
                maximum-vcs 256;
            }
        }
        unit 0 {
            vci 0.128;
            family inet {
                address 10.0.89.5/32 {
                    destination 10.0.89.6;
                }
            }
            family mpls;
        }
    }
}
routing-options {
    autonomous-system 0.65010;
}
protocols {
    rsvp {
        interface at-0/2/0.0;
        interface at-0/2/1.0;
    }
    mpls {
        interface at-0/2/0.0;
        interface at-0/2/1.0;
    }
    bgp {
        group group-mvpn {
            type internal;
            local-address 192.168.8.1;
            family inet {
                unicast;
            }
            family inet-mvpn {
                signaling;
            }
            neighbor 192.168.9.1;
            neighbor 192.168.7.1;
        }
    }
    ospf {
        traffic-engineering {
            shortcuts;
        }
        area 0.0.0.0 {
            interface lo0.0;
            interface all;
            interface fxp0.0 {
                disable;
            }
        }
    }
}

路由器 PE2 的相关示例配置如下。

路由器 PE2

content_copy zoom_out_map
interfaces {
    lo0 {
        unit 0 {
            family inet {
                address 192.168.9.1/32 {
                    primary;
                }
            }
        }
    }
    fe-0/1/0 {
        unit 0 {
            family inet {
                address 10.0.90.13/30;
            }
        }
    }
    at-0/2/1 {
        atm-options {
            pic-type atm1;
            vpi 0 {
                maximum-vcs 256;
            }
        }
        unit 0 {
            vci 0.128;
            family inet {
                address 10.0.89.6/32 {
                    destination 10.0.89.5;
                }
            }
            family mpls;
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 10.10.47.100/32;
            }
        }
    }
}
routing-options {
    autonomous-system 0.65010;
}
protocols {
    rsvp {
        interface fe-0/1/0.0;
        interface at-0/2/1.0;
    }
    mpls {
        label-switched-path to-pe1 {
            to 192.168.7.1;
        }
        interface lo0.0;
        interface fe-0/1/0.0;
        interface at-0/2/1.0;
    }
    bgp {
        group group-mvpn {
            type internal;
            local-address 192.168.9.1;
            family inet-vpn {
                unicast;
            }
            family inet-mvpn {
                signaling;
            }
            neighbor 192.168.7.1;
            neighbor 192.168.8.1;
        }
    }
    ospf {
        traffic-engineering {
            shortcuts;
        }
        area 0.0.0.0 {
            interface lo0.0;
            interface at-0/2/1.0;
        }
    }
}
policy-options {
    policy-statement bgp-to-ospf {
        from protocol bgp;
        then accept;
    }
}
routing-instances {
    vpn-a {
        instance-type vrf;
        interface fe-0/1/0.0;
        interface lo0.1;
        route-distinguisher 65010:2;
        provider-tunnel {
            rsvp-te {
                label-switched-path-template {
                    default-template;
                }
            }
        }
        vrf-target target:2:1;
        protocols {
            ospf {
                export bgp-to-ospf;
                area 0.0.0.0 {
                    interface all;
                }
            }
            pim {
                rp {
                    static {
                        address 10.10.47.101;
                    }
                }
                interface fe-0/1/0.0 {
                    mode sparse;
                    version 2;
                }
                interface lo0.1 {
                    mode sparse;
                    version 2;
                }
            }
            mvpn;
        }
    }
}

路由器 CE2 的相关配置示例如下。

路由器 CE2

content_copy zoom_out_map
interfaces {
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.1/32 {
                    primary;
                }
            }
        }
    }
    fe-0/1/0 {
        unit 0 {
            family inet {
                address 10.0.90.14/30;
            }
        }
    }
    fe-1/3/0 {
        unit 0 {
            family inet {
                address 10.10.11.1/24;
            }
            family inet6 {
                address fe80::205:85ff:fe88:ccdb/64;
            }
        }
    }
}
protocols {
    ospf {
        area 0.0.0.0 {
            interface fe-0/1/0.0;
            interface lo0.0;
            interface fe-1/3/0.0;
        }
    }
    pim {
        rp {
            static {
                address 10.10.47.101 {
                    version 2;
                }
            }
        }
        interface all {
            mode sparse;
            version 2;
        }
    }
}

为 MBGP MVPN 配置点到多点 LSP

Junos OS 支持用于 MBGP MVPN 的点到多点标签交换路径 (LSP)。 自治系统内部 (AS) 环境(在 AS 内)支持用于组播 VPN 的点对多点 LSP,但不支持 AS 间环境(在自治系统之间)。点对多点 LSP 是具有单个源和多个目标的 RSVP 信号 LSP。

您可以为 MBGP MVPN 配置点对多点 LSP,如下所示:

  • 静态点到多点 LSP — 使用在 [edit protocols mpls] 层次结构级别指定的标准 MPLS LSP 语句配置静态点到多点 LSP。您可以手动为点对多点 LSP 配置每个叶节点。

  • 使用默认模板的动态点到多点 LSP — 使用选项 default-template 配置动态点到多点 LSP 将导致自动发现叶节点。叶节点是通过 BGP AS 内部自动发现发现的。该 default-template 选项允许您最大程度地减少所需的配置量。但是,它不允许配置任何标准 MPLS 选项。

  • 使用用户配置模板的动态点对多点 LSP — 使用用户配置的模板配置动态点对多点 LSP 也会导致自动发现叶节点。通过为点对多点 LSP 创建自己的模板,可以配置所有标准 MPLS 功能(例如带宽分配和流量工程)。

请注意为组播 VPN 配置的点对多点 LSP 中出口 PE 路由器的以下属性:

  • 点对多点 LSP 不会将倒数第二个跳弹出用于组播 VPN。仅使用终极跳跃弹出。

  • 您必须在出口 PE 路由器上配置 vrf-table-label 语句或虚拟环路隧道接口。

  • 如果在出口 PE 路由器上配置该 vrf-table-label 语句,并且出口 PE 路由器也是点对多点 LSP 的中转路由器,则倒数第二个跃点路由器会通过链路向出口 PE 路由器发送每个数据包的两个副本。

  • 如果在出口 PE 路由器上配置该 vrf-table-label 语句,并且出口 PE 路由器不是点对多点 LSP 的中转路由器,则倒数第二个跃点路由器只能通过链路将每个数据包的一个副本发送到出口 PE 路由器。

  • 如果在出口 PE 路由器上配置虚拟环路隧道接口,并且出口 PE 路由器也是点对多点 LSP 的中转路由器,则倒数第二跳路由器只会通过链路向出口 PE 路由器发送每个数据包的一个副本。虚拟环路隧道接口可以对传入数据包执行两次查找,一次用于组播 MPLS 查找,一次用于 IP 查找。

注意:

Junos OS 11.2 及更低版本不支持在 MX80 路由器上使用新一代组播 VPN 的点对多点 LSP。

以下部分介绍如何为 MBGP MVPN 配置点对多点 LSP:

为 MBGP MVPN 配置 RSVP 信号包含点到多点 LSP

您可以为 MBGP MVPN 配置 LDP 信号或 RSVP 信号包容性点对多点 LSP。 不支持聚合,因此您需要为每个组播 VPN 路由实例中的每个发送方 PE 路由器配置一个包容性的点对多点 LSP。发送方 PE 路由器位于 MBGP MVPN 的发送方站点集中。

要配置静态 RSVP 信号包含点对多点 LSP,请包含以下 static-lsp 语句:

content_copy zoom_out_map
static-lsp lsp-name;

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name provider-tunnel rsvp-te]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel rsvp-te]

要配置动态包容性点对多点 LSP,请包含以下 label-switched-path-template 语句:

content_copy zoom_out_map
label-switched-path-template (Multicast) {
    (default-template | lsp-template-name);
}

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name provider-tunnel rsvp-te]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel rsvp-te]

您可以配置选项, default-template 也可以手动配置点对多点 LSP 模板并指定模板名称。

为 MBGP MVPN 配置选择性提供商隧道

您可以为 MBGP MVPN 配置 LDP 信号或 RSVP 信号选择性点对多点 LSP(也称为选择性提供商隧道)。 选择性点对多点 LSP 仅将流量发送至为组播 VPN 配置的接收方,有助于最大程度地减少服务提供商网络中的泛洪。

与包容性点对多点 LSP 一样,您可以为组播 VPN 配置动态和静态选择性隧道。

要配置选择性点到多点提供商隧道,请添加 selective 语句:

content_copy zoom_out_map
selective {
    group multicast--prefix/prefix-length {
        source ip--prefix/prefix-length {
            ldp-p2mp;
            pim-ssm {
                group-range multicast-prefix;
            }
            rsvp-te {
                label-switched-path-template {
                    (default-template | lsp-template-name);
                }
                static-lsp point-to-multipoint-lsp-name;
            }
            threshold-rate kbps;
        }
        wildcard-source {
            ldp-p2mp;
            pim-ssm {
                group-range multicast-prefix;
            }
            rsvp-te {
                label-switched-path-template {
                    (default-template | lsp-template-name);
                }
                static-lsp point-to-multipoint-lsp-name;
            }
            threshold-rate kbps;
        }
    }
    tunnel-limit number;
    wildcard-group-inet {
        wildcard-source {
            ldp-p2mp;
            pim-ssm {
                group-range multicast-prefix;
            }
            rsvp-te {
                label-switched-path-template {
                    (default-template | lsp-template-name);
                }
                static-lsp lsp-name;
            }
            threshold-rate number;
        }
    }
    wildcard-group-inet6 {
        wildcard-source {
            ldp-p2mp;
            pim-ssm {
                group-range multicast-prefix;
            }
            rsvp-te {
                label-switched-path-template {
                    (default-template | lsp-template-name);
                }
                static-lsp lsp-name;
            }
            threshold-rate number;
        }
    }
}

您可以在以下层级包含这些语句:

  • [edit routing-instances routing-instance-name provider-tunnel]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel]

以下部分介绍如何为 MBGP MVPN 配置选择性点到多点 LSP:

配置 MBGP MVPN 的组播组地址

要为 MBGP MVPN 配置点对多点 LSP,您需要通过包含语 group 句来指定组播组地址:

content_copy zoom_out_map
group address { ... }

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name provider-tunnel selective]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel selective]

地址必须是有效的组播组地址。组播使用 D 类 IP 地址范围(224.0.0.0239.255.255.255)。

配置 MBGP MVPN 的组播源地址

要为 MBGP MVPN 配置点对多点 LSP,请通过包含 source 语句来指定组播源地址:

content_copy zoom_out_map
source address { ... }

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name provider-tunnel selective group address]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel selective group address]

为 MBGP MVPN 配置静态选择性点到多点 LSP

您可以为 MBGP MVPN 配置静态选择性点到多点 LSP。您需要在 [edit protocols mpls] 层次结构级别使用标准 MPLS LSP 语句配置静态 LSP。然后,您可以使用语 static-lsp 句将静态 LSP 包含在选择性的点对多点 LSP 配置中。在源 PE 路由器上启用此功能后,系统将根据您的配置创建静态点对多点 LSP。

要配置静态选择性点对多点 LSP,请包含 rsvp-testatic-lsp 语句:

content_copy zoom_out_map
rsvp-te static-lsp lsp-name;

您可以在以下层级包含这些语句:

  • [edit routing-instances routing-instance-name provider-tunnel selective group address source source-address]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel selective group address source source-address]

为 MBGP MVPN 配置动态选择性点到多点 LSP

您可以为 MBGP MVPN 配置动态选择性点对多点 LSP。可以使用叶自动发现路由自动发现动态点对多点 LSP 的叶节点。此外还支持选择性提供商组播服务接口 (S-PMSI) 自动发现路由。

要配置动态选择性点到多点提供商隧道,请添加 rsvp-telabel-switched-path-template 语句:

content_copy zoom_out_map
rsvp-te label-switched-path-template {
    (default-template | lsp-template-name);
}

您可以在以下层级包含这些语句:

  • [edit routing-instances routing-instance-name provider-tunnel selective group address source source-address]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel selective group address source source-address]

label-switched-path-template 句包含以下选项:

  • default-template- 指定基于默认模板动态生成点到多点 LSP。LSP 不需要用户配置。但是,自动生成的 LSP 不包含任何常见的 LSP 功能,如带宽分配和流量工程。

  • lsp-template-name- 指定用于点对多点 LSP 的 LSP 模板的名称。您需要将 LSP 模板配置为用作点对多点 LSP 的基础。您可以为此模板配置任何常用 LSP 功能。

为 MBGP MVPN 配置动态选择性点到多点 LSP 的阈值

要动态配置选择性点到多点 LSP,您需要使用语 threshold-rate 句指定创建新隧道所需的数据阈值(单位:千比特/秒):

content_copy zoom_out_map

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name provider-tunnel selective group address source source-address]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel selective group address source source-address]

为 MBGP MVPN 配置动态选择性点到多点 LSP 的隧道限制

要配置可为动态点对多点 LSP 生成的隧道数量限制,请包含以下 tunnel-limit 语句:

content_copy zoom_out_map
tunnel-limit number;

您可以在以下层级包含此语句:

  • [edit routing-instances routing-instance-name provider-tunnel selective]

  • [edit logical-systems logical-system-name routing-instances routing-instance-name provider-tunnel selective]

分段区域间点到多点标签交换路径概述

Junos OS 支持用于 BGP MVPN 的点到多点 (P2MP) 标签交换路径 (LSP)。 BGP MVPN 支持非分段内部自治系统 (AS) 和分段自治系统间 (AS)。

为了连接位于不同区域但同一 AS 中且需要 P2MP 连接的 PE 路由器,Junos OS允许您在区域边界处对 P2MP LSP 进行分段,如互联网草案 draft-ietf-mpls-seamless-mcast-14.txt 中所述。您可以将非分段 LSP 用于低速率组播流,将分段 LSP 用于高速率流。AS 中的分段 P2MP LSP 由以下网段组成:

  • 入口区分段 — 入口区分段根植于PE路由器或自治系统边界路由器(ASBR)。此网段的枝叶是 PE、ASBR 或区域边界路由器 (ABR)。

  • 骨干区分段 — 骨干区分段植根于连接到入口区/入口ABR的ABR。

  • 出口区域段 — 出口区域段植根于出口区域或出口ABR中的ABR。

注意:

这些区域可以是 IGP 区域,也可以是基于 BGP 对等体组的区域,其中 ABR 可以是区域边界路由器 (RBR)。在任何一种情况下,都应在 BGP 路由反射器 (RR) 上配置中转 ABR/RBR。

每个区域内分段都可以通过提供商隧道传输,例如 P2MP RSVP-TE LSP、P2MP mLDP LSP 或入口复制。

当 S-PMSI 自动发现 (AD) 路由通告时,区域间 P2MP LSP 将发生分段。这将触发包含新的 BGP 扩展社区或区域间 P2MP 分段下一跃点扩展社区。分段的区间 P2MP LSP 可以分为以下三个不同的角色:

  • 入口PE或ASBR — 入口PE路由器发起S-PMSI A-D路由。如果需要进行区域间分段,则 PE 路由器将生成携带区域间 P2MP 分段下一跳路由器 (S-NH) 社区的 S-PMSI A-D 路由。可以为任何选择性隧道添加区域间分段。可以基于阈值或扇出属性进行分段。如果为选择性隧道配置了阈值,则 MVPN 会在达到阈值速率值时开始将流迁移到分段的 S-PMSI。阈值属性适用于 RSVP、LDP 和 IR 隧道。您可以根据扇出属性(即叶数)触发分段。一旦叶 A-D 路由数量超过扇出值,流量将移动到分段 S-PMSI。LDP 隧道的扇出属性在入口 PE 路由器上不适用。 如果具有入口复制功能的 S-PMSI 仅配置阈值,则阈值将用于触发向分段 LSP 的迁移。如果还设置了扇出,则当流量速率乘以叶 A-D 路由数超过阈值时,将触发迁移。分段阈值和扇出值根据现有的数据阈值检查间隔进行检查,默认情况下每 60 秒检查一次。这样可以防止流迁移过于频繁。

  • 传输 ABR — 当传输 ABR(入口 ABR 或出口 ABR)接收配置了区域间分段的 S-PMSI A-D 路由时,ABR 将检查 S-PMSI 是否携带 S-NH 扩展社区属性。如果传入 S-PMSI 中存在 S-NH 属性,则 ABR 将检查 S-PMSI 携带的隧道类型。然后,ABR 会在主干区域或出口区域生成隧道类型。

    注意:

    ABR 可以设置模板来定义每个区域或 BGP 组中的提供商隧道类型。每个区域的隧道类型可以是传入隧道、入口复制隧道、LDP-P2MP 隧道或 RSVP-TE。

    如果隧道类型为传入,则表示 ABR 上的隧道类型保持不变。如果 ABR 中的隧道类型不同,则传输 ABR 会将 S-PMSI 隧道属性和 S-NH 属性修改为其路由器 ID,并将路由重新播发至其 BGP 对等方。如果 ABR 上未配置模板,则 ABR 仅反映传入的 S-PMSI 路由,而不会更改其 BGP 对等方的任何属性。

  • 出口 PE 或 ASBR — 出口 PE 路由器或 ASBR 从接收的 S-PMSI A-D 路由中携带的分段下一跳扩展社区中学习上游节点,并使用路由目标扩展社区 (EC) 中携带上游节点 IP 地址的叶 A-D 路由进行响应。

您可以将 BGP 策略配置为接受或拒绝携带区域间 P2MP 分段下一跳社区的 S-PMSI A-D 路由。

配置分段的地域间 P2MP LSP

为了连接位于不同区域但同一 AS 中且需要 P2MP 连接的 PE 路由器,Junos OS允许您在区域边界处对 P2MP LSP 进行分段,如互联网草案 draft-ietf-mpls-seamless-mcast-14.txt 中所述。

要在入口区段、骨干区段和出口区段配置分段的区域间 P2MP LSP,必须执行以下作:

  1. 为选择性隧道的 group、wildcard-group-inet 或 wildcard-group-inet6 配置区域间分段。
    • 为属于组的组播源或通配符源配置区域间分段扇出和阈值。

      • 指定组播源的扇出和阈值。

        content_copy zoom_out_map
        [edit routing-instances instance-name provider-tunnel selective]
        user@host# set group multicast IP address source source IP address inter-region-segmented fan-out fan-out value
        user@host# set group multicast IP address source source IP address inter-region-segmented threshold rate-value
        
      • 指定通配符源的扇出和阈值。

        content_copy zoom_out_map
        [edit routing-instances instance-name provider-tunnel selective]
        user@host# set group multicast IP address source wildcard-source inter-region-segmented fan-out fan-out value
        user@host# set group multicast IP address source wildcard-source inter-region-segmented threshold rate-value
        
    • 为属于组的通配符-group-inet 配置区域间分段扇出值。

      content_copy zoom_out_map
      [edit routing-instances instance-name provider-tunnel selective]
      user@host# set wildcard-group-inet wildcard-source inter-region-segmented fan-out fan-out value
      
    • 为属于组的通配符组-inet6 配置区域间分段扇出值。

      content_copy zoom_out_map
      [edit routing-instances instance-name provider-tunnel selective]
      user@host# set wildcard-group-inet6 wildcard-source inter-region-segmented fan-out fan-out value
      
  2. 在中转 ABR 上配置区域间模板,以指定要用于特定区域或所有区域的隧道类型。
    • 配置区域间模板,为特定区域指定入口复制、ldp-p2mp、rsvp-te 等隧道类型。

      • 为特定区域的隧道类型 ingress-replication 指定 create-new-ucast-tunnel 或 label-switched-path。

        content_copy zoom_out_map
        [edit protocols mvpn]
        user@host# set inter-region-template template template-name region region-name ingress-replication create-new-ucast-tunnel
        user@host# set inter-region-template template template-name region region-name ingress-replication label-switched-path label-switched-path-template ( default-template | default-template)
        
      • 为特定区域指定隧道类型 ldp-p2mp。

        content_copy zoom_out_map
        [edit protocols mvpn]
        user@host# set inter-region-template template template-name region region-name ldp-p2mp
        
      • 为属于特定区域的隧道类型 rsvp-te 的标签交换路径模板指定静态 lsp 或模板。

        content_copy zoom_out_map
        [edit protocols mvpn]
        user@host# set inter-region-template template template-name region region-name rsvp-te label-switched-path-template (default | lsp-template-name)
        user@host# set inter-region-template template template-name region region-name rsvp-te static-lsp static-lsp
        
    • 配置跨区域模板,为所有区域指定入口复制、ldp-p2mp、rsvp-te 等隧道类型。

      • 为所有区域的隧道类型 ingress-replication 指定 create-new-ucast-tunnel 或 label-switched-path。

        content_copy zoom_out_map
        [edit protocols mvpn]
        user@host# set inter-region-template template template-name all-regions region-name ingress-replication create-new-ucast-tunnel
        user@host# set inter-region-template template template-name all-regions region-name ingress-replication label-switched-path label-switched-path-template ( default-template | default-template)
        
      • 为所有区域指定隧道类型 ldp-p2mp。

        content_copy zoom_out_map
        [edit protocols mvpn]
        user@host# set inter-region-template template template-name all-regions region-name ldp-p2mp
        
      • 为属于所有区域的隧道类型 rsvp-te 的标签交换路径模板指定静态 lsp 或模板。

        content_copy zoom_out_map
        [edit protocols mvpn]
        user@host# set inter-region-template template template-name all-regions region-name rsvp-te label-switched-path-template (default | lsp-template-name)
        user@host# set inter-region-template template template-name all-regions region-name rsvp-te static-lsp static-lsp
        
  3. 指定用于传输 ABR 上区域间分段的模板,该模板指示隧道类型。
    content_copy zoom_out_map
    [edit routing-instances instance-name provider-tunnel]
    user@host# set inter-region template template-name
    
  4. 如果您不希望 ABR 参与区域间分段,则不指定区域间分段。
    content_copy zoom_out_map
    [edit routing-instances instance-name provider-tunnel]
    user@host# set inter-region no-inter-region-segmentation
    

示例:配置分段区域间 P2MP LSP

此示例说明如何在区域边界处对 P2MP LSP 进行分段,如互联网草稿 draft-ietf-mpls-seamless-mcast-14.txt 中所述。您可以在分段下一跃点扩展社区 (S-NH EC) 上配置策略,以便具有 S-NH EC 的 S-PMSI A-D 路由由 ABR 反射,而所有其他路由由其他路由反射器反射。

要求

此示例使用以下硬件和软件组件:

  • 十四个 MX 系列 5G 通用路由平台

  • 在所有路由器上运行的 Junos OS 15.1 或更高版本

开始之前:

  1. 配置设备接口。

  2. 配置 OSPF。

概述

从 Junos OS 15.1 版开始,可以在区域边界对 P2MP LSP 进行分段。分段 P2MP LSP 由入口区段(入口 PE 路由器或 ASBR)、骨干区段(中转 ABR)和出口区段(出口 PE 路由器或 ASBR)组成。每个区域内分段都可以通过提供商隧道传输,例如 P2MP RSVP-TE LSP、P2MP mLDP LSP 或入口复制。当通告 S-PMSI 自动发现 (AD) 路由时,会发生区域间 P2MP LSP 分段,这会触发在入口 PE 路由器或 ASBR、中转 ABR 和出口 PE 路由器 (ASBR) 中包含新的 BGP 扩展社区或区域间 P2MP 分段下一跳扩展社区。

要在入口 PE 路由器配置区域间分段,请在[edit routing-instances instance-name provider-tunnel]层级配置inter-region-segmented语句。要在传输 ABR 上配置区域间模板,请在[edit protocols mvpn]层次结构级别配置inter-region-template template-name语句。要在传输 ABR 上配置区域间分段,请在[edit routing-instance instance-name provider-tunnel]层次结构级别配置inter-region语句。

拓扑学

图 4 所示的拓扑中,分段隧道组合如下所示:

  • 入口区域隧道 — PE1 到 ABR1,IR 为隧道。

  • 骨干区域隧道 — ABR1、ABR2 和 ABR3,RSVP-TE 为隧道。

  • 出口区域隧道 — ABR2 到 PE2 和 PE4,ABR3 到 PE3,RSVP-TE 作为隧道。

图 4:分段区域间 P2MP LSP Example Segmented Inter-Area P2MP LSP 示例

配置

CLI 快速配置

要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,将命令复制并粘贴到层 [edit] 级的 CLI 中,然后从配置模式进入 commit

注意:以下示例中的设备 CE2 和 CE5 包含逻辑系统和会话声明协议 (SAP) 协议的配置。在此示例中,这些配置使 CE2 和 CE5 可充当组播接收器。如果您有实际的组播接收器,则可以删除这些配置。

PE1型

content_copy zoom_out_map
set chassis fpc 0 pic 0 tunnel-services bandwidth 1g
set interfaces ge-0/0/0 unit 0 family inet address 10.1.11.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 172.16.11.2/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces vt-0/0/10 unit 0 family inet
set interfaces lo0 unit 0 family inet address 10.1.255.11/32
set interfaces lo0 unit 1 family inet address 10.1.255.101/32
set policy-options policy-statement bgp-to-ospf from protocol bgp
set policy-options policy-statement bgp-to-ospf then accept
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 protocols mvpn mvpn-mode spt-only
set routing-instances vpn1 protocols ospf area 0.0.0.1 interface all
set routing-instances vpn1 protocols ospf area 0.0.0.1 interface lo0.1
set routing-instances vpn1 protocols ospf export bgp-to-ospf
set routing-instances vpn1 protocols ospf3 area 0.0.0.1 interface all
set routing-instances vpn1 protocols ospf3 export bgp-to-ospf
set routing-instances vpn1 protocols pim rp local family inet address 10.1.255.101
set routing-instances vpn1 protocols pim interface all mode sparse-dense
set routing-instances vpn1 interface ge-0/0/1.0
set routing-instances vpn1 interface vt-0/0/10.0 multicast
set routing-instances vpn1 interface lo0.1
set routing-instances vpn1 route-distinguisher 10.1.255.11:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 ingress-replication label-switched-path
set routing-instances vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 threshold-rate 10
set routing-instances vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 inter-region-segmented threshold 0
set routing-instances vpn1 provider-tunnel family inet ingress-replication label-switched-path
set routing-options router-id 10.1.255.11
set routing-options autonomous-system 65550
set protocols bgp group IBGP type internal
set protocols bgp group IBGP local-address 10.1.255.11
set protocols bgp group IBGP family inet any
set protocols bgp group IBGP family inet-vpn unicast
set protocols bgp group IBGP family inet-vpn multicast
set protocols bgp group IBGP family inet-mvpn signaling
set protocols bgp group IBGP neighbor 10.1.255.1
set protocols ldp interface all
set protocols ldp interface fxp0.0 disable
set protocols ldp p2mp
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface ge-0/0/0.0
set protocols mpls interface lo0.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.1 interface fxp0.0 disable
set protocols ospf area 0.0.0.1 interface ge-0/0/0.0
set protocols ospf area 0.0.0.1 interface lo0.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols pim default-vpn-source interface-name lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface ge-0/0/0.0
set protocols rsvp interface lo0.0

CE1

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 172.16.11.1/30
set interfaces lo0 unit 0 family inet address 172.16.255.1/32
set routing-options router-id 172.16.255.1
set protocols ospf area 0.0.0.1 interface all
set protocols ospf area 0.0.0.1 interface fxp0.0 disable
set protocols pim rp static address 10.1.255.101
set protocols pim interface all mode sparse-dense
set protocols pim interface fxp0.0 disable
set protocols pim interface ge-0/0/0.0
set protocols pim interface lo0.0

小一

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 10.1.111.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 10.1.11.1/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 10.1.255.111/32
set routing-options router-id 10.1.255.111
set protocols ldp interface all
set protocols ldp interface fxp0.0 disable
set protocols ldp p2mp
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface all
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.1 interface fxp0.0 disable
set protocols ospf area 0.0.0.1 interface all
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface all
set protocols rsvp interface lo0.0

ABR1型

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 10.1.12.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 10.1.111.2/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 10.1.13.2/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 10.1.255.1/32
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 route-distinguisher 10.1.255.1:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel inter-region template template_1
set routing-options router-id 10.1.255.1
set routing-options autonomous-system 65550
set protocols bgp group IBGP_1 type internal
set protocols bgp group IBGP_1 local-address 10.1.255.1
set protocols bgp group IBGP_1 family inet any
set protocols bgp group IBGP_1 family inet-vpn unicast
set protocols bgp group IBGP_1 family inet-vpn multicast
set protocols bgp group IBGP_1 family inet-mvpn signaling
set protocols bgp group IBGP_1 cluster 0.0.0.1
set protocols bgp group IBGP_1 neighbor 10.1.255.11
set protocols bgp group IBGP_0 type internal
set protocols bgp group IBGP_0 local-address 10.1.255.1
set protocols bgp group IBGP_0 family inet any
set protocols bgp group IBGP_0 family inet-vpn unicast
set protocols bgp group IBGP_0 family inet-vpn multicast
set protocols bgp group IBGP_0 family inet-mvpn signaling
set protocols bgp group IBGP_0 neighbor 10.2.255.2
set protocols bgp group IBGP_0 neighbor 10.3.255.3
set protocols ldp interface all
set protocols ldp p2mp
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface all
set protocols mvpn inter-region-template template template_1 region IBGP_0 rsvp-te label-switched-path-template default-template
set protocols mvpn inter-region-template template template_2 region IBGP_0 ldp-p2mp
set protocols mvpn inter-region-template template template_3 region IBGP_0 ingress-replication create-new-ucast-tunnel
set protocols mvpn inter-region-template template template_3 region IBGP_0 ingress-replication label-switched-path label-switched-path-template default-template
set protocols mvpn inter-region-template template template_4 all-regions incoming
set protocols mvpn inter-region-template template template_5 region IBGP_0 rsvp-te static-lsp ABR1_to_ABR3
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.1 interface fxp0.0 disable
set protocols ospf area 0.0.0.1 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.0.0 interface lo0.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface all
set protocols lldp interface fxp0 disable

ABR2型

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 10.2.220.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 10.1.12.1/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 10.1.23.1/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 10.2.255.2/32
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 route-distinguisher 10.2.255.2:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel inter-region template template_1
set routing-options router-id 10.2.255.2
set routing-options autonomous-system 65550
set protocols bgp group IBGP_2 type internal
set protocols bgp group IBGP_2 local-address 10.2.255.2
set protocols bgp group IBGP_2 family inet any
set protocols bgp group IBGP_2 family inet-vpn unicast
set protocols bgp group IBGP_2 family inet-vpn multicast
set protocols bgp group IBGP_2 family inet-mvpn signaling
set protocols bgp group IBGP_2 cluster 0.0.0.2
set protocols bgp group IBGP_2 neighbor 10.2.255.22
set protocols bgp group IBGP_2 neighbor 10.2.255.44
set protocols bgp group IBGP_0 type internal
set protocols bgp group IBGP_0 local-address 10.2.255.2
set protocols bgp group IBGP_0 family inet any
set protocols bgp group IBGP_0 family inet-vpn unicast
set protocols bgp group IBGP_0 family inet-vpn multicast
set protocols bgp group IBGP_0 family inet-mvpn signaling
set protocols bgp group IBGP_0 neighbor 10.1.255.1
set protocols bgp group IBGP_0 neighbor 10.3.255.3
set protocols ldp interface all
set protocols ldp p2mp
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface lo0.0
set protocols mpls interface all
set protocols mvpn inter-region-template template template_1 region IBGP_2 rsvp-te label-switched-path-template default-template
set protocols mvpn inter-region-template template template_2 region IBGP_2 ldp-p2mp
set protocols mvpn inter-region-template template template_3 region IBGP_2 ingress-replication create-new-ucast-tunnel
set protocols mvpn inter-region-template template template_3 region IBGP_2 ingress-replication label-switched-path label-switched-path-template default-template
set protocols mvpn inter-region-template template template_4 all-regions incoming
set protocols mvpn inter-region-template template template_5 region IBGP_2 rsvp-te static-lsp ABR2_to_PE2_3
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface fxp0.0 disable
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.0.0 interface lo0.0
set protocols ospf area 0.0.0.2 interface ge-0/0/0.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface lo0.0
set protocols rsvp interface all

小二

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 10.2.22.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 10.2.220.1/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 10.2.255.222/24
set routing-options router-id 10.2.255.222
set protocols ldp interface all
set protocols ldp interface fxp0.0 disable
set protocols ldp p2mp
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface all
set protocols mpls interface lo0.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.2 interface all
set protocols ospf area 0.0.0.2 interface lo0.0
set protocols ospf area 0.0.0.2 interface fxp0.0 disable
set protocols pim interface all mode sparse-dense
set protocols pim interface fxp0.0 disable
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface all
set protocols rsvp interface lo0.0

ABR3型

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 10.1.23.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 10.1.13.1/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 10.3.33.1/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 10.3.255.3/32
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 route-distinguisher 10.3.255.3:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel inter-region template template_1
set routing-options router-id 10.3.255.3
set routing-options autonomous-system 65550
set protocols bgp group IBGP_3 type internal
set protocols bgp group IBGP_3 local-address 10.3.255.3
set protocols bgp group IBGP_3 family inet any
set protocols bgp group IBGP_3 family inet-vpn unicast
set protocols bgp group IBGP_3 family inet-vpn multicast
set protocols bgp group IBGP_3 family inet-mvpn signaling
set protocols bgp group IBGP_3 cluster 0.0.0.3
set protocols bgp group IBGP_3 neighbor 10.3.255.33
set protocols bgp group IBGP_0 type internal
set protocols bgp group IBGP_0 local-address 10.3.255.3
set protocols bgp group IBGP_0 family inet any
set protocols bgp group IBGP_0 family inet-vpn unicast
set protocols bgp group IBGP_0 family inet-vpn multicast
set protocols bgp group IBGP_0 family inet-mvpn signaling
set protocols bgp group IBGP_0 neighbor 10.1.255.1
set protocols bgp group IBGP_0 neighbor 10.2.255.2
set protocols ldp interface all
set protocols ldp interface fxp0.0 disable
set protocols ldp p2mp
set protocols mpls label-switched-path ABR3_to_PE3 from 10.3.255.3
set protocols mpls label-switched-path ABR3_to_PE3 to 10.3.255.33
set protocols mpls label-switched-path ABR3_to_PE3 p2mp vpn1
set protocols mpls label-switched-path ABR3_to_ABR1 from 10.3.255.3
set protocols mpls label-switched-path ABR3_to_ABR1 to 10.1.255.1
set protocols mpls label-switched-path ABR3_to_ABR1 p2mp vpn1
set protocols mpls label-switched-path ABR3_to_ABR2 from 10.3.255.3
set protocols mpls label-switched-path ABR3_to_ABR2 to 10.2.255.2
set protocols mpls label-switched-path ABR3_to_ABR2 p2mp vpn1
set protocols mpls ipv6-tunneling
set protocols mpls interface all
set protocols mpls interface fxp0.0 disable
set protocols mpls interface lo0.0
set protocols mvpn inter-region-template template template_1 region IBGP_3 rsvp-te label-switched-path-template default-template
set protocols mvpn inter-region-template template template_2 region IBGP_3 ldp-p2mp
set protocols mvpn inter-region-template template template_3 region IBGP_3 ingress-replication create-new-ucast-tunnel
set protocols mvpn inter-region-template template template_3 region IBGP_3 ingress-replication label-switched-path label-switched-path-template default-template
set protocols mvpn inter-region-template template template_4 all-regions incoming
set protocols mvpn inter-region-template template template_5 region IBGP_3 rsvp-te static-lsp ABR3_to_PE3
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.0 interface fxp0.0 disable
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/0.0
set protocols ospf area 0.0.0.0 interface lo0.0
set protocols ospf area 0.0.0.3 interface ge-0/0/2.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols rsvp interface all
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface lo0.0

聚乙烯3

content_copy zoom_out_map
set chassis fpc 0 pic 0 tunnel-services bandwidth 1g
set interfaces ge-0/0/0 unit 0 family inet address 10.3.33.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 172.16.34.2/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 172.16.35.2/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces vt-0/0/10 unit 0 family inet
set interfaces lo0 unit 0 family inet address 10.3.255.33/32
set interfaces lo0 unit 1 family inet address 10.3.255.133/32
set policy-options policy-statement bgp-to-ospf from protocol bgp
set policy-options policy-statement bgp-to-ospf then accept
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 protocols mvpn mvpn-mode spt-only
set routing-instances vpn1 protocols ospf area 0.0.0.3 interface all
set routing-instances vpn1 protocols ospf export bgp-to-ospf
set routing-instances vpn1 protocols pim rp static address 10.1.255.101
set routing-instances vpn1 protocols pim interface all mode sparse-dense
set routing-instances vpn1 interface ge-0/0/1.0
set routing-instances vpn1 interface ge-0/0/2.0
set routing-instances vpn1 interface vt-0/0/10.0 multicast
set routing-instances vpn1 interface lo0.1
set routing-instances vpn1 route-distinguisher 10.3.255.33:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 ingress-replication label-switched-path
set routing-instances vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 threshold-rate 10
set routing-instances vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 inter-region-segmented threshold 0
set routing-instances vpn1 provider-tunnel family inet ingress-replication label-switched-path
set routing-options router-id 10.3.255.33
set routing-options autonomous-system 65550
set protocols bgp group IBGP type internal
set protocols bgp group IBGP local-address 10.3.255.33
set protocols bgp group IBGP family inet any
set protocols bgp group IBGP family inet-vpn unicast
set protocols bgp group IBGP family inet-vpn multicast
set protocols bgp group IBGP family inet-mvpn signaling
set protocols bgp group IBGP neighbor 10.3.255.3
set protocols ldp interface all
set protocols ldp p2mp
set protocols mpls label-switched-path PE3_to_PE2 from 10.3.255.33
set protocols mpls label-switched-path PE3_to_PE2 to 10.2.255.22
set protocols mpls label-switched-path PE3_to_PE2 p2mp vpn1
set protocols mpls label-switched-path PE3_to_PE4 from 10.3.255.33
set protocols mpls label-switched-path PE3_to_PE4 to 10.2.255.44
set protocols mpls label-switched-path PE3_to_PE4 p2mp vpn1
set protocols mpls label-switched-path PE3_to_PE1 from 10.3.255.33
set protocols mpls label-switched-path PE3_to_PE1 to 10.1.255.11
set protocols mpls label-switched-path PE3_to_PE1 p2mp vpn1
set protocols mpls label-switched-path PE3_to_ABR3 from 10.3.255.33
set protocols mpls label-switched-path PE3_to_ABR3 to 10.3.255.3
set protocols mpls label-switched-path PE3_to_ABR3 p2mp vpn1
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface all
set protocols mpls interface lo0.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.3 interface fxp0.0 disable
set protocols ospf area 0.0.0.3 interface all
set protocols ospf area 0.0.0.3 interface lo0.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols pim default-vpn-source interface-name lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface all
set protocols rsvp interface lo0.0

CE4

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 172.16.34.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 172.16.255.4/32
set routing-options router-id 172.16.255.4
set protocols ospf area 0.0.0.3 interface all
set protocols ospf area 0.0.0.3 interface fxp0.0 disable
set protocols pim rp static address 10.1.255.101
set protocols pim interface all mode sparse-dense
set protocols pim interface fxp0.0 disable

CE5 认证

content_copy zoom_out_map
set logical-systems rec5 interfaces lt-0/0/10 unit 1 encapsulation ethernet
set logical-systems rec5 interfaces lt-0/0/10 unit 1 peer-unit 0
set logical-systems rec5 interfaces lt-0/0/10 unit 1 family inet address 172.16.55.1/30
set logical-systems rec5 routing-options static route 0.0.0.0/0 next-hop 172.16.55.2
set chassis fpc 0 pic 0 tunnel-services bandwidth 1g
set interfaces ge-0/0/0 unit 0 family inet address 172.16.35.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces lt-0/0/10 unit 0 encapsulation ethernet
set interfaces lt-0/0/10 unit 0 peer-unit 1
set interfaces lt-0/0/10 unit 0 family inet address 172.16.55.2/30
set interfaces lo0 unit 0 family inet address 172.16.255.5/32
set routing-options router-id 172.16.255.5
set protocols igmp interface lt-0/0/10.0 static group 224.1.1.1
set protocols ospf area 0.0.0.3 interface all
set protocols ospf area 0.0.0.3 interface fxp0.0 disable
set protocols pim rp static address 10.1.255.101
set protocols pim interface all mode sparse-dense
set protocols pim interface fxp0.0 disable
set protocols sap listen 224.1.1.1 port 5000

PE2

content_copy zoom_out_map
set chassis fpc 0 pic 0 tunnel-services bandwidth 1g
set interfaces ge-0/0/0 unit 0 family inet address 10.2.24.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 172.16.22.2/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 unit 0 family inet address 10.2.22.2/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces vt-0/0/10 unit 0 family inet
set interfaces lo0 unit 0 family inet address 10.2.255.22/32
set interfaces lo0 unit 1 family inet address 10.2.255.122/32
set policy-options policy-statement bgp-to-ospf from protocol bgp
set policy-options policy-statement bgp-to-ospf then accept
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 protocols mvpn mvpn-mode spt-only
set routing-instances vpn1 protocols ospf area 0.0.0.2 interface all
set routing-instances vpn1 protocols ospf area 0.0.0.2 interface lo0.1
set routing-instances vpn1 protocols ospf export bgp-to-ospf
set routing-instances vpn1 protocols ospf3 area 0.0.0.2 interface all
set routing-instances vpn1 protocols ospf3 export bgp-to-ospf
set routing-instances vpn1 protocols pim rp static address 10.1.255.101
set routing-instances vpn1 protocols pim interface all mode sparse-dense
set routing-instances vpn1 interface ge-0/0/1.0
set routing-instances vpn1 interface vt-0/0/10.0 multicast
set routing-instances vpn1 interface lo0.1
set routing-instances vpn1 route-distinguisher 10.2.255.22:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel family inet ingress-replication label-switched-path
set routing-options router-id 10.2.255.22
set routing-options autonomous-system 65550
set protocols bgp group IBGP type internal
set protocols bgp group IBGP local-address 10.2.255.22
set protocols bgp group IBGP family inet any
set protocols bgp group IBGP family inet-vpn unicast
set protocols bgp group IBGP family inet-vpn multicast
set protocols bgp group IBGP family inet-mvpn signaling
set protocols bgp group IBGP neighbor 10.2.255.2
set protocols ldp interface all
set protocols ldp interface fxp0.0 disable
set protocols ldp p2mp
set protocols mpls label-switched-path PE2_to_PE3 from 10.2.255.22
set protocols mpls label-switched-path PE2_to_PE3 to 10.3.255.33
set protocols mpls label-switched-path PE2_to_PE3 p2mp vpn1
set protocols mpls label-switched-path PE2_to_PE4 from 10.2.255.22
set protocols mpls label-switched-path PE2_to_PE4 to 10.2.255.44
set protocols mpls label-switched-path PE2_to_PE4 p2mp vpn1
set protocols mpls label-switched-path PE2_to_PE1 from 10.2.255.22
set protocols mpls label-switched-path PE2_to_PE1 to 10.1.255.11
set protocols mpls label-switched-path PE2_to_PE1 p2mp vpn1
set protocols mpls label-switched-path PE2_to_ABR2 from 10.2.255.22
set protocols mpls label-switched-path PE2_to_ABR2 to 10.2.255.2
set protocols mpls label-switched-path PE2_to_ABR2 p2mp vpn1
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface all
set protocols mpls interface lo0.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.2 interface fxp0.0 disable
set protocols ospf area 0.0.0.2 interface all
set protocols ospf area 0.0.0.2 interface lo0.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols pim default-vpn-source interface-name lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface all
set protocols rsvp interface lo0.0

CE2 认证

content_copy zoom_out_map
set logical-systems rec2 interfaces lt-0/0/10 unit 1 encapsulation ethernet
set logical-systems rec2 interfaces lt-0/0/10 unit 1 peer-unit 0
set logical-systems rec2 interfaces lt-0/0/10 unit 1 family inet address 172.16.122.1/30
set logical-systems rec2 routing-options static route 0.0.0.0/0 next-hop 172.16.122.2
set chassis fpc 0 pic 0 tunnel-services bandwidth 1g
set interfaces ge-0/0/0 unit 0 family inet address 172.16.22.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces lt-0/0/10 unit 0 encapsulation ethernet
set interfaces lt-0/0/10 unit 0 peer-unit 1
set interfaces lt-0/0/10 unit 0 family inet address 172.16.122.2/30
set interfaces lo0 unit 0 family inet address 172.16.255.2/32
set routing-options router-id 172.16.255.2
set protocols igmp interface lt-0/0/10.0 static group 224.1.1.1
set protocols ospf area 0.0.0.2 interface all
set protocols ospf area 0.0.0.2 interface fxp0.0 disable
set protocols pim rp static address 10.1.255.101
set protocols pim interface all mode sparse-dense
set protocols pim interface fxp0.0 disable
set protocols sap listen 224.1.1.1 port 5000

PE4

content_copy zoom_out_map
set chassis fpc 0 pic 0 tunnel-services bandwidth 1g
set interfaces ge-0/0/0 unit 0 family inet address 172.16.43.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 unit 0 family inet address 10.2.24.2/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces vt-0/0/10 unit 0 family inet
set interfaces lo0 unit 0 family inet address 10.2.255.44/32
set interfaces lo0 unit 1 family inet address 10.2.255.144/32
set policy-options policy-statement bgp-to-ospf from protocol bgp
set policy-options policy-statement bgp-to-ospf then accept
set routing-instances vpn1 instance-type vrf
set routing-instances vpn1 protocols mvpn mvpn-mode spt-only
set routing-instances vpn1 protocols ospf area 0.0.0.2 interface all
set routing-instances vpn1 protocols ospf export bgp-to-ospf
set routing-instances vpn1 protocols pim rp static address 10.1.255.101
set routing-instances vpn1 protocols pim interface all mode sparse-dense
set routing-instances vpn1 interface ge-0/0/0.0
set routing-instances vpn1 interface vt-0/0/10.0 multicast
set routing-instances vpn1 interface lo0.1
set routing-instances vpn1 route-distinguisher 10.2.255.44:100
set routing-instances vpn1 vrf-target target:123:1
set routing-instances vpn1 vrf-table-label
set routing-instances vpn1 provider-tunnel family inet ingress-replication label-switched-path
set routing-options router-id 10.2.255.44
set routing-options autonomous-system 65550
set protocols bgp group IBGP type internal
set protocols bgp group IBGP local-address 10.2.255.44
set protocols bgp group IBGP family inet any
set protocols bgp group IBGP family inet-vpn unicast
set protocols bgp group IBGP family inet-vpn multicast
set protocols bgp group IBGP family inet-mvpn signaling
set protocols bgp group IBGP neighbor 10.2.255.2
set protocols ldp interface all
set protocols ldp interface fxp0.0 disable
set protocols ldp p2mp
set protocols mpls label-switched-path PE4_to_PE3 from 10.2.255.44
set protocols mpls label-switched-path PE4_to_PE3 to 10.3.255.33
set protocols mpls label-switched-path PE4_to_PE2 from 10.2.255.44
set protocols mpls label-switched-path PE4_to_PE2 to 10.2.255.22
set protocols mpls label-switched-path PE4_to_PE1 from 10.2.255.44
set protocols mpls label-switched-path PE4_to_PE1 to 10.1.255.11
set protocols mpls label-switched-path PE4_to_ABR2 from 10.2.255.44
set protocols mpls label-switched-path PE4_to_ABR2 to 10.2.255.2
set protocols mpls ipv6-tunneling
set protocols mpls interface fxp0.0 disable
set protocols mpls interface all
set protocols mpls interface lo0.0
set protocols ospf traffic-engineering
set protocols ospf area 0.0.0.2 interface fxp0.0 disable
set protocols ospf area 0.0.0.2 interface all
set protocols ospf area 0.0.0.2 interface lo0.0
set protocols pim interface all
set protocols pim interface fxp0.0 disable
set protocols pim interface lo0.0
set protocols pim default-vpn-source interface-name lo0.0
set protocols rsvp interface fxp0.0 disable
set protocols rsvp interface all
set protocols rsvp interface lo0.0

CE3 认证

content_copy zoom_out_map
set interfaces ge-0/0/0 unit 0 family inet address 172.16.43.1/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 172.16.255.3/32
set routing-options router-id 172.16.255.3
set protocols ospf area 0.0.0.2 interface all
set protocols ospf area 0.0.0.2 interface fxp0.0 disable
set protocols pim rp static address 10.1.255.101
set protocols pim interface all mode sparse-dense
set protocols pim interface fxp0.0 disable

配置 PE1

分步过程

下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器

要配置设备 PE1,请执行以下作:

  1. 配置接口。

    content_copy zoom_out_map
    [edit interfaces]
    user@PE1# set ge-0/0/0 unit 0 family inet address 10.1.11.2/30
    user@PE1# set ge-0/0/0 unit 0 family mpls
    user@PE1# set ge-0/0/1 unit 0 family inet address 172.16.11.2/30
    user@PE1# set ge-0/0/1 unit 0 family mpls
    user@PE1# set vt-0/0/10 unit 0 family inet
    user@PE1# set lo0 unit 0 family inet address 10.1.255.11/32
    user@PE1# set lo0 unit 1 family inet address 10.1.255.101/32 
    
  2. 配置自治系统编号。

    content_copy zoom_out_map
    [edit routing-options]
    user@PE1# set autonomous-system 65550
    
  3. 在管理接口上禁用 RSVP,并在接口上启用 RSVP。

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@PE1# set interface fxp0.0 disable
    user@PE1# set interface ge-0/0/0.0
    user@PE1# set interface lo0.0
    
  4. 启用 IPv6 隧道。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@PE1# set ipv6-tunneling
    
  5. 在管理接口上禁用 MPLS,并在接口上启用 MPLS。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@PE1# set ipv6-tunneling
    user@PE1# set interface fxp0.0 disable
    user@PE1# set interface ge-0/0/0.0
    user@PE1# set interface lo0.0
    
  6. 配置 BGP 协议。

    content_copy zoom_out_map
    [edit protocols bgp]
    user@PE1# set group IBGP type internal
    user@PE1# set group IBGP local-address 10.1.255.11
    user@PE1# set group IBGP family inet any
    user@PE1# set group IBGP family inet-vpn unicast
    user@PE1# set group IBGP family inet-vpn multicast
    user@PE1# set group IBGP family inet-mvpn signaling
    user@PE1# set group IBGP neighbor 10.1.255.1
    
  7. 配置 OSPF 流量工程属性并在接口上启用 OSPF。

    content_copy zoom_out_map
    [edit protocols ospf]
    user@PE1# set traffic-engineering
    user@PE1# set area 0.0.0.1 interface fxp0.0 disable
    user@PE1# set area 0.0.0.1 interface ge-0/0/0.0
    user@PE1# set area 0.0.0.1 interface lo0.0
    
  8. 在所有接口上启用 LDP,并向对等方播发 P2MP 功能。

    content_copy zoom_out_map
    [edit protocols ldp]
    user@PE1# set interface all
    user@PE1# set interface fxp0.0 disable
    user@PE1# set p2mp
    
  9. 在接口上配置 PIM。

    content_copy zoom_out_map
    [edit protocols pim]
    user@PE1# set interface all
    user@PE1# set interface fxp0.0 disable
    user@PE1# set interface lo0.0
    user@PE1# set default-vpn-source interface-name lo0.0
    
  10. 配置路由策略。

    content_copy zoom_out_map
    [edit policy-options policy-statement]
    user@PE1# set bgp-to-ospf from protocol bgp
    user@PE1# set bgp-to-ospf then accept
    
  11. 配置路由实例的路由实例类型、接口和路由识别符。

    content_copy zoom_out_map
    [edit routing-instances]
    user@PE1# set vpn1 instance-type vrf
    user@PE1# set vpn1 interface ge-0/0/1.0
    user@PE1# set vpn1 interface vt-0/0/10.0 multicast
    user@PE1# set vpn1 interface lo0.1
    user@PE1# set vpn1 route-distinguisher 10.1.255.11:100
    
  12. 为路由实例配置提供程序隧道属性。

    content_copy zoom_out_map
    [edit routing-instances]
    user@PE1# set vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 ingress-replication label-switched-path
    user@PE1# set vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 threshold-rate 10
    user@PE1# set vpn1 provider-tunnel selective group 224.1.1.1/32 source 172.16.11.1/32 inter-region-segmented threshold 0
    user@PE1# set vpn1 provider-tunnel family inet ingress-replication label-switched-path
    
  13. 配置 VRF 目标社区,并为 VRF 中的所有路由播发单个 VPN 标签。

    content_copy zoom_out_map
    [edit routing-instances]
    user@PE1# set vpn1 vrf-target target:123:1
    user@PE1# set vpn1 vrf-table-label
    
  14. 为路由实例启用 OSPF。

    content_copy zoom_out_map
    [edit routing-instances]
    user@PE1# set vpn1 protocols ospf area 0.0.0.1 interface all
    user@PE1# set vpn1 protocols ospf area 0.0.0.1 interface lo0.1
    user@PE1# set vpn1 protocols ospf export bgp-to-ospf
    
  15. 为路由实例启用 OSPF3。

    content_copy zoom_out_map
    [edit routing-instances]
    user@PE1# set vpn1 protocols ospf3 export bgp-to-ospf
    user@PE1# set vpn1 protocols ospf3 area 0.0.0.1 interface all
    
  16. 为路由实例启用 PIM 属性。

    content_copy zoom_out_map
    [edit routing-instances]
    user@PE1# set vpn1 protocols pim rp local family inet address 10.1.255.101
    user@PE1# set vpn1 protocols pim interface all mode sparse-dense
    
结果

在配置模式下,输入show interfacesshow routing-instancesshow policy-optionsshow protocolsshow routing-options命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。

content_copy zoom_out_map
user@PE1# show interfaces
ge-0/0/0 {
    unit 0 {
        family inet {
            address 10.1.11.2/30;
        }
        family mpls;
    }
}
ge-0/0/1 {
    unit 0 {
        family inet {
            address 172.16.11.2/30;
        }
        family mpls;
    }
}
vt-0/0/10 {
    unit 0 {
        family inet;
    }
}
lo0 {
    unit 0 {
        family inet {
            address 10.1.255.11/32;
        }
    }
    unit 1 {
        family inet {
            address 10.1.255.101/32;
        }
    }
}
content_copy zoom_out_map
user@PE1# show policy-options
policy-statement bgp-to-ospf {
    from protocol bgp;
    then accept;
}
content_copy zoom_out_map
user@PE1# show protocols
bgp {
    group IBGP {
        type internal;
        local-address 10.1.255.11;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        neighbor 10.1.255.1;
    }
}
ldp {
    interface all;
    interface fxp0.0 {
        disable;
    }
    p2mp;
}
mpls {
    ipv6-tunneling;
    interface fxp0.0 {
        disable;
    }
    interface ge-0/0/0.0;
    interface lo0.0;
}
ospf {
    traffic-engineering;
    area 0.0.0.1 {
        interface fxp0.0 {
            disable;
        }
        interface ge-0/0/0.0;
        interface lo0.0;
    }
}
pim {
    interface all;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
    default-vpn-source {
        interface-name lo0.0;
    }
}
rsvp {
    interface fxp0.0 {
        disable;
    }
    interface ge-0/0/0.0;
    interface lo0.0;
}
content_copy zoom_out_map
user@PE1# show routing-instances
vpn1 {
    instance-type vrf;
    protocols {
        mvpn {
            mvpn-mode {
                spt-only;
            }
        }
        ospf {
            area 0.0.0.1 {
                interface all;
                interface lo0.1;
            }
            export bgp-to-ospf;
        }
        ospf3 {
            area 0.0.0.1 {
                interface all;
            }
            export bgp-to-ospf;
        }
        pim {
            rp {
                local {
                    family inet {
                        address 10.1.255.101;
                    }
                }
            }
            interface all {
                mode sparse-dense;
            }
        }
    }
    interface ge-0/0/1.0;
    interface vt-0/0/10.0 {
        multicast;
    }
    interface lo0.1;
    route-distinguisher 10.1.255.11:100;
    vrf-target target:123:1;
    vrf-table-label;
    provider-tunnel {
        selective {
            group 224.1.1.1/32 {
                source 172.16.11.1/32 {
                    ingress-replication {
                        label-switched-path;
                    }
                    threshold-rate 10;
                    inter-region-segmented {
                        threshold 0;
                    }
                }
            }
        }
        family {
            inet {
                ingress-replication {
                    label-switched-path;
                }
            }
        }
    }
}
content_copy zoom_out_map
user@PE1# show routing-options
router-id 10.1.255.11;
autonomous-system 65550;

配置 ABR1

分步过程

下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器

要配置设备 ABR1:

  1. 配置接口。

    content_copy zoom_out_map
    [edit interfaces]
    user@ABR1# set interfaces ge-0/0/0 unit 0 family inet address 10.1.12.2/30
    user@ABR1# set interfaces ge-0/0/0 unit 0 family mpls
    user@ABR1# set interfaces ge-0/0/1 unit 0 family inet address 10.1.111.2/30
    user@ABR1# set interfaces ge-0/0/1 unit 0 family mpls
    user@ABR1# set interfaces ge-0/0/2 unit 0 family inet address 10.1.13.2/30
    user@ABR1# set interfaces ge-0/0/2 unit 0 family mpls
    user@ABR1# set interfaces lo0 unit 0 family inet address 10.1.255.1/32
    
  2. 配置自治系统编号。

    content_copy zoom_out_map
    [edit routing-options]
    user@ABR1# set autonomous-system 65550
    
  3. 配置 RSVP 协议。

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@ABR1# set interface fxp0.0 disable
    user@ABR1# set interface all
    
  4. 配置 MPLS IPv6 隧道。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@ABR1# set ipv6-tunneling
    
  5. 在接口上配置 MPLS。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@ABR1# set interface fxp0.0 disable
    user@ABR1# set interface all
    
  6. 配置 BGP 协议。

    content_copy zoom_out_map
    [edit protocols bgp]
    user@ABR1# set group IBGP_1 type internal
    user@ABR1# set group IBGP_1 local-address 10.1.255.1
    user@ABR1# set group IBGP_1 family inet any
    user@ABR1# set group IBGP_1 family inet-vpn unicast
    user@ABR1# set group IBGP_1 family inet-vpn multicast
    user@ABR1# set group IBGP_1 family inet-mvpn signaling
    user@ABR1# set group IBGP_1 cluster 0.0.0.1
    user@ABR1# set group IBGP_1 neighbor 10.1.255.11
    user@ABR1# set group IBGP_0 type internal
    user@ABR1# set group IBGP_0 local-address 10.1.255.1
    user@ABR1# set group IBGP_0 family inet any
    user@ABR1# set group IBGP_0 family inet-vpn unicast
    user@ABR1# set group IBGP_0 family inet-vpn multicast
    user@ABR1# set group IBGP_0 family inet-mvpn signaling
    user@ABR1# set group IBGP_0 neighbor 10.2.255.2
    user@ABR1# set group IBGP_0 neighbor 10.3.255.3
    
  7. 配置 OSPF 流量工程属性并在接口上启用 OSPF。

    content_copy zoom_out_map
    [edit protocols ospf]
    user@ABR1# set traffic-engineering
    user@ABR1# set area 0.0.0.1 interface fxp0.0 disable
    user@ABR1# set area 0.0.0.1 interface ge-0/0/1.0
    user@ABR1# set area 0.0.0.0 interface ge-0/0/0.0
    user@ABR1# set area 0.0.0.0 interface ge-0/0/2.0
    user@ABR1# set area 0.0.0.0 interface lo0.0
    
  8. 在所有接口上启用 LDP,并向对等方播发 P2MP 功能。

    content_copy zoom_out_map
    [edit protocols ldp]
    user@ABR1# set interface all
    user@ABR1# set p2mp
    
  9. 在接口上配置 PIM。

    content_copy zoom_out_map
    [edit protocols pim]
    user@ABR1# set interface all
    user@ABR1# set interface fxp0.0 disable
    user@ABR1# set interface lo0.0
    
  10. 为特定区域或所有区域配置跨区域模板的隧道。

    content_copy zoom_out_map
    [edit protocols mvpn inter-region-template]
    user@ABR1# set template template_1 region IBGP_0 rsvp-te label-switched-path-template default-template
    user@ABR1# set template template_2 region IBGP_0 ldp-p2mp
    user@ABR1# set template template_3 region IBGP_0 ingress-replication create-new-ucast-tunnel
    user@ABR1# set template template_3 region IBGP_0 ingress-replication label-switched-path label-switched-path-template default-template
    user@ABR1# set template template_4 all-regions incoming
    user@ABR1# set template template_5 region IBGP_0 rsvp-te static-lsp ABR1_to_ABR3
    
  11. 配置路由实例类型、路由识别符、提供商隧道的跨区域模板和 VRF 目标社区,并为路由实例的 VRF 中的所有路由播发单个 VPN 标签。

    content_copy zoom_out_map
    [edit routing-instances]
    user@ABR1# set vpn1 instance-type vrf
    user@ABR1# set vpn1 route-distinguisher 10.1.255.1:100
    user@ABR1# set vpn1 vrf-target target:123:1
    user@ABR1# set vpn1 vrf-table-label
    user@ABR1# set vpn1 provider-tunnel inter-region template template_1
    
结果

在配置模式下,输入show interfacesshow protocolsshow routing-instances、和show routing-options命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。

content_copy zoom_out_map
user@ABR1# show interfaces
ge-0/0/0 {
    unit 0 {
        family inet {
            address 10.1.12.2/30;
        }
        family mpls;
    }
}
ge-0/0/1 {
    unit 0 {
        family inet {
            address 10.1.111.2/30;
        }
        family mpls;
    }
}
ge-0/0/2 {
    unit 0 {
        family inet {
            address 10.1.13.2/30;
        }
        family mpls;
    }
}
lo0 {
    unit 0 {
        family inet {
            address 10.1.255.1/32;
        }
    }
}
content_copy zoom_out_map
user@ABR1# show protocols
bgp {
    group IBGP_1 {
        type internal;
        local-address 10.1.255.1;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        cluster 0.0.0.1;
        neighbor 10.1.255.11;
    }
    group IBGP_0 {
        type internal;
        local-address 10.1.255.1;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        neighbor 10.2.255.2;
        neighbor 10.3.255.3;
    }
}
ldp {
    interface all;
    p2mp;
}
mpls {
    ipv6-tunneling;
    interface fxp0.0 {
        disable;
    }
    interface all;
}
mvpn {
    inter-region-template {
        template template_1 {
            region IBGP_0 {
                rsvp-te {
                    label-switched-path-template {
                        default-template;
                    }
                }
            }
        }
        template template_2 {
            region IBGP_0 {
                ldp-p2mp;
            }
        }
        template template_3 {
            region IBGP_0 {
                ingress-replication {
                    create-new-ucast-tunnel;
                    label-switched-path {
                        label-switched-path-template {
                            default-template;
                        }
                    }
                }
            }
        }
        template template_4 {
            all-regions {
                incoming;
            }
        }
        template template_5 {
            region IBGP_0 {
                rsvp-te {
                    static-lsp ABR1_to_ABR3;
                }
            }
        }
    }
}
ospf {
    traffic-engineering;
    area 0.0.0.1 {
        interface fxp0.0 {
            disable;
        }
        interface ge-0/0/1.0;
    }
    area 0.0.0.0 {
        interface ge-0/0/0.0;
        interface ge-0/0/2.0;
        interface lo0.0;
    }
}
pim {
    interface all;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
}
rsvp {
    interface fxp0.0 {
        disable;
    }
    interface all;
}
lldp {
    interface fxp0 {
        disable;
    }
}
content_copy zoom_out_map
user@ABR1# show routing-instances
vpn1 {
    instance-type vrf;
    route-distinguisher 10.1.255.1:100;
    vrf-target target:123:1;
    vrf-table-label;
    provider-tunnel {
        inter-region {
            template template_1;
        }
    }
}
content_copy zoom_out_map
user@ABR1# show routing-options
router-id 10.1.255.1;
autonomous-system 65550;

配置 ABR2

分步过程

下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器

要配置设备 ABR2:

  1. 配置接口。

    content_copy zoom_out_map
    [edit interfaces]
    user@ABR2# set ge-0/0/0 unit 0 family inet address 10.2.220.2/30
    user@ABR2# set ge-0/0/0 unit 0 family mpls
    user@ABR2# set ge-0/0/1 unit 0 family inet address 10.1.12.1/30
    user@ABR2# set ge-0/0/1 unit 0 family mpls
    user@ABR2# set ge-0/0/2 unit 0 family inet address 10.1.23.1/30
    user@ABR2# set ge-0/0/2 unit 0 family mpls
    user@ABR2# set lo0 unit 0 family inet address 10.2.255.2/32
    
  2. 配置自治系统编号。

    content_copy zoom_out_map
    [edit routing-options]
    user@ABR2# set autonomous-system 65550
    
  3. 配置 RSVP 协议。

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@ABR2# set interface fxp0.0 disable
    user@ABR2# set interface lo0.0
    user@ABR2# set interface all
    
  4. 启用 MPLS IPv6 隧道。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@ABR2# set ipv6-tunneling
    
  5. 在管理接口上禁用 MPLS,并在接口上启用 RSVP。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@ABR2# set interface fxp0.0 disable
    user@ABR2# set interface lo0.0
    user@ABR2# set interface all
    
  6. 配置 BGP 协议。

    content_copy zoom_out_map
    [edit protocols bgp]
    user@ABR2# set group IBGP_2 type internal
    user@ABR2# set group IBGP_2 local-address 10.2.255.2
    user@ABR2# set group IBGP_2 family inet any
    user@ABR2# set group IBGP_2 family inet-vpn unicast
    user@ABR2# set group IBGP_2 family inet-vpn multicast
    user@ABR2# set group IBGP_2 family inet-mvpn signaling
    user@ABR2# set group IBGP_2 cluster 0.0.0.2
    user@ABR2# set group IBGP_2 neighbor 10.2.255.22
    user@ABR2# set group IBGP_2 neighbor 10.2.255.44
    user@ABR2# set group IBGP_0 type internal
    user@ABR2# set group IBGP_0 local-address 10.2.255.2
    user@ABR2# set group IBGP_0 family inet any
    user@ABR2# set group IBGP_0 family inet-vpn unicast
    user@ABR2# set group IBGP_0 family inet-vpn multicast
    user@ABR2# set group IBGP_0 family inet-mvpn signaling
    user@ABR2# set group IBGP_0 neighbor 10.1.255.1
    user@ABR2# set group IBGP_0 neighbor 10.3.255.3
    
  7. 配置 OSPF 流量工程属性,在管理接口上禁用 OSPF,然后在接口上启用 OSPF。

    content_copy zoom_out_map
    [edit protocols ospf]
    user@ABR2# set traffic-engineering
    user@ABR2# set area 0.0.0.0 interface fxp0.0 disable
    user@ABR2# set area 0.0.0.0 interface ge-0/0/1.0
    user@ABR2# set area 0.0.0.0 interface ge-0/0/2.0
    user@ABR2# set area 0.0.0.0 interface lo0.0
    user@ABR2# set area 0.0.0.2 interface ge-0/0/0.0
    
  8. 在所有接口上启用 LDP,并向对等方播发 P2MP 功能。

    content_copy zoom_out_map
    [edit protocols ldp]
    user@ABR2# set interface all
    user@ABR2# set p2mp
    
  9. 在接口上配置 PIM。

    content_copy zoom_out_map
    [edit protocols pim]
    user@ABR2# set interface fxp0.0 all
    user@ABR2# set interface fxp0.0 disable
    user@ABR2# set interface lo0.0
    
  10. 为特定区域或所有区域配置跨区域模板的隧道。

    content_copy zoom_out_map
    [edit protocols mvpn inter-region-template]
    user@ABR2# set template template_1 region IBGP_2 rsvp-te label-switched-path-template default-template
    user@ABR2# set template template_2 region IBGP_2 ldp-p2mp
    user@ABR2# set template template_3 region IBGP_2 ingress-replication create-new-ucast-tunnel
    user@ABR2# set template template_3 region IBGP_2 ingress-replication label-switched-path label-switched-path-template default-template
    user@ABR2# set template template_4 all-regions incoming
    user@ABR2# set template template_5 region IBGP_2 rsvp-te static-lsp ABR2_to_PE2_3
    
  11. 配置路由实例类型、路由识别符、提供商隧道的跨区域模板和 VRF 目标社区,并为路由实例的 VRF 中的所有路由播发单个 VPN 标签。

    content_copy zoom_out_map
    [edit routing-instances]
    user@ABR2# set vpn1 instance-type vrf
    user@ABR2# set vpn1 route-distinguisher 10.2.255.2:100
    user@ABR2# set vpn1 vrf-target target:123:1
    user@ABR2# set vpn1 vrf-table-label
    user@ABR2# set vpn1 provider-tunnel inter-region template template_1
    
结果

在配置模式下,输入show interfacesshow protocolsshow routing-instances、和show routing-options命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。

content_copy zoom_out_map
user@ABR2# show interfaces
ge-0/0/0 {
    unit 0 {
        family inet {
            address 10.2.220.2/30;
        }
        family mpls;
    }
}
ge-0/0/1 {
    unit 0 {
        family inet {
            address 10.1.12.1/30;
        }
        family mpls;
    }
}
ge-0/0/2 {
    unit 0 {
        family inet {
            address 10.1.23.1/30;
        }
        family mpls;
    }
}
lo0 {
    unit 0 {
        family inet {
            address 10.2.255.2/32;
        }
    }
}
content_copy zoom_out_map
user@ABR2# show protocols
bgp {
    group IBGP_2 {
        type internal;
        local-address 10.2.255.2;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        cluster 0.0.0.2;
        neighbor 10.2.255.22;
        neighbor 10.2.255.44;
    }
    group IBGP_0 {
        type internal;
        local-address 10.2.255.2;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        neighbor 10.1.255.1;
        neighbor 10.3.255.3;
    }
}
ldp {
    interface all;
    p2mp;
}
mpls {
    ipv6-tunneling;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
    interface all;
}
mvpn {
    inter-region-template {
        template template_1 {
            region IBGP_2 {
                rsvp-te {
                    label-switched-path-template {
                        default-template;
                    }
                }
            }
        }
        template template_2 {
            region IBGP_2 {
                ldp-p2mp;
            }
        }
        template template_3 {
            region IBGP_2 {
                ingress-replication {
                    create-new-ucast-tunnel;
                    label-switched-path {
                        label-switched-path-template {
                            default-template;
                        }
                    }
                }
            }
        }
        template template_4 {
            all-regions {
                incoming;
            }
        }
        template template_5 {
            region IBGP_2 {
                rsvp-te {
                    static-lsp ABR2_to_PE2_3;
                }
            }
        }
    }
}
ospf {
    traffic-engineering;
    area 0.0.0.0 {
        interface fxp0.0 {
            disable;
        }
        interface ge-0/0/1.0;
        interface ge-0/0/2.0;
        interface lo0.0;
    }
    area 0.0.0.2 {
        interface ge-0/0/0.0;
    }
}
pim {
    interface all;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
}
rsvp {
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
    interface all;
}
content_copy zoom_out_map
user@ABR2# show routing-instances
vpn1 {
    instance-type vrf;
    route-distinguisher 10.2.255.2:100;
    vrf-target target:123:1;
    vrf-table-label;
    provider-tunnel {
        inter-region {
            template template_1;
        }
    }
}
content_copy zoom_out_map
user@ABR2# show routing-options
router-id 10.2.255.2;
autonomous-system 65550;

配置 ABR3

分步过程

下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器

要配置设备 ABR3:

  1. 配置接口。

    content_copy zoom_out_map
    [edit interfaces]
    user@ABR3# set ge-0/0/0 unit 0 family inet address 10.1.23.2/30
    user@ABR3# set ge-0/0/0 unit 0 family mpls
    user@ABR3# set ge-0/0/1 unit 0 family inet address 10.1.13.1/30
    user@ABR3# set ge-0/0/1 unit 0 family mpls
    user@ABR3# set ge-0/0/2 unit 0 family inet address 10.3.33.1/30
    user@ABR3# set ge-0/0/2 unit 0 family mpls
    user@ABR3# set lo0 unit 0 family inet address 10.3.255.3/32
    
  2. 配置自治系统编号。

    content_copy zoom_out_map
    [edit routing-options]
    user@ABR3# set autonomous-system 65550
    
  3. 配置 RSVP 协议。

    content_copy zoom_out_map
    [edit protocols rsvp]
    user@ABR3# set interface all
    user@ABR3# set interface fxp0.0 disable
    user@ABR3# set interface lo0.0
    
  4. 配置 MPLS IPv6 隧道,配置标签交换路径,并在所有接口(管理接口除外)上启用 MPLS。

    content_copy zoom_out_map
    [edit protocols mpls]
    user@ABR3# set label-switched-path ABR3_to_PE3 from 10.3.255.3
    user@ABR3# set label-switched-path ABR3_to_PE3 to 10.3.255.33
    user@ABR3# set label-switched-path ABR3_to_PE3 p2mp vpn1
    user@ABR3# set label-switched-path ABR3_to_ABR1 from 10.3.255.3
    user@ABR3# set label-switched-path ABR3_to_ABR1 to 10.1.255.1
    user@ABR3# set label-switched-path ABR3_to_ABR1 p2mp vpn1
    user@ABR3# set label-switched-path ABR3_to_ABR2 from 10.3.255.3
    user@ABR3# set label-switched-path ABR3_to_ABR2 to 10.2.255.2
    user@ABR3# set label-switched-path ABR3_to_ABR2 p2mp vpn1
    user@ABR3# set ipv6-tunneling
    user@ABR3# set interface all
    user@ABR3# set interface fxp0.0 disable
    user@ABR3# set interface lo0.0
    
  5. 配置 BGP 协议。

    content_copy zoom_out_map
    [edit protocols bgp]
    user@ABR3# set group IBGP_3 type internal
    user@ABR3# set group IBGP_3 local-address 10.3.255.3
    user@ABR3# set group IBGP_3 family inet any
    user@ABR3# set group IBGP_3 family inet-vpn unicast
    user@ABR3# set group IBGP_3 family inet-vpn multicast
    user@ABR3# set group IBGP_3 family inet-mvpn signaling
    user@ABR3# set group IBGP_3 cluster 0.0.0.3
    user@ABR3# set group IBGP_3 neighbor 10.3.255.33
    user@ABR3# set group IBGP_0 type internal
    user@ABR3# set group IBGP_0 local-address 10.3.255.3
    user@ABR3# set group IBGP_0 family inet any
    user@ABR3# set group IBGP_0 family inet-vpn unicast
    user@ABR3# set group IBGP_0 family inet-vpn multicast
    user@ABR3# set group IBGP_0 family inet-mvpn signaling
    user@ABR3# set group IBGP_0 neighbor 10.1.255.1
    user@ABR3# set group IBGP_0 neighbor 10.2.255.2
    
  6. 配置 OSPF 流量工程属性,在管理接口上禁用 OSPF,然后在接口上启用 OSPF。

    content_copy zoom_out_map
    [edit protocols ospf]
    user@ABR3# set traffic-engineering
    user@ABR3# set area 0.0.0.0 interface fxp0.0 disable
    user@ABR3# set area 0.0.0.0 interface ge-0/0/1.0
    user@ABR3# set area 0.0.0.0 interface ge-0/0/0.0
    user@ABR3# set area 0.0.0.0 interface lo0.0
    user@ABR3# set area 0.0.0.3 interface ge-0/0/2.0
    
  7. 在所有接口上启用 LDP,并向对等方播发 P2MP 功能。

    content_copy zoom_out_map
    [edit protocols ldp]
    user@ABR3# set protocols ldp interface all
    user@ABR3# set protocols ldp interface fxp0.0 disable
    user@ABR3# set protocols ldp p2mp
    
  8. 在接口上配置 PIM。

    content_copy zoom_out_map
    [edit protocols pim]
    user@ABR3# set interface all
    user@ABR3# set interface fxp0.0 disable
    user@ABR3# set interface lo0.0
    
  9. 为特定区域或所有区域配置跨区域模板的隧道。

    content_copy zoom_out_map
    [edit protocols mvpn inter-region-template]
    user@ABR3# set template template_1 region IBGP_3 rsvp-te label-switched-path-template default-template
    user@ABR3# set template template_2 region IBGP_3 ldp-p2mp
    user@ABR3# set template template_3 region IBGP_3 ingress-replication create-new-ucast-tunnel
    user@ABR3# set template template_3 region IBGP_3 ingress-replication label-switched-path label-switched-path-template default-template
    user@ABR3# set template template_4 all-regions incoming
    user@ABR3# set template template_5 region IBGP_3 rsvp-te static-lsp ABR3_to_PE3
    
  10. 配置路由实例类型、路由识别符、提供商隧道的跨区域模板和 VRF 目标社区,并为路由实例的 VRF 中的所有路由播发单个 VPN 标签。

    content_copy zoom_out_map
    [edit routing-instances]
    user@ABR3# set vpn1 instance-type vrf
    user@ABR3# set vpn1 route-distinguisher 10.3.255.3:100
    user@ABR3# set vpn1 vrf-target target:123:1
    user@ABR3# set vpn1 vrf-table-label
    user@ABR3# set vpn1 provider-tunnel inter-region template template_1
    
结果

在配置模式下,输入show interfacesshow routing-instancesshow policy-optionsshow protocolsshow routing-options命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。

content_copy zoom_out_map
user@ABR3# show interfaces
ge-0/0/0 {
    unit 0 {
        family inet {
            address 10.1.23.2/30;
        }
        family mpls;
    }
}
ge-0/0/1 {
    unit 0 {
        family inet {
            address 10.1.13.1/30;
        }
        family mpls;
    }
}
ge-0/0/2 {
    unit 0 {
        family inet {
            address 10.3.33.1/30;
        }
        family mpls;
    }
}
lo0 {
    unit 0 {
        family inet {
            address 10.3.255.3/32;
        }
    }
}
content_copy zoom_out_map
user@ABR3# show protocols
bgp {
    group IBGP_3 {
        type internal;
        local-address 10.3.255.3;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        cluster 0.0.0.3;
        neighbor 10.3.255.33;
    }
    group IBGP_0 {
        type internal;
        local-address 10.3.255.3;
        family inet {
            any;
        }
        family inet-vpn {
            unicast;
            multicast;
        }
        family inet-mvpn {
            signaling;
        }
        neighbor 10.1.255.1;
        neighbor 10.2.255.2;
    }
}
ldp {
    interface all;
    interface fxp0.0 {
        disable;
    }
    p2mp;
}
mpls {
    label-switched-path ABR3_to_PE3 {
        from 10.3.255.3;
        to 10.3.255.33;
        p2mp vpn1;
    }
    label-switched-path ABR3_to_ABR1 {
        from 10.3.255.3;
        to 10.1.255.1;
        p2mp vpn1;
    }
    label-switched-path ABR3_to_ABR2 {
        from 10.3.255.3;
        to 10.2.255.2;
        p2mp vpn1;
    }
    ipv6-tunneling;
    interface all;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
}
mvpn {
    inter-region-template {
        template template_1 {
            region IBGP_3 {
                rsvp-te {
                    label-switched-path-template {
                        default-template;
                    }
                }
            }
        }
        template template_2 {
            region IBGP_3 {
                ldp-p2mp;
            }
        }
        template template_3 {
            region IBGP_3 {
                ingress-replication {
                    create-new-ucast-tunnel;
                    label-switched-path {
                        label-switched-path-template {
                            default-template;
                        }
                    }
                }
            }
        }
        template template_4 {
            all-regions {
                incoming;
            }
        }
        template template_5 {
            region IBGP_3 {
                rsvp-te {
                    static-lsp ABR3_to_PE3;
                }
            }
        }
    }
}
ospf {
    traffic-engineering;
    area 0.0.0.0 {
        interface fxp0.0 {
            disable;
        }
        interface ge-0/0/1.0;
        interface ge-0/0/0.0;
        interface lo0.0;
    }
    area 0.0.0.3 {
        interface ge-0/0/2.0;
    }
}
pim {
    interface all;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
}
rsvp {
    interface all;
    interface fxp0.0 {
        disable;
    }
    interface lo0.0;
}
content_copy zoom_out_map
user@ABR3# show routing-instances
vpn1 {
    instance-type vrf;
    route-distinguisher 10.3.255.3:100;
    vrf-target target:123:1;
    vrf-table-label;
    provider-tunnel {
        inter-region {
            template template_1;
        }
    }
}
content_copy zoom_out_map
user@ABR3# show routing-option
router-id 10.3.255.3;
autonomous-system 65550;

验证

确认配置工作正常。

验证入口 PE 路由器上的流入
目的

验证给定路由实例流入入口 PE 路由器的流量。

行动

在作模式下,为设备 PE1 运行 show multicast route extensive instance vpn1 命令。

content_copy zoom_out_map
user@PE1> show multicast route extensive instance vpn1 
Instance: vpn1 Family: INET

Group: 224.1.1.1
    Source: 172.16.11.1/32
    Upstream interface: ge-0/0/1.0
    Downstream interface list: 
        ge-0/0/0.0 ge-0/0/0.0
    Number of outgoing interfaces: 2
    Session description: NOB Cross media facilities
    Statistics: 0 kBps, 1 pps, 147 packets
    Next-hop ID: 1048577
    Upstream protocol: MVPN
    Route state: Active
    Forwarding state: Forwarding
    Cache lifetime/timeout: forever
    Wrong incoming interface notifications: 0
    Uptime: 00:04:59

Instance: vpn1 Family: INET6
意义

输出显示流入入口设备 PE1 的流量。

验证从设备 ABR1 到 PE1 路由器生成的分段 3 类流量的路由表
目的

验证路由表中是否有从设备 ABR1 生成的分段 Type-3 流量。

行动

在作模式下,运行 show route table vpn1.mvpn.0 match-prefix 3:* detail 命令。

content_copy zoom_out_map
user@PE1> show route table vpn1.mvpn.0 match-prefix 3:* detail

vpn1.mvpn.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11/240 (1 entry, 1 announced)
        *MVPN   Preference: 70
                PMSI: Flags 0x1: Label 0: Type INGRESS-REPLICATION 10.1.255.11 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x8249094
                Next-hop reference count: 8
                Kernel Table Id: 0
                Protocol next hop: 10.1.255.11
                Indirect next hop: 0x0 - INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Active Int Ext>
                Age: 8:06       Metric2: 1 
                Validation State: unverified 
                Task: mvpn global task
                Announcement bits (3): 0-PIM.vpn1 1-mvpn global task 2-rt-export 
                AS path: I 
                Communities: segmented-nh:10.1.255.11:0
                Thread: junos-main 
意义

输出指示从 ABR1 生成的分段 3 类流量的路由表。

验证从设备 ABR1 向 PE1 路由器接收的分段 4 类流量的路由表
目的

验证从设备 ABR1 接收的分段 4 类流量的路由表。

行动

在作模式下,运行 show route table vpn1.mvpn.0 match-prefix 4:* detail 命令。

content_copy zoom_out_map
user@PE1> show route table vpn1.mvpn.0 match-prefix 4:* detail

vpn1.mvpn.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
4:3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11:10.2.255.22/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x0: Label 300096: Type INGRESS-REPLICATION 10.2.255.22 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x824ab94
                Next-hop reference count: 4
                Kernel Table Id: 0
                Source: 10.1.255.1
                Protocol next hop: 10.2.255.22
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Secondary Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 8:36       Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.1.255.1
                Announcement bits (2): 0-PIM.vpn1 1-mvpn global task 
                AS path: I  (Originator)
                Cluster list:  0.0.0.1 0.0.0.2
                Originator ID: 10.2.255.22
                Communities: target:10.1.255.11:0
                Import Accepted
                Localpref: 100
                Router ID: 10.1.255.1
                Primary Routing Table: bgp.mvpn.0
                Thread: junos-main 
                                        
4:3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11:10.3.255.33/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x0: Label 300064: Type INGRESS-REPLICATION 10.3.255.33 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x824e894
                Next-hop reference count: 4
                Kernel Table Id: 0
                Source: 10.1.255.1
                Protocol next hop: 10.3.255.33
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Secondary Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 8:36       Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.1.255.1
                Announcement bits (2): 0-PIM.vpn1 1-mvpn global task 
                AS path: I  (Originator)
                Cluster list:  0.0.0.1 0.0.0.3
                Originator ID: 10.3.255.33
                Communities: target:10.1.255.11:0
                Import Accepted
                Localpref: 100
                Router ID: 10.1.255.1
                Primary Routing Table: bgp.mvpn.0
                Thread: junos-main 
意义

输出显示了从设备 ABR1 接收的分段 4 类流量的路由表。

验证 LDP 流量统计信息
目的

验证设备 PE1 的 LDP 流量统计信息。

行动

在作模式下,运行 show ldp traffic-statistics 命令。

content_copy zoom_out_map
user@PE1> show ldp traffic-statistics
INET FEC Statistics:

FEC                  Type                Packets              Bytes    Shared
 10.1.255.1/32       Transit                   0                  0    No   
                     Ingress                   0                  0    No   
 10.1.255.111/32     Transit                   0                  0    No   
                     Ingress                   0                  0    No   
 10.2.255.2/32       Transit                   0                  0    No   
                     Ingress                   0                  0    No   
 10.2.255.22/32      Transit                   0                  0    No   
                     Ingress                 401              33684    No   
 10.2.255.44/32      Transit                   0                  0    No   
                     Ingress                   0                  0    No   
 10.2.255.222/32     Transit                   0                  0    No   
                     Ingress                   0                  0    No   
 10.3.255.3/32       Transit                   0                  0    No   
                     Ingress                   0                  0    No   
 10.3.255.33/32      Transit                   0                  0    No   
                     Ingress                 401              33684    No   
意义

输出显示 LDP 流量统计信息。

验证从 ABR1 上的 PE1 路由器接收的分段 3 类流量
目的

显示从 ABR1 上的 PE1 路由器接收的分段 3 类流量。

行动

在作模式下,运行 show route table bgp.mvpn.0 match-prefix 3:* detail 命令。

content_copy zoom_out_map
user@ABR1> show route table bgp.mvpn.0 match-prefix 3:* detail 

bgp.mvpn.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x1: Label 0: Type INGRESS-REPLICATION 10.1.255.11 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x824df14
                Next-hop reference count: 3
                Kernel Table Id: 0
                Source: 10.1.255.11
                Protocol next hop: 10.1.255.11
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 10:27      Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.1.255.11
                Announcement bits (1): 0-BGP_RT_Background 
                AS path: I 
                Communities: target:123:1 segmented-nh:10.1.255.11:0
                Accepted
                Localpref: 100
                Router ID: 10.1.255.11
                Thread: junos-main
意义

输出显示了从 PE1 接收的分段类型 3 流量,隧道类型为 IR。

验证在 ABR2 上验证从 ABR1 接收的分段 Type-3
目的

在 ABR2 上显示从 ABR1 接收的分段 Type-3。

行动

在作模式下,输入 show route table bgp.mvpn.0 match-prefix 3:* detail 命令。

content_copy zoom_out_map
user@ABR2> show route table bgp.mvpn.0 match-prefix 3:* detail

bgp.mvpn.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x1: Label 0: Type INGRESS-REPLICATION 10.1.255.11 
                Next hop type: Indirect, Next hop index: 0
                Address: 0xfe94494
                Next-hop reference count: 3
                Kernel Table Id: 0
                Source: 10.1.255.1
                Protocol next hop: 10.1.255.11
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 11:31      Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.1.255.1
                Announcement bits (1): 0-BGP_RT_Background 
                AS path: I  (Originator)
                Cluster list:  0.0.0.1
                Originator ID: 10.1.255.11
                Communities: target:123:1 segmented-nh:10.1.255.11:0
                Accepted
                Localpref: 100
                Router ID: 10.1.255.1
                Thread: junos-main
意义

输出显示从 ABR1 接收的分段 Type-3 流量。

验证从 ABR2 上的出口 PE 设备接收的 Type-4
目的

显示从 ABR2 上的出口 PE 设备接收的 type-4。

行动

在作模式下,输入 show route table bgp.mvpn.0 match-prefix 4:* detail 命令。

content_copy zoom_out_map
user@ABR2> show route table bgp.mvpn.0 match-prefix 4:* detail    

bgp.mvpn.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
4:3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11:10.2.255.22/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x0: Label 300096: Type INGRESS-REPLICATION 10.2.255.22 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x824d294
                Next-hop reference count: 3
                Kernel Table Id: 0
                Source: 10.2.255.22
                Protocol next hop: 10.2.255.22
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 13:05      Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.2.255.22
                Announcement bits (1): 0-BGP_RT_Background 
                AS path: I 
                Communities: target:10.1.255.11:0
                Accepted
                Localpref: 100
                Router ID: 10.2.255.22
                Thread: junos-main 

4:3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11:10.3.255.33/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x0: Label 300064: Type INGRESS-REPLICATION 10.3.255.33 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x824aa94
                Next-hop reference count: 3
                Kernel Table Id: 0
                Source: 10.3.255.3
                Protocol next hop: 10.3.255.33
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 13:05      Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.3.255.3
                Announcement bits (1): 0-BGP_RT_Background 
                AS path: I  (Originator)
                Cluster list:  0.0.0.3
                Originator ID: 10.3.255.33
                Communities: target:10.1.255.11:0
                Accepted
                Localpref: 100
                Router ID: 10.3.255.3
                Thread: junos-main
意义

输出显示从出口 PE 设备接收的 4 类流量。

验证 MPLS LSP 的统计信息
目的

显示 MPLS LSP 的统计信息。

行动

在作模式下,为设备 ABR2 运行 show mpls lsp statistics 命令。

content_copy zoom_out_map
user@ABR2> show mpls lsp statistics 
Ingress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

Egress LSP: 3 sessions
To              From            State     Packets            Bytes LSPname
10.2.255.2      10.2.255.44     Up             NA               NA PE4_to_ABR2
10.2.255.2      10.2.255.22     Up             NA               NA PE2_to_ABR2
10.2.255.2      10.3.255.3      Up             NA               NA ABR3_to_ABR2
Total 3 displayed, Up 3, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
验证在 ABR3 上验证从 ABR1 接收的分段 Type-3
目的

在 ABR3 上显示从 ABR1 接收的分段 Type-3。

行动

在作模式下,为设备 ABR3 运行 show route table bgp.mvpn.0 match-prefix 3:* detail 命令。

content_copy zoom_out_map
user@ABR3> show route table bgp.mvpn.0 match-prefix 3:* detail 

bgp.mvpn.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
3:10.1.255.11:100:32:172.16.11.1:32:224.1.1.1:10.1.255.11/240 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                PMSI: Flags 0x1: Label 0: Type INGRESS-REPLICATION 10.1.255.11 
                Next hop type: Indirect, Next hop index: 0
                Address: 0x824f114
                Next-hop reference count: 3
                Kernel Table Id: 0
                Source: 10.1.255.1
                Protocol next hop: 10.1.255.11
                Indirect next hop: 0x2 no-forward INH Session ID: 0
                Indirect next hop: INH non-key opaque: 0x0 INH key opaque: 0x0
                State: <Active Int Ext>
                Local AS: 65550 Peer AS: 65550
                Age: 16:47      Metric2: 1 
                Validation State: unverified 
                Task: BGP_65550.10.1.255.1
                Announcement bits (1): 0-BGP_RT_Background 
                AS path: I  (Originator)
                Cluster list:  0.0.0.1
                Originator ID: 10.1.255.11
                Communities: target:123:1 segmented-nh:10.1.255.11:0
                Accepted
                Localpref: 100
                Router ID: 10.1.255.1
                Thread: junos-main 
意义

输出显示从 ABR1 接收的分段 Type-3 流量。

变更历史表

是否支持某项功能取决于您使用的平台和版本。使用 功能浏览器 查看您使用的平台是否支持某项功能。

释放
描述
11.1R2
Junos OS 11.1R2、11.2R2 和 11.4 版支持 Junos Trio 芯片组上的 MVPN 外联网功能或重叠 MVPN 的功能奇偶校验。
footer-navigation