MEG or PEG configuration example for Ingress Replication on the SBD

This section shows a configuration example for a pair of redundant MEGs. For a PEG example, replace the MVPN configuration for PIM interfaces in the VPRN service.

Each MEG in the pair is configured with a VPRN that contains the MVPN configuration and an SBD R-VPLS. It is assumed that there are no local sources or receivers in this example. The use of domain-id in the VPRN and the SBD R-VPLS prevents control plane loops for unicast routes reinjected from the IP-VPN domain into the EVPN domain, and vice versa. Preventing these loops guarantees the correct installation of unicast routes in the MEGs' route tables, and therefore ensures the C-multicast routes are correctly advertised and processed. SeeBGP D-PATH attribute for Layer 3 loop protection for more information about the configuration of domain ID. The following CLI shows the configuration in MEG1.

// MEG1’s VPRN service

*A:MEG1# configure service vprn 6000 
*A:MEG1>config>service>vprn# info 
----------------------------------------------
            interface "SBD-6002" create
                vpls "SBD-6002"
                    evpn-tunnel supplementary-broadcast-domain
                exit
            exit
            bgp-ipvpn
                mpls
                    auto-bind-tunnel
                        resolution any
                    exit
                    domain-id 64500:6000
                    route-distinguisher 192.0.2.2:6000
                    vrf-target target:64500:6000
                    no shutdown
                exit
            exit
            igmp
                interface "SBD-6002"
                    no shutdown
                exit
                no shutdown
            exit
            pim
                interface "SBD-6002"
                    multicast-senders always
                exit
                apply-to all
                rp
                    static
                        address 2.2.2.2
                            group-prefix 239.0.0.0/8
                        exit          
                    exit
                    bsr-candidate
                        shutdown
                    exit
                    rp-candidate
                        shutdown
                    exit
                exit
                no shutdown
            exit
            mvpn
                auto-discovery default
                c-mcast-signaling bgp
                intersite-shared persistent-type5-adv
                provider-tunnel
                    inclusive
                        mldp
                            no shutdown
                        exit
                    exit
                exit
                vrf-target unicast
                exit
            exit
            no shutdown
----------------------------------------------

// MEG1’s SBD service

*A:MEG1>config>service>vprn# /configure service vpls 6002 
*A:MEG1>config>service>vpls# info 
----------------------------------------------
            allow-ip-int-bind
                forward-ipv4-multicast-to-ip-int
                forward-ipv6-multicast-to-ip-int
                evpn-mcast-gateway create
                    non-dr-attract-traffic from-evpn from-pim-mvpn
                    no shutdown
                exit
            exit
            bgp
            exit
            bgp-evpn
                no mac-advertisement
                ip-route-advertisement domain-id 64500:6002
                sel-mcast-advertisement
                evi 6002
                mpls bgp 1
                    ingress-replication-bum-label
                    ecmp 2
                    auto-bind-tunnel
                        resolution any
                    exit
                    no shutdown
                exit
            exit
            igmp-snooping
                no shutdown
            exit
            mld-snooping
                no shutdown
            exit
            no shutdown
----------------------------------------------

The configuration of the redundant MEG2 is as follows:

// MEG2’s VPRN configuration

*A:MEG2# configure service vprn 6000 
*A:MEG2>config>service>vprn# info 
----------------------------------------------
            interface "SBD-6002" create
                vpls "SBD-6002"
                    evpn-tunnel supplementary-broadcast-domain
                exit
            exit
            bgp-ipvpn
                mpls
                    auto-bind-tunnel
                        resolution any
                    exit
                    domain-id 64500:6000
                    route-distinguisher 192.0.2.3:6000
                    vrf-target target:64500:6000
                    no shutdown
                exit
            exit
            igmp
                interface "SBD-6002"
                    no shutdown
                exit
                no shutdown
            exit
            pim
                interface "SBD-6002"
                    multicast-senders always
                exit
                apply-to all
                rp
                    static
                        address 3.3.3.3
                            group-prefix 239.0.0.0/8
                        exit          
                    exit
                    bsr-candidate
                        shutdown
                    exit
                    rp-candidate
                        shutdown
                    exit
                exit
                no shutdown
            exit
            mvpn
                auto-discovery default
                c-mcast-signaling bgp
                intersite-shared persistent-type5-adv
                provider-tunnel
                    inclusive
                        mldp
                            no shutdown
                        exit
                    exit
                exit
                vrf-target unicast
                exit
            exit
            no shutdown
