帮助我们改善您的体验。

让我们了解您的想法。

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

close
keyboard_arrow_left
list Table of Contents

机器翻译对您有帮助吗?

starstarstarstarstar
Go to English page
免责声明:

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

服务链设计和实施

date_range 27-Jan-23

有关服务链的概述,请参阅数据中心交换矩阵蓝图架构组件中的服务链部分。

以下部分介绍如何在 EVPN VXLAN 网络中实施服务链和组播服务链。

服务链

服务链设计

图 1 显示了服务链配置的逻辑视图。其中显示了一个主干的左侧和右侧 VRF 配置。SRX 系列路由器是 PNF,并执行服务链。

图 1:服务链逻辑视图 Service Chaining Logical View

主干的流量:

  1. 来自叶租户的流量进入租户 VRF-151,并发往连接到租户 VRF-152 的网络。

  2. 由于没有从 VRF-151 到 VRF-152 的路由,因此将使用从 PNF 接收的路由执行默认路由查找。

  3. 从 PNF 接收默认路由后,VRF-151 通过 IRB.4088 将流量路由到 PNF。

  4. 流量到达 PNF,PNF 执行服务链。流量使用从 EBGP 接收的路由转发出 ae26.1。

  5. 流量现在到达租户 VRF-152,并按照常规路由查找和转发操作,向叶租户转发。

配置服务链

本节介绍如何为服务链配置主干,如图 1 所示。此配置基于 集中路由桥接叠加设计和实施 配置。

  1. 配置到 PNF 的 ESI 连接。
    content_copy zoom_out_map
    set interfaces xe-0/0/67:0 gigether-options 802.3ad ae26
    set interfaces ae26 esi 00:88:88:88:88:88:88:88:88:88
    set interfaces ae26 esi all-active
    set interfaces ae26 aggregated-ether-options lacp active
    set interfaces ae26 aggregated-ether-options lacp periodic fast
    set interfaces ae26 aggregated-ether-options lacp system-id 00:00:00:00:00:22
    set interfaces ae26 unit 0 family ethernet-switching interface-mode trunk
    
  2. 配置 VRF-151 向 PNF 的第 3 层连接。
    content_copy zoom_out_map
    set interfaces irb unit 4088 virtual-gateway-accept-data
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 preferred
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 virtual-gateway-address 10.88.0.254
    set interfaces irb unit 4088 family inet6 address 2001:db8::10:58:0:242/112 preferred
    set interfaces irb unit 4088 family inet6 address 2001:db8::10:58:0:242/112 virtual-gateway-address 2001:db8::10:58:0:254
    set interfaces irb unit 4088 virtual-gateway-v4-mac 00:00:5e:00:00:04
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4088
    set vlans 4088 vlan-id 4088
    set vlans 4088 l3-interface irb.4088
    set vlans 4088 vxlan vni 104088
    
  3. 配置 VRF-152 向 PNF 的第 3 层连接。
    content_copy zoom_out_map
    set interfaces irb unit 4089 virtual-gateway-accept-data
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 preferred
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 virtual-gateway-address 10.89.0.254
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 preferred
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 virtual-gateway-address 2001:db8::10:59:0:254
    set interfaces irb unit 4089 virtual-gateway-v4-mac 00:00:5e:00:00:04
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4089
    set vlans 4089 vlan-id 4089
    set vlans 4089 l3-interface irb.4089
    set vlans 4089 vxlan vni 104089
    
  4. 配置一个策略,将本地路由从 VRF-151 和 VRF-152 导出到 PNF。
    content_copy zoom_out_map
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 10 from protocol direct
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 10 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 20 from protocol bgp
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 20 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 30 then reject
    
  5. 配置 VRF-151 路由实例。
    content_copy zoom_out_map
    set routing-instances VRF-151 instance-type vrf
    set routing-instances VRF-151 interface irb.601
    set routing-instances VRF-151 interface irb.602
    set routing-instances VRF-151 interface irb.603
    set routing-instances VRF-151 interface irb.604
    set routing-instances VRF-151 interface lo0.151
    set routing-instances VRF-151 interface irb.4088
    set routing-instances VRF-151 route-distinguisher 192.186.0.2:151
    set routing-instances VRF-151 vrf-target target:100:151
    set routing-instances VRF-151 protocols bgp group to-srx type external
    set routing-instances VRF-151 protocols bgp group to-srx export DIRECT-EXPORT-TO-PNF
    set routing-instances VRF-151 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 family inet unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 peer-as 4000000001
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::10:58:0:1 family inet6 unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::10:58:0:1 peer-as 4000000001
    
  6. 配置 VRF-152 路由实例。
    content_copy zoom_out_map
    set routing-instances VRF-152 instance-type vrf
    set routing-instances VRF-152 interface irb.605
    set routing-instances VRF-152 interface irb.606
    set routing-instances VRF-152 interface irb.607
    set routing-instances VRF-152 interface irb.608
    set routing-instances VRF-152 interface lo0.152
    set routing-instances VRF-152 interface irb.4089
    set routing-instances VRF-152 route-distinguisher 192.186.0.2:152
    set routing-instances VRF-152 vrf-target target:100:152
    set routing-instances VRF-152 protocols bgp group to-srx type external
    set routing-instances VRF-152 protocols bgp group to-srx export DIRECT-EXPORT-TO-PNF
    set routing-instances VRF-152 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 family inet unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 peer-as 4000000001
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 family inet6 unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 peer-as 4000000001
    
  7. 为拓扑中的每个主干重复此过程。

