Example for Configuring PIM-SM Inter-domain Multicast Using MSDP



Network Requirement

As shown in Figure 1, there are two autonomous systems in the network. Each AS contains a PIM-SM domain, the multicast source is in PIM-SM1, the receiver is in PIM-SM2. The network requirement is that the receiver in domain PIM-SM2 can receive multicast data sent by the multicast source in domain PIM-SM1.

Figure 1 Network Diagram for Configuring PIM-SM Inter-domain Multicast Using MSDP

Configuration Roadmap

Configuring MSDP to establish MSDP peer relationship between RPs in each PIM-SM domain to achieve inter-domain multicast communication.

  1. Configure the IP address for each switch interface and configure OSPF protocol in the ASs to ensure route reachability within each AS.
  2. To ensure route reachability between ASs, configure eBGP peers between ASs and import OSPF routes into BGP.
  3. Enable PIM-SM on each multicast interface, and enable IGMP on the host-side interface.
  4. Configure static RP on each PIM-SM router in domains PIM-SM1 and PIM-SM2, and specify the loopback interface address of Switch 2 and Switch 3 as the RP address.
  5. Configure MSDP source and member on each RP to establish MSDP peer relationship between RPs in each domain.

Procedure

Switch 1

admin@Switch1# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 13
admin@Switch1# set interface gigabit-ethernet ge-1/1/10 family ethernet-switching native-vlan-id 200
admin@Switch1# set ip routing enable true
admin@Switch1# set l3-interface vlan-interface vlan200 address 200.200.200.1 prefix-length 24
admin@Switch1# set l3-interface vlan-interface vlan13 address 10.0.13.1 prefix-length 24
admin@Switch1# set protocols ospf router-id 1.1.1.1
admin@Switch1# set protocols ospf network 200.200.200.0/24 area 0
admin@Switch1# set protocols ospf network 10.0.13.0/24 area 0
admin@Switch1# set protocols pim rp 3.3.3.3 group 224.0.0.0/4
admin@Switch1# set protocols pim interface vlan200
admin@Switch1# set protocols pim interface vlan13
admin@Switch1# set vlans vlan-id 13 l3-interface vlan13
admin@Switch1# set vlans vlan-id 200 l3-interface vlan200
admin@Switch1# commit

Switch 2

admin@Switch2# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 13
admin@Switch2# set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 23
admin@Switch2# set ip routing enable true
admin@Switch2# set l3-interface loopback lo address 3.3.3.3 prefix-length 32
admin@Switch2# set l3-interface vlan-interface vlan13 address 10.0.13.3 prefix-length 24
admin@Switch2# set l3-interface vlan-interface vlan23 address 10.0.23.3 prefix-length 24
admin@Switch2# set protocols bgp local-as 100
admin@Switch2# set protocols bgp router-id 3.3.3.3
admin@Switch2# set protocols bgp neighbor 10.0.23.2 remote-as 200
admin@Switch2# set protocols bgp ipv4-unicast redistribute connected
admin@Switch2# set protocols bgp ipv4-unicast redistribute ospf
admin@Switch2# set protocols msdp mesh-group 6.6.6.6 member 3.3.3.3
admin@Switch2# set protocols msdp mesh-group 6.6.6.6 source 2.2.2.2
admin@Switch2# set protocols ospf router-id 3.3.3.3
admin@Switch2# set protocols ospf network 3.3.3.3/32 area 0
admin@Switch2# set protocols ospf network 10.0.13.0/24 area 0
admin@Switch2# set protocols ospf redistribute bgp
admin@Switch2# set protocols pim rp 3.3.3.3 group 224.0.0.0/4
admin@Switch2# set protocols pim interface lo
admin@Switch2# set protocols pim interface vlan13
admin@Switch2# set protocols pim interface vlan23
admin@Switch2# set vlans vlan-id 13 l3-interface vlan13
admin@Switch2# set vlans vlan-id 23 l3-interface vlan23
admin@Switch2# commit