----------------------------------------------

// MEG2 SBD configuration

*A:MEG2>config>service>vprn# /configure service vpls 6002 
*A:MEG2>config>service>vpls# info 
----------------------------------------------
            allow-ip-int-bind
                forward-ipv4-multicast-to-ip-int
                forward-ipv6-multicast-to-ip-int
                evpn-mcast-gateway create
                    non-dr-attract-traffic from-evpn from-pim-mvpn
                    no shutdown
                exit
            exit
            bgp
            exit
            bgp-evpn
                no mac-advertisement
                ip-route-advertisement domain-id 64500:6002
                sel-mcast-advertisement
                evi 6002
                mpls bgp 1
                    ingress-replication-bum-label
                    ecmp 2
                    auto-bind-tunnel
                        resolution any
                    exit
                    no shutdown
                exit
            exit
            igmp-snooping
                no shutdown
            exit
            mld-snooping
                no shutdown
            exit
            no shutdown
----------------------------------------------

After the preceding configuration is added, MEG1 and MEG2 run the DR election. In the following example, which displays a sample DR election result, MEG1 is the DR:

*A:MEG1# show service id "SBD-6002" evpn-mcast-gateway all 

===============================================================================
Service Evpn Multicast Gateway
===============================================================================
Type                         : mvpn-pim                
Admin State                  : Enabled                 
DR Activation Timer          : 3 secs                  
Mvpn Evpn Gateway DR         : Yes                     
Pim  Evpn Gateway DR         : Yes                     
===============================================================================

===============================================================================
Mvpn Evpn Gateway
===============================================================================
DR Activation Timer Remaining: 3 secs                  
DR                           : Yes                     
DR Last Change               : 09/27/2021 08:50:32     
===============================================================================

===============================================================================
Candidate list
===============================================================================
Orig-Ip                                 Time Added
-------------------------------------------------------------------------------
192.0.2.2                               09/27/2021 08:50:29
192.0.2.3                               09/27/2021 08:51:20
-------------------------------------------------------------------------------
Number of Entries: 2
===============================================================================

===============================================================================
Pim Evpn Gateway
===============================================================================
DR Activation Timer Remaining: 3 secs                  
DR                           : Yes                     
DR Last Change               : 09/27/2021 08:50:32     
===============================================================================

===============================================================================
Candidate list
===============================================================================
Orig-Ip                                 Time Added
-------------------------------------------------------------------------------
192.0.2.2                               09/27/2021 08:50:29
192.0.2.3                               09/27/2021 08:51:20
-------------------------------------------------------------------------------
Number of Entries: 2
===============================================================================


*A:MEG2# show service id “SBD-6002” evpn-mcast-gateway all 

===============================================================================
Service Evpn Multicast Gateway
===============================================================================
Type                         : mvpn-pim                
Admin State                  : Enabled                 
DR Activation Timer          : 3 secs                  
Mvpn Evpn Gateway DR         : No                      
Pim  Evpn Gateway DR         : No                      
===============================================================================

===============================================================================
Mvpn Evpn Gateway
===============================================================================
DR Activation Timer Remaining: 3 secs                  
DR                           : No                      
DR Last Change               : 09/27/2021 08:51:24     
===============================================================================

