Hi!
You can follow this procedure for PIM-DM:
1. Configure IP addresses for interfaces and configure a unicast routing protocol on each switch. PIM is an intra-domain multicast routing protocol that depends on a unicast routing protocol. The multicast routing protocol can work normally only when the unicast routing protocol works normally.
2. Enable multicast routing on all the switches providing multicast services. Multicast routing is the prerequisite for PIM-DM configuration.
3. Enable PIM-DM on all switch interfaces. Other PIM-DM functions can be configured only after PIM-DM is enabled.
4. Enable Internet Group Management Protocol (IGMP) on the interfaces connected to user network segments. The IGMP protocol maintains group memberships. The leaf switches maintain group memberships using IGMP.
https://support.huawei.com/enterprise/en/doc/EDOC1000141938/759db0e3/example-for-configuring-basic-pim-dm-functions
You can follow this procedure for PIM-SM ASM:
1. Configure an IP address for each interface and a unicast routing protocol. PIM is an intra-domain multicast routing protocol that depends on unicast routing protocols.
2. Enable the multicast function on all switches providing multicast services. Before configuring PIM-SM, you must enable the multicast function.
3. Enable PIM-SM on all interfaces. You can configure other PIM-SM functions only after PIM-SM is enabled.
4. Enable Internet Group Management Protocol (IGMP) on interfaces that connect the switch and hosts. A receiver can join and leave a multicast group by sending IGMP messages. The leaf switches maintain the multicast member relationship through IGMP.
5. Enable PIM silent on interfaces that connect the switch and hosts to prevent malicious hosts from simulating sending PIM Hello packets. In this manner, security of PIM-SM domain is ensured.
6. Configure the RP. In PIM-SM domain, RP is essential in providing ASM services and helps forward multicast data. You are advised to configure RP on switches that have more multicast flows.
7. Configure the BSR boundary on interfaces connected to the Internet. The Bootstrap message cannot pass through the BSR boundary; therefore, the BSR serves only this PIM-SM domain. In this manner, multicast services can be controlled effectively.
https://support.huawei.com/enterprise/en/doc/EDOC1000141938/cc95ca9e/example-for-configuring-pim-sm-in-the-asm-model
You can follow this procedure for PIM-SM SSM:
1. Configure an IP address for each interface and a unicast routing protocol. PIM is an intra-domain multicast routing protocol that depends on unicast routing protocols.
2. Enable the multicast function on switches providing multicast services. Before configuring PIM-SM, you must enable the multicast function.
3. Enable PIM-SM on all interfaces. You can configure other PIM-SM functions only after PIM-SM is enabled.
4. Enable IGMP on interfaces that connect the switch and hosts and set the IGMP version to IGMPv3. A receiver can join and leave a multicast group of a specified source by sending IGMP messages. The leaf switches maintain the multicast member relationship through IGMP.
5. Enable PIM silent on interfaces that connect the switch and hosts to prevent malicious hosts from simulating sending PIM Hello packets. In this manner, security of PIM-SM domain is ensured.
6. Configure the address range for SSM groups on each switch. Ensure that switches in the PIM-SM domain provide services only for multicast groups in the range of SSM group addresses. In this manner, multicast can be controlled effectively.
https://support.huawei.com/enterprise/en/doc/EDOC1000141938/25f66fab/example-for-configuring-pim-sm-in-the-ssm-model
Hope it helps!