验证服务链

要验证服务链是否正常运行:

  1. 在主干上,显示 VRF-152 中的本地路由。
    content_copy zoom_out_map
    host@SPINE-2> show route table VRF-152.inet.0 protocol direct 
    VRF-152.inet.0: 61 destinations, 62 routes (61 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.2.93.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.605
    10.2.94.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.606
    10.2.95.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.607
    10.2.96.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.608
    10.87.0.0/24       *[Direct/0] 1d 15:30:37
                        >  via irb.4087
    10.89.0.0/24       *[Direct/0] 1d 15:30:37
                        >  via irb.4089
    
    
    
  2. 在主干上,显示 VRF-151 中的本地路由。
    content_copy zoom_out_map
    host@SPINE2> show route table VRF-151.inet.0 protocol direct    
    VRF-151.inet.0: 63 destinations, 64 routes (63 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.2.89.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.601
    10.2.90.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.602
    10.2.91.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.603
    10.2.92.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.604
    10.86.0.0/24       *[Direct/0] 1d 15:30:44
                        >  via irb.4086
    10.88.0.0/24       *[Direct/0] 1d 15:30:44
                        >  via irb.4088
    
  3. 在主干上,检查从 PNF 接收的默认路由的 VRF-151 点的路由查找。
    content_copy zoom_out_map
    host@SPINE2> show route table VRF-151.inet.0 10.2.93.0
    VRF-151.inet.0: 63 destinations, 64 routes (63 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    0.0.0.0/0          *[BGP/170] 1d 15:33:08, localpref 100
                          AS path: 4000000001 I, validation-state: unverified
                        >  to 10.88.0.1 via irb.4088
    
    
  4. 在 PNF 设备上,检查租户 VRF-152 目标的路由查找。
    content_copy zoom_out_map
    host@PNF> show route 10.2.93.0 
    inet.0: 20 destinations, 52 routes (20 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.2.93.0/24       *[BGP/170] 2d 00:39:44, localpref 100
                          AS path: 4200000002 I, validation-state: unverified
                        > to 10.89.0.242 via ae26.1
    
  5. 在 PNF 设备上,检查它是否仅向租户 VRF-152 上的 EBGP 对等方发布默认路由。
    content_copy zoom_out_map
    host@PNF> show route advertising-protocol bgp 10.89.0.242 
    inet.0: 20 destinations, 52 routes (20 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 0.0.0.0/0               Self                                    I
    
  6. 在 PNF 设备上,检查它是否仅向租户 VRF-151 上的 EBGP 对等方发布默认路由。
    content_copy zoom_out_map
    host@PNF> show route advertising-protocol bgp 10.88.0.242
    inet.0: 20 destinations, 52 routes (20 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 0.0.0.0/0               Self                                    I
    
  7. 在主干上,验证主干是否正在向 PNF 传播本地 VRF-152 路由。
    content_copy zoom_out_map
    host@SPINE2> show route advertising-protocol bgp 10.89.0.1        
    VRF-152.inet.0: 52 destinations, 53 routes (52 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.2.93.0/24            Self                                    I
    * 10.2.94.0/24            Self                                    I
    * 10.2.95.0/24            Self                                    I
    * 10.2.96.0/24            Self                                    I
    * 10.87.0.0/24            Self                                    I
    * 10.89.0.0/24            Self                                    I
    * 192.68.152.1/32         Self                                    4100000000 I
    
  8. 在主干上,验证主干是否正在向 PNF 传播本地 VRF-151 路由。
    content_copy zoom_out_map
    host@SPINE2> show route advertising-protocol bgp 10.88.0.1    
    VRF-151.inet.0: 53 destinations, 54 routes (53 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.2.89.0/24            Self                                    I
    * 10.2.90.0/24            Self                                    I
    * 10.2.91.0/24            Self                                    I
    * 10.2.92.0/24            Self                                    I
    * 10.86.0.0/24            Self                                    I
    * 10.88.0.0/24            Self                                    I
    * 192.68.151.1/32         Self                                    4100000000 I
    

使用组播实现服务链

采用组播设计的服务链

图 2 显示了服务链配置的逻辑视图。VRF 路由实例和 IRB 接口均配置在同一主干上。

在这种设计中,我们使用 SRX 系列路由器作为 PNF 和 PIM 网关来执行服务链。

图 2:服务链逻辑视图 Service Chaining Logical View

组播接收器开始发送 IGMP 报告时主干 2 的流量:

  1. 叶设备侦听 IGMP 报告,并将 EVPN Type 6 路由播发至主干,以通知主干有关组播接收器。

  2. 主干会根据 VNI 映射接收 EVPN 6 类路由,并创建 PIM 加入 (*。G) VRF-152 中的条目。

    主干配置包括 PIM 网关上的 RP 地址。但是,在 VRF-152 路由实例上,只有一个通过 PNF 指向 RP 的默认路由。

  3. 接收器端 IRB(irb.605、irb.606 irb.607、irb.608)上的 PIM 指定路由器 (DR) 发送 PIM 加入 (*)。G) 向 irb.4089 上的 PNF 设备方向发展。

  4. PNF 设备会创建 PIM (*.G) 条目,ae26.1 作为传出接口。

    PNF 配置了 RP。

    在 PNF 上,RP 也在 PNF 上配置,并且查找 PIM RP 指向主干上的 VRF-151 接口 ae26.0 -> 接口

  5. PIM 加入到达 irb.4088 上的 VRF-151,并创建一个 PIM (*,G) 状态(以 irb.4088 作为传出接口),并查找 RP 点至 irb.4086。

  6. 主干会将 irb.4086 上的 PIM 加入条目发送至 PIM 网关。

  7. PIM 网关在 ae10.2 上接收 PIM (*,G) 加入。

VRF-151 上的组播源开始发送数据包时,主干 2 的流量:

  1. VRF-151 创建一个 PIM (*,G) 条目,并将 irb.4088 用作传出接口,也可通过 irb.4086 创建 RP。

  2. 主干 2 发送两个数据包—一个向 irb.4088 上的 PNF,一个向 irb.4086 上的 PIM 网关发送。

    当 PNF 收到数据包时:

    1. PNF 基于 PIM ( *.G ) 条目,它使用传出接口 ae26.1 创建的

    2. 组播流量到达 VRF-512 中的 irb.4089,并转发到叶上的接收器。

    当 PIM 网关收到数据包时,它会根据其 (*,G) PIM 条目转发数据包,而传出接口作为 ae10.2。

  3. 当流量从主干 2 上的 PIM 网关到达 irb.4086 时,主干 2 会删除 RPT/共享树。

使用组播配置服务链

本节介绍如何为服务链配置主干,如图 2 所示。

  1. 配置到 PNF 的 ESI 连接。
    content_copy zoom_out_map
    set interfaces xe-0/0/67:0 gigether-options 802.3ad ae26
    set interfaces ae26 esi 00:88:88:88:88:88:88:88:88:88
    set interfaces ae26 esi all-active
    set interfaces ae26 aggregated-ether-options lacp active
    set interfaces ae26 aggregated-ether-options lacp periodic fast
    set interfaces ae26 aggregated-ether-options lacp system-id 00:00:00:00:00:22
    set interfaces ae26 unit 0 family ethernet-switching interface-mode trunk
    
  2. 配置 VRF-151 向 PNF 的第 3 层连接。
    content_copy zoom_out_map
    set interfaces irb unit 4088 virtual-gateway-accept-data
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 preferred
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 virtual-gateway-address 10.88.0.254
    set interfaces irb unit 4088 family inet6 address 2001:db8::40:58:0:242/112 preferred
    set interfaces irb unit 4088 family inet6 address 2001:db8::40:58:0:242/112 virtual-gateway-address 2001:db8::40:58:0:254
    set interfaces irb unit 4088 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4088 
    set vlans 4088 vlan-id 4088
    set vlans 4088 l3-interface irb.4088
    set vlans 4088 vxlan vni 104088
    
  3. 配置 VRF-152 向 PNF 的第 3 层连接。
    content_copy zoom_out_map
    set interfaces irb unit 4089 proxy-macip-advertisement
    set interfaces irb unit 4089 virtual-gateway-accept-data
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 preferred
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 virtual-gateway-address 10.89.0.254
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 preferred
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 virtual-gateway-address 2001:db8::10:59:0:254
    set interfaces irb unit 4089 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4089 
    set vlans 4089 vlan-id 4089
    set vlans 4089 l3-interface irb.4089
    set vlans 4089 vxlan vni 104089
    
  4. 配置与 PIM 网关的 ESI 连接。
    content_copy zoom_out_map
    set interfaces xe-0/0/67:1 gigether-options 802.3ad ae15 
    set interfaces ae15 esi 00:22:22:22:22:22:22:22:22:22
    set interfaces ae15 esi all-active
    set interfaces ae15 aggregated-ether-options lacp active
    set interfaces ae15 aggregated-ether-options lacp periodic fast
    set interfaces ae15 aggregated-ether-options lacp system-id 00:00:00:00:00:22
    set interfaces ae15 unit 0 family ethernet-switching interface-mode trunk
    
  5. 配置 VRF-151 向 PIM 网关的第 3 层链路。
    content_copy zoom_out_map
    set interfaces irb unit 4086 proxy-macip-advertisement
    set interfaces irb unit 4086 virtual-gateway-accept-data
    set interfaces irb unit 4086 family inet address 10.86.0.242/24 preferred
    set interfaces irb unit 4086 family inet address 10.86.0.242/24 virtual-gateway-address 10.86.0.254
    set interfaces irb unit 4086 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae15 unit 0 family ethernet-switching vlan members 4086 
    set vlans 4086 vlan-id 4086
    set vlans 4086 l3-interface irb.4086
    set vlans 4086 vxlan vni 104086
    
  6. 配置 VRF-152 向 PIM 网关的第 3 层链路。
    content_copy zoom_out_map
    set interfaces irb unit 4087 proxy-macip-advertisement
    set interfaces irb unit 4087 virtual-gateway-accept-data
    set interfaces irb unit 4087 family inet address 10.87.0.242/24 preferred
    set interfaces irb unit 4087 family inet address 10.87.0.242/24 virtual-gateway-address 10.87.0.254
    set interfaces irb unit 4087 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae15 unit 0 family ethernet-switching vlan members 4087 
    set vlans 4087 vlan-id 4087
    set vlans 4087 l3-interface irb.4087
    set vlans 4087 vxlan vni 104087
    
  7. 配置一个策略,将本地路由从 VRF-151 和 VRF-152 导出到 PNF。
    content_copy zoom_out_map
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 10 from protocol direct
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 10 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 20 from protocol bgp
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 20 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 30 then reject
    
  8. 配置一个策略,将本地路由从 VRF-151 和 VRF-152 导出到 PIM 网关。
    content_copy zoom_out_map
    set policy-options policy-statement DIRECT-EXPORT-TO-PIM term 10 from protocol direct
    set policy-options policy-statement DIRECT-EXPORT-TO-PIM term 10 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-PIM term 20 then reject
    
  9. 为 VRF 151 配置路由实例。
    content_copy zoom_out_map
    set routing-instances VRF-151 instance-type vrf
    set routing-instances VRF-151 interface irb.601
    set routing-instances VRF-151 interface irb.602
    set routing-instances VRF-151 interface irb.603
    set routing-instances VRF-151 interface irb.604
    set routing-instances VRF-151 interface lo0.151
    set routing-instances VRF-151 interface irb.4088
    set routing-instances VRF-151 interface irb.4086
    set routing-instances VRF-151 route-distinguisher 192.186.0.2:151
    set routing-instances VRF-151 vrf-target target:100:151
    set routing-instances VRF-151 protocols bgp group to-srx type external
    set routing-instances VRF-151 protocols bgp group to-srx export DIRECT-EXPORT-TO-SRX
    set routing-instances VRF-151 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 family inet unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 peer-as 4000000001
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::40:58:0:1 family inet6 unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::40:58:0:1 peer-as 4000000001
    set routing-instances VRF-151 protocols bgp group to-pim type external
    set routing-instances VRF-151 protocols bgp group to-pim export DIRECT-EXPORT-TO-PIM
    set routing-instances VRF-151 protocols bgp group to-pim local-as 4200000002
    set routing-instances VRF-151 protocols bgp group to-pim neighbor 10.86.0.1 family inet unicast
    set routing-instances VRF-151 protocols bgp group to-pim neighbor 10.86.0.1 peer-as 4100000000
    set routing-instances VRF-151 protocols pim rp static address 192.68.151.1 group-ranges 225.0.4.0/24
    set routing-instances VRF-151 protocols pim rp static address 192.68.152.1 group-ranges 225.0.5.0/24
    set routing-instances VRF-151 protocols pim interface irb.601 family inet
    set routing-instances VRF-151 protocols pim interface irb.601 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.602 family inet
    set routing-instances VRF-151 protocols pim interface irb.602 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.604 family inet
    set routing-instances VRF-151 protocols pim interface irb.604 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.603 family inet
    set routing-instances VRF-151 protocols pim interface irb.603 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.4086 family inet
    set routing-instances VRF-151 protocols pim interface irb.4086 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.4088 family inet
    set routing-instances VRF-151 protocols pim interface irb.4088 mode sparse-dense
    
  10. 为 VRF 152 配置路由实例。
    content_copy zoom_out_map
    set routing-instances VRF-152 instance-type vrf
    set routing-instances VRF-152 interface irb.605
    set routing-instances VRF-152 interface irb.606
    set routing-instances VRF-152 interface irb.607
    set routing-instances VRF-152 interface irb.608
    set routing-instances VRF-152 interface lo0.152
    set routing-instances VRF-152 interface irb.4089
    set routing-instances VRF-152 interface irb.4087
    set routing-instances VRF-152 route-distinguisher 192.186.0.2:152
    set routing-instances VRF-152 vrf-target target:100:152
    set routing-instances VRF-152 protocols bgp group to-srx type external
    set routing-instances VRF-152 protocols bgp group to-srx export DIRECT-EXPORT-TO-SRX
    set routing-instances VRF-152 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 family inet unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 peer-as 4000000001
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 family inet6 unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 peer-as 4000000001
    set routing-instances VRF-152 protocols bgp group to-pim type external
    set routing-instances VRF-152 protocols bgp group to-pim export DIRECT-EXPORT-TO-PIM
    set routing-instances VRF-152 protocols bgp group to-pim local-as 4200000002
    set routing-instances VRF-152 protocols bgp group to-pim neighbor 10.87.0.1 family inet unicast
    set routing-instances VRF-152 protocols bgp group to-pim neighbor 10.87.0.1 peer-as 4100000000
    set routing-instances VRF-152 protocols pim rp static address 192.68.151.1 group-ranges 225.0.4.0/24
    set routing-instances VRF-152 protocols pim rp static address 192.68.152.1 group-ranges 225.0.5.0/24
    set routing-instances VRF-152 protocols pim interface irb.605 family inet
    set routing-instances VRF-152 protocols pim interface irb.605 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.606 family inet
    set routing-instances VRF-152 protocols pim interface irb.606 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.607 family inet
    set routing-instances VRF-152 protocols pim interface irb.607 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.608 family inet
    set routing-instances VRF-152 protocols pim interface irb.608 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.4087 family inet
    set routing-instances VRF-152 protocols pim interface irb.4087 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.4089 family inet
    set routing-instances VRF-152 protocols pim interface irb.4089 mode sparse-dense
    
  11. 为拓扑中的每个主干重复此过程。

验证使用组播的服务链

本节介绍如何使用组播配置服务链。请注意以下几点:

  • 组播源在 VRF-151 - VLAN 601 上

  • 组播接收器位于 VRF-152 - VLAN 606 上

  1. 显示 VRF-152 上为 PIM 配置的接口。此命令显示属于 DR 的接口。
    content_copy zoom_out_map
    host@SPINE5> show pim interfaces instance VRF-152 
    Stat = Status, V = Version, NbrCnt = Neighbor Count,
    S = Sparse, D = Dense, B = Bidirectional,
    DR = Designated Router, DDR = Dual DR, DistDR = Distributed DR,
    P2P = Point-to-point link, P2MP = Point-to-Multipoint,
    Active = Bidirectional is active, NotCap = Not Bidirectional Capable
    
    Name               Stat Mode IP V State        NbrCnt JoinCnt(sg/*g) DR address
    irb.4087           Up   SD    4 2 DR,NotCap         4 0/0            10.87.0.245
    irb.4089           Up   SD    4 2 DR,NotCap         4 50/50          10.89.0.245
    irb.605            Up   SD    4 2 DR,NotCap         3 0/0            10.2.93.245
    irb.606            Up   SD    4 2 DR,NotCap         3 0/0            10.2.94.245
    irb.607            Up   SD    4 2 DR,NotCap         3 0/0            10.2.95.245
    irb.608            Up   SD    4 2 DR,NotCap         3 0/0            10.2.96.245
    pime.32780         Up   S     4 2 P2P,NotCap        0 0/0
    pime.32781         Up   S     4 2 P2P,NotCap        0 0/0
    
    
  2. 上游接口上面向 RP 的显示 PIM 组,源指向 irb.4089 – 朝 PNF
    content_copy zoom_out_map
    host@SPINE5> show pim join extensive instance VRF-152 225.0.4.1 
    Instance: PIM.VRF-152 Family: INET
    R = Rendezvous Point Tree, S = Sparse, W = Wildcard
    
    Group: 225.0.4.1
        Source: *
        RP: 192.68.151.1
        Flags: sparse,rptree,wildcard
        Upstream interface: irb.4089              
        Upstream neighbor: 10.89.0.1
        Upstream state: Join to RP
        Uptime: 00:14:30 
        Downstream neighbors:
            Interface: irb.606                
                10.2.94.245 State: Join Flags: SRW  Timeout: Infinity
                Uptime: 00:14:30 Time since last Join: 00:14:30
        Number of downstream interfaces: 1
        Number of downstream neighbors: 1
    
    Group: 225.0.4.1
        Source: 10.2.89.5
        Flags: sparse,spt
        Upstream interface: irb.4089              
        Upstream neighbor: 10.89.0.1
        Upstream state: Join to Source, No Prune to RP
        Keepalive timeout: 317
        Uptime: 00:13:51 
        Downstream neighbors:
            Interface: irb.606                
                10.2.94.245 State: Join Flags: S   Timeout: Infinity
                Uptime: 00:13:51 Time since last Join: 00:13:51
        Number of downstream interfaces: 1
        Number of downstream neighbors: 1
    

服务链 — 发布历史

表 1 提供了本部分所有功能的历史记录及其在此参考设计中支持的功能。

表 1:服务链发布历史

释放

描述

19.1R2

运行 Junos OS 19.1R2 及更高版本的 QFX10002-60C 和 QFX5120-32C 交换机支持本部分记录的所有功能。

18.4R2

运行 Junos OS 18.4R2 版和同一版本列的更高版本的 QFX5120-48Y 交换机支持本节中记录的所有功能。

18.1R3-S3

参考设计中支持 Junos OS 18.1R3-S3 版本及同一版本列更高版本的设备也支持本部分记录的所有功能。

external-footer-nav