Example for Configuring Basic PIM-SM
Networking Requirements
As shown in Figure 1, Host B wants to receive multicast data from Host A (Source) through the PICA8 Switch.
Figure1. User Configuration Topology of PIM-SM
Follow the configuration roadmap below to complete the configuration on PICA8 Switch.
- Create the L3 VLAN interfaces.
- Enable multicast interface function on the L3 VLAN interfaces.
- Enable IGMP on the L3 VLAN interfaces.
- Enable PIM-SM on L3 VLAN interfaces.
Procedure
Host A (Source)
• Add route on Host A to reach Host B.
For example, use the following command on Linux system,
sudo route add default gw 10.10.60.10 eth1
• Run iPerf on Host A.
Host B (Receiver)
• Add route on Host B to reach Host A.
For example, use the following command on Linux system,
sudo route add default gw 10.10.61.10 eth1
• Run iPerf on Host B.
PICA8 Switch
Step1 Create the L3 VLAN interfaces and assign VLAN to ports.
admin@Xorplus# set vlans vlan-id 2 l3-interface vlan2 admin@Xorplus# set l3-interface vlan-interface vlan2 address 10.10.60.10 prefix-length 24 admin@Xorplus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 2 admin@Xorplus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching port-mode trunk admin@Xorplus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 3 admin@Xorplus# set vlans vlan-id 3 l3-interface vlan3 admin@Xorplus# set l3-interface vlan-interface vlan3 address 10.10.61.10 prefix-length 24 admin@Xorplus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 3 admin@Xorplus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching port-mode trunk admin@Xorplus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching vlan members 2
Step2 Enable IP routing.
admin@Xorplus# set ip routing enable true
Step3 Enable IGMP on the L3 VLAN interfaces.
admin@Xorplus# set protocols igmp interface vlan2 admin@Xorplus# set protocols igmp interface vlan3
Step4 Enable PIM on the L3 VLAN interfaces and assign the group ID.
admin@Xorplus# set protocols pim interface vlan2 admin@Xorplus# set protocols pim interface vlan3 admin@Xorplus# set protocols pim rp 10.10.60.10 group 226.0.0.0/8 admin@Xorplus# set protocols pim rp 10.10.61.10 group 226.0.0.0/8
Step5 Configure the log level.
admin@Xorplus# set protocols pim traceoption trace admin@Xorplus# set protocols igmp traceoption trace admin@Xorplus# set system log-level trace
Step6 Commit the configurations.
admin@Xorplus# commit
Verify the Configuration
• Run the run show igmp interface command to check the IGMP interface configuration.
admin@XorPlus# run show igmp interface Interface State Querier Timeout Version Groups ------------ -------- --------------- --------- --------- -------- vlan2 UP 10.10.60.10 None 2 3 vlan3 UP 10.10.61.10 None 2 3
• Run the run show pim interface command to check the PIM configuration and status.
admin@Xorplus# run show pim interface Interface State Mode V PIMstate Priority DRaddr Neighbors ---------- -------- ------ - -------- -------- --------------- --------- vlan2 UP Sparse 2 DR 1 10.10.60.10 0 vlan3 UP Sparse 2 DR 1 10.10.61.10 0
• • Run the run show l3-interface brief command to check the VLAN interface configuration.
admin@XorPlus# run show l3-interface brief Interface Vlan ID Status Addr --------- ------- ------ ------------------ loopback 4095 UP fe80::4a6e:73ff:102:49a/64 vlan2 2 UP 10.10.60.10/24 fe80::4a6e:73ff:202:49a/64 vlan3 3 UP 10.10.61.10/24 fe80::4a6e:73ff:302:49a/64
• Run the run show igmp group command to show information about multicast group member ports.
admin@XorPlus# run show igmp groups Interface Group Source LastReported Timeout V State ------------ --------------- --------------- ------------ ------- - ------- vlan2 224.0.0.2 0.0.0.0 10.10.60.10 167 2 Exclude vlan2 224.0.0.13 0.0.0.0 10.10.60.10 167 2 Exclude vlan2 224.0.0.22 0.0.0.0 10.10.60.10 165 2 Exclude vlan2 226.94.1.1 0.0.0.0 10.10.60.11 258 2 Exclude vlan3 224.0.0.2 0.0.0.0 10.10.61.10 166 2 Exclude vlan3 224.0.0.13 0.0.0.0 10.10.61.10 162 2 Exclude vlan3 224.0.0.22 0.0.0.0 10.10.61.10 162 2 Exclude admin@XorPlus# run show igmp groups Interface Group Source LastReported Timeout V State ------------ --------------- --------------- ------------ ------- - ------- vlan2 224.0.0.2 0.0.0.0 10.10.60.10 152 2 Exclude vlan2 224.0.0.13 0.0.0.0 10.10.60.10 152 2 Exclude vlan2 224.0.0.22 0.0.0.0 10.10.60.10 150 2 Exclude vlan3 224.0.0.2 0.0.0.0 10.10.61.10 151 2 Exclude vlan3 224.0.0.13 0.0.0.0 10.10.61.10 147 2 Exclude vlan3 224.0.0.22 0.0.0.0 10.10.61.10 147 2 Exclude vlan3 226.94.1.1 0.0.0.0 10.10.61.11 251 2 Exclude
Verify End to End Connectivity between Host A and Host B
• Connectivity between Host A and Host B.
• IPerf result from Host A to Host B.
• IPerf result from Host B to Host A.
Related content
Copyright © 2025 Pica8 Inc. All Rights Reserved.