/
Example for Configuring PIM-SM

Example for Configuring PIM-SM



Networking Requirements

In the following topology, a multicast Source sends the multicast traffic to the Receiver through Switch C, Switch B and Switch A.

  • Configure C-BSR and C-RP on Switch B to utilize PIM BootStrap Router mechanism to accomplish dynamic RP election.
  • Configure ge-1/1/2 as an IGMP interface on Switch A which is connected to the Receiver.
  • In this example, the static route will be used to make the switches in PIM-SM domain can communicate with each other. 

Figure 1. PIM-SM Multicast Routing Configuration

Procedure

Switch A

Step1        Configure VLAN.

admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2
admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3
admin@XorPlus# set vlan-interface interface vlan-2 vif vlan-2 address 10.10.1.1 prefix-length 24
admin@XorPlus# set vlan-interface interface vlan-3 vif vlan-3 address 10.10.3.1 prefix-length 24

Step2        Enable IP routing.

admin@Xorplus# set ip routing enable true

Step3       Enable the VLAN interfaces as multicast interface.

admin@XorPlus# set multicast-interface interface vlan-2 vif vlan-2 disable false
admin@XorPlus# set multicast-interface interface vlan-3 vif vlan-3 disable false

Step4       Enable IGMP on the L3 VLAN interfaces of the PIM router connected to the receiver.

admin@XorPlus# set protocols igmp interface vlan-3 vif vlan-3

Step5       Enable PIM-SM on the L3 VLAN interfaces.

admin@XorPlus# set protocols pimsm4 interface vlan-2 vif vlan-2 disable false
admin@XorPlus# set protocols pimsm4 interface vlan-3 vif vlan-3 disable false
admin@XorPlus# set protocols pimsm4 interface loopback vif loopback disable false

Step6       Configure static routes to other switches.

admin@XorPlus#set protocols static route 10.10.2.0/24 next-hop 10.10.1.2
admin@XorPlus#set protocols static route 10.10.4.0/24 next-hop 10.10.1.2

Step7       Commit the configuration.

admin@Xorplus# commit

Step8       Verify the configuration.

  • Run run show pim interface command to show information about all interfaces on which PIM-SM is enabled.
admin@XorPlus# run show pim interface
Interface State Mode V PIMstate Priority DRaddr Neighbors
---------- -------- ------ - -------- -------- --------------- ---------
vlan-2 UP Sparse 2 DR 1 10.10.1.1 0
vlan-3 UP Sparse 2 DR 1 10.10.3.1 0
register_vif UP Sparse 2 DR 1 10.10.1.1 0
  • Run run show igmp interface command to show IGMP interface information.
admin@XorPlus# run show igmp interface
Interface State Querier Timeout Version Groups
------------ -------- --------------- --------- --------- --------
vlan-2 DISABLED 10.10.1.1 None 2 0
vlan-3 UP 10.10.3.1 None 2 3 

Switch B

Step1      Configure VLAN.

admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2
admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3
admin@XorPlus# set vlan-interface interface vlan-2 vif vlan-2 address 10.10.1.2 prefix-length 24
admin@XorPlus# set vlan-interface interface vlan-3 vif vlan-3 address 10.10.2.2 prefix-length 24
admin@XorPlus# set vlan-interface loopback address 7.6.5.3 prefix-length 32

Step2        Enable IP routing.

admin@Xorplus# set ip routing enable true

Step3       Enable the VLAN interfaces as multicast interface.

admin@XorPlus# set multicast-interface interface vlan-2 vif vlan-2 disable false
admin@XorPlus# set multicast-interface interface vlan-3 vif vlan-3 disable false

Step4       Enable PIM-SM on the L3 VLAN interfaces.

admin@XorPlus# set protocols pimsm4 interface vlan-2 vif vlan-2 disable false
admin@XorPlus# set protocols pimsm4 interface vlan-3 vif vlan-3 disable false
admin@XorPlus# set protocols pimsm4 interface loopback vif loopback disable false

Step5       Configure C-BSR and C-RP.

admin@XorPlus# set protocols pimsm4 bootstrap cand-bsr scope-zone 224.0.0.0/4 cand-bsr-by-vif-name loopback
admin@XorPlus# set protocols pimsm4 bootstrap cand-rp group-prefix 238.0.0.0/8 cand-rp-by-vif-name loopback

Step6      Configure static routes to other switches.

admin@XorPlus# set protocols pimsm4 bootstrap cand-bsr scope-zone 224.0.0.0/4 cand-bsr-by-vif-name loopback
admin@XorPlus# set protocols pimsm4 bootstrap cand-rp group-prefix 238.0.0.0/8 cand-rp-by-vif-name loopback

Step7      Commit the configuration.

admin@Xorplus# commit

Step8      Verify the configuration.

  • Run run show pim bootstrap command to show information about PIM bootstrap routers.
admin@XorPlus# run show pim bootstrap
Active zones:
BSR Pri LocalAddress Pri State Timeout SZTimeout
------------- -------  -------- ------- ------------ ----------------
10.10.2.2 1 10.10.2.2 1 Elected 19 -1
Expiring zones:
BSR Pri LocalAddress Pri State Timeout SZTimeout
------------- -------  -------- ------- ------------ ----------------
  • Run run show pim rps command to show information about the RP.  
admin@XorPlus# run show pim rps
RP Type Pri Holdtime Timeout ActiveGroups GroupPrefix
------------- -------  -------- ------- ------------ ----------------
10.10.1.2 bootstrap 192 150 -1 0 238.0.0.0/8

Switch C

Step1      Configure VLAN.

admin@XorPlus# set vlans vlan-id 2 l3-interface vlan-2
admin@XorPlus# set vlans vlan-id 3 l3-interface vlan-3
admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 2
admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 3
admin@XorPlus# set vlan-interface interface vlan-2 vif vlan-2 address 10.10.2.1 prefix-length 24
admin@XorPlus# set vlan-interface interface vlan-3 vif vlan-3 address 10.10.4.1 prefix-length 24

Step2        Enable IP routing.

admin@Xorplus# set ip routing enable true

Step3       Enable the VLAN interfaces as multicast interface.

admin@XorPlus# set multicast-interface interface vlan-2 vif vlan-2 disable false
admin@XorPlus# set multicast-interface interface vlan-3 vif vlan-3 disable false

Step4       Enable PIM-SM on the L3 VLAN interfaces.

admin@XorPlus# set protocols pimsm4 interface vlan-2 vif vlan-2 disable false
admin@XorPlus# set protocols pimsm4 interface vlan-3 vif vlan-3 disable false
admin@XorPlus# set protocols pimsm4 interface loopback vif loopback disable false

Step5      Configure static routes to other switches.

admin@XorPlus#set protocols static route 10.10.1.0/24 next-hop 10.10.2.2
admin@XorPlus#set protocols static route 10.10.3.0/24 next-hop 10.10.2.2

Step6      Commit the configuration.

admin@Xorplus# commit

Step7      Verify the configuration.

  • Run run show pim interface command to show information about all interfaces on which PIM-SM is enabled.
admin@XorPlus# run show pim interface
Interface State Mode V PIMstate Priority DRaddr Neighbors
---------- -------- ------ - -------- -------- --------------- ---------
vlan-2 UP Sparse 2 DR 1 10.10.2.1 0
vlan-3 UP Sparse 2 DR 1 10.10.4.1 0
register_vif UP Sparse 2 DR 1 10.10.2.1 0

Copyright © 2025 Pica8 Inc. All Rights Reserved.