/
Example 2 for Configuring PIM-SM

Example 2 for Configuring PIM-SM


In the following topology, Switch B is the C-BSR and C-RP. Host A is a receiver for multicast traffic, and Host B is a multicast source that will send the multicast traffic.

You'll need to configure ge-1/1/2 as an IGMP interface in Switch A for Host A.

In this example, the static route in the RIB will be used by PIM-SM. 


 
                  Figure 8-1. PIM-SM multicast routing configuration. 


Configuring Switch A

For switch A, configure ge-1/1/2 as an IGMP interface and ge-1/1/1 as a PIM-SM interface.

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
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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
admin@XorPlus# set protocols igmp interface vlan-3 vif vlan-3
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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# commit
Waiting for merging configuration.
Commit OK.
Save done.
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
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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 
admin@XorPlus#
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 


Configuring Switch B

Configure 2 PIM-SM interfaces, ge-1/1/1 and ge-1/1/2. You will also need to configure a candidate BSR and a candidate RP.

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# commit
Waiting for merging configuration.
Commit OK.
Save done.
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
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus# set protocols pimsm4 bootstrap cand-bsr scope-zone 224.0.0.0/4 cand-bsr-by-vif-name vlan-3
admin@XorPlus# set protocols pimsm4 bootstrap cand-rp group-prefix 238.0.0.0/8 cand-rp-by-vif-name vlan-2
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus#set protocols static route 10.10.3.0/24 next-hop 10.10.1.1
admin@XorPlus#set protocols static route 10.10.4.0/24 next-hop 10.10.2.1
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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
admin@XorPlus#
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 
admin@XorPlus# 


Configuring Switch C

Configure 2 PIM-SM interfaces, ge-1/1/1 and ge-1/1/2.You will also need to configure a candidate BSR and a candidate RP.

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-2vif vlan-2 address 10.10.2.1 prefix-length 24
admin@XorPlus# set vlan-interface interface vlan-3vif vlan-3 address 10.10.4.1 prefix-length 24
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
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# commit
Waiting for merging configuration.
Commit OK.
Save done.
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
admin@XorPlus# commit
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus#
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 
admin@XorPlus# 


Copyright © 2025 Pica8 Inc. All Rights Reserved.