Switch 3

admin@Switch3# set interface gigabit-ethernet ge-1/1/5 family ethernet-switching native-vlan-id 24
admin@Switch3# set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 23
admin@Switch3# set ip routing enable true
admin@Switch3# set l3-interface loopback lo address 2.2.2.2 prefix-length 32
admin@Switch3# set l3-interface vlan-interface vlan24 address 10.0.24.2 prefix-length 24
admin@Switch3# set l3-interface vlan-interface vlan23 address 10.0.23.2 prefix-length 24
admin@Switch3# set protocols bgp local-as 200
admin@Switch3# set protocols bgp router-id 2.2.2.2
admin@Switch3# set protocols bgp neighbor 10.0.23.3 remote-as 100
admin@Switch3# set protocols bgp ipv4-unicast redistribute connected
admin@Switch3# set protocols bgp ipv4-unicast redistribute ospf
admin@Switch3# set protocols msdp mesh-group 6.6.6.6 member 2.2.2.2
admin@Switch3# set protocols msdp mesh-group 6.6.6.6 source 3.3.3.3
admin@Switch3# set protocols ospf router-id 2.2.2.2
admin@Switch3# set protocols ospf network 10.0.24.0/24 area 0
admin@Switch3# set protocols ospf network 2.2.2.2/32 area 0
admin@Switch3# set protocols ospf redistribute bgp
admin@Switch3# set protocols pim rp 2.2.2.2 group 224.0.0.0/4
admin@Switch3# set protocols pim interface vlan24
admin@Switch3# set protocols pim interface lo
admin@Switch3# set protocols pim interface vlan23
admin@Switch3# set vlans vlan-id 23 l3-interface vlan23
admin@Switch3# set vlans vlan-id 24 l3-interface vlan24
admin@Switch3# commit

Switch 4

admin@Switch4# set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 24
admin@Switch4# set interface gigabit-ethernet te-1/1/10 family ethernet-switching native-vlan-id 100
admin@Switch4# set ip routing enable true
admin@Switch4# set l3-interface vlan-interface vlan24 address 10.0.24.4 prefix-length 24
admin@Switch4# set l3-interface vlan-interface vlan100 address 100.100.100.1 prefix-length 24
admin@Switch4# set protocols igmp interface vlan100
admin@Switch4# set protocols ospf router-id 4.4.4.4
admin@Switch4# set protocols ospf network 10.0.24.0/24 area 0
admin@Switch4# set protocols ospf network 100.100.100.0/24 area 0
admin@Switch4# set protocols pim rp 2.2.2.2 group 224.0.0.0/4
admin@Switch4# set protocols pim interface vlan24
admin@Switch4# set protocols pim interface vlan100
admin@Switch4# set vlans vlan-id 24 l3-interface vlan24
admin@Switch4# set vlans vlan-id 100 l3-interface vlan100
admin@Switch4# commit

Verify the Configuration

  • You can view the establishment state for MSDP peers by using the run show msdp mesh-group command.
admin@Switch2# run show msdp mesh-group
Mesh group : 6.6.6.6
  Source : 3.3.3.3
  Member                 State
  2.2.2.2          established

admin@Switch3# run show msdp mesh-group
Mesh group : 6.6.6.6
  Source : 2.2.2.2
  Member                 State
  3.3.3.3          established
  • You can view PIM routes on the switches by using run show mroute Multicast source 200.200.200.2 in the PIM-SM1 domain sends multicast data to multicast groups 237.0.0.1, 237.0.0.2, 237.0.0.3, 237.0.0.4, 237.0.0.5, 238.0.0.1 and 239.255.255.250. Receiver in PIM-SM2 can receive the multicast data.
admin@Switch2# run show mroute
IP Multicast Routing Table
Flags: S - Sparse, C - Connected, P - Pruned
       R - RP-bit set, F - Register flag, T - SPT-bit set

Source          Group           Flags           Proto  Input            Output           TTL  Uptime
200.200.200.2   237.0.0.1       ST              PIM    vlan13           vlan23           1    00:16:30
200.200.200.2   237.0.0.2       ST              PIM    vlan13           vlan23           1    00:15:56
200.200.200.2   237.0.0.3       ST              PIM    vlan13           vlan23           1    00:15:56
200.200.200.2   237.0.0.4       ST              PIM    vlan13           vlan23           1    00:15:56
200.200.200.2   237.0.0.5       ST              PIM    vlan13           vlan23           1    00:15:56
200.200.200.2   238.0.0.1       ST              PIM    vlan13           vlan23           1    00:16:30
200.200.200.2   239.255.255.250 ST              PIM    vlan13           vlan23           1    00:16:30

admin@Switch3# run show mroute
IP Multicast Routing Table
Flags: S - Sparse, C - Connected, P - Pruned
       R - RP-bit set, F - Register flag, T - SPT-bit set

Source          Group          Flags            Proto  Input            Output           TTL  Uptime
*               237.0.0.1       S               PIM    lo               vlan24           1    00:40:32
200.200.200.2   237.0.0.1       ST              PIM    vlan23           vlan24           1    00:41:02
*               237.0.0.2       S               PIM    lo               vlan24           1    00:40:35
200.200.200.2   237.0.0.2       ST              PIM    vlan23           vlan24           1    00:41:02
*               237.0.0.3       S               PIM    lo               vlan24           1    00:40:30
200.200.200.2   237.0.0.3       ST              PIM    vlan23           vlan24           1    00:41:02
*               237.0.0.4       S               PIM    lo               vlan24           1    00:40:31
200.200.200.2   237.0.0.4       ST              PIM    vlan23           vlan24           1    00:41:02
*               237.0.0.5       S               PIM    lo               vlan24           1    00:40:27
200.200.200.2   237.0.0.5       ST              PIM    vlan23           vlan24           1    00:41:02
*               238.0.0.1       S               PIM    lo               vlan24           1    00:40:28
200.200.200.2   238.0.0.1       ST              PIM    vlan23           vlan24           1    00:41:02
*               239.255.255.250 S               PIM    lo               vlan24           1    00:40:27
200.200.200.2   239.255.255.250 ST              STAR   vlan23           vlan24           1    00:41:02
  • You can view (S, G) entries cache on MSDP peer switches by using the run show msdp saRP” is the source RP address that advertises the (S, G) entry. “RP” value “-” indicates that the device running the show command is the source RP advertising the (S, G) entry.
admin@Switch2# run show msdp sa
Source                  Group                   RP  Local  SPT    Uptime
200.200.200.2          237.0.0.1                -      y    -  00:01:39
200.200.200.2          237.0.0.2                -      y    -  00:00:06
200.200.200.2          237.0.0.3                -      y    -  00:00:06
200.200.200.2          237.0.0.4                -      y    -  00:00:06
200.200.200.2          237.0.0.5                -      y    -  00:00:06
200.200.200.2          238.0.0.1                -      y    -  00:01:39

admin@Switch3# run show msdp sa
Source                  Group             RP      Local  SPT  Uptime
200.200.200.2          237.0.0.1          3.3.3.3      n    y  00:32:16
200.200.200.2          237.0.0.2          3.3.3.3      n    y  00:00:39
200.200.200.2          237.0.0.3          3.3.3.3      n    y  00:00:39
200.200.200.2          237.0.0.4          3.3.3.3      n    y  00:00:39
200.200.200.2          237.0.0.5          3.3.3.3      n    y  00:00:39
200.200.200.2          238.0.0.1          3.3.3.3      n    y  00:32:16
200.200.200.2    239.255.255.250          3.3.3.3      n    y  00:00:11


Copyright © 2024 Pica8 Inc. All Rights Reserved.