===============================================================================
Candidate list
===============================================================================
Orig-Ip                                 Time Added
-------------------------------------------------------------------------------
192.0.2.2                               09/27/2021 08:51:21
192.0.2.3                               09/27/2021 08:50:37
-------------------------------------------------------------------------------
Number of Entries: 2
===============================================================================

===============================================================================
Pim Evpn Gateway
===============================================================================
DR Activation Timer Remaining: 3 secs                  
DR                           : No                      
DR Last Change               : 09/27/2021 08:51:24     
===============================================================================

===============================================================================
Candidate list
===============================================================================
Orig-Ip                                 Time Added
-------------------------------------------------------------------------------
192.0.2.2                               09/27/2021 08:51:21
192.0.2.3                               09/27/2021 08:50:37
-------------------------------------------------------------------------------
Number of Entries: 2
===============================================================================

If a source 40.0.0.1 is located in a remote PE of the MVPN network, and it is streaming group 239.0.0.44, the DR (for example, MEG1) attracts the traffic (by sending a C-multicast source join route) and forwards it to the SBD. The non-DR MEG2 does not add the SBD to the OIF list, and therefore it does not forward the multicast traffic to the OISM domain. The following is a sample output for this scenario.

// On the DR, MEG1, the SBD-6002 is added to the OIF list

*A:MEG1# show router 6000 pim group 239.0.0.44 detail 

===============================================================================
PIM Source Group ipv4
===============================================================================
Group Address      : 239.0.0.44
Source Address     : 40.0.0.1
RP Address         : 2.2.2.2
Advt Router        : 192.0.2.4
Flags              : spt                Type               : (S,G)
Mode               : sparse             
MRIB Next Hop      : 192.0.2.4
MRIB Src Flags     : remote             
Keepalive Timer    : Not Running        
Up Time            : 2d 04:42:53        Resolved By        : rtable-u
 
Up JP State        : Joined             Up JP Expiry       : 0d 00:00:06
Up JP Rpt          : Not Joined StarG   Up JP Rpt Override : 0d 00:00:00
 
Register State     : No Info            
Reg From Anycast RP: No                 
 
Rpf Neighbor       : 192.0.2.4
Incoming Intf      : mpls-if-73731
Outgoing Intf List : SBD-6002
 
Curr Fwding Rate   : 0.000 kbps         
Forwarded Packets  : 9999               Discarded Packets  : 0
Forwarded Octets   : 839916             RPF Mismatches     : 0
Spt threshold      : 0 kbps             ECMP opt threshold : 7
Admin bandwidth    : 1 kbps             
-------------------------------------------------------------------------------
Groups : 1
===============================================================================

// SBD-6002 is not added to the OIF list on the non-DR MEG2

*A:PE-3# show router 6000 pim group 239.0.0.44 detail 

===============================================================================
PIM Source Group ipv4
===============================================================================
Group Address      : 239.0.0.44
Source Address     : 40.0.0.1
RP Address         : 3.3.3.3
Advt Router        : 192.0.2.4
Flags              : spt                Type               : (S,G)
Mode               : sparse             
MRIB Next Hop      : 192.0.2.4
MRIB Src Flags     : remote             
Keepalive Timer    : Not Running        
Up Time            : 2d 04:43:02        Resolved By        : rtable-u
 
Up JP State        : Joined             Up JP Expiry       : 0d 00:00:58
Up JP Rpt          : Not Joined StarG   Up JP Rpt Override : 0d 00:00:00
 
Register State     : No Info            
Reg From Anycast RP: No                 
 
Rpf Neighbor       : 192.0.2.4
Incoming Intf      : mpls-if-73733
Outgoing Intf List : 
 
Curr Fwding Rate   : 0.000 kbps         
Forwarded Packets  : 0                  Discarded Packets  : 0
Forwarded Octets   : 0                  RPF Mismatches     : 0
Spt threshold      : 0 kbps             ECMP opt threshold : 7
Admin bandwidth    : 1 kbps             
-------------------------------------------------------------------------------
Groups : 1
===============================